Lines Matching refs:wpa_s
102 struct wpa_supplicant *wpa_s; in get_wpa_s_handle() local
116 wpa_s = zephyr_get_handle_by_ifname(if_name); in get_wpa_s_handle()
117 if (!wpa_s) { in get_wpa_s_handle()
122 return wpa_s; in get_wpa_s_handle()
174 struct wpa_supplicant *wpa_s = get_wpa_s_handle(dev); in wait_for_disconnect_complete() local
177 if (!wpa_s) { in wait_for_disconnect_complete()
183 while (wpa_s->wpa_state != WPA_DISCONNECTED) { in wait_for_disconnect_complete()
201 struct wpa_supplicant *wpa_s; in supp_shell_connect_status() local
211 wpa_s = get_wpa_s_handle(ctrl->dev); in supp_shell_connect_status()
212 if (!wpa_s) { in supp_shell_connect_status()
217 if (ctrl->requested_op == CONNECT && wpa_s->wpa_state != WPA_COMPLETED) { in supp_shell_connect_status()
225 supplicant_send_wifi_mgmt_event(wpa_s->ifname, in supp_shell_connect_status()
245 static struct hostapd_hw_modes *get_mode_by_band(struct wpa_supplicant *wpa_s, uint8_t band) in get_mode_by_band() argument
259 return get_mode(wpa_s->hw.modes, wpa_s->hw.num_modes, hw_mode, is_6ghz); in get_mode_by_band()
262 static int wpa_supp_supported_channels(struct wpa_supplicant *wpa_s, uint8_t band, char **chan_list) in wpa_supp_supported_channels() argument
270 mode = get_mode_by_band(wpa_s, band); in wpa_supp_supported_channels()
295 static int wpa_supp_band_chan_compat(struct wpa_supplicant *wpa_s, uint8_t band, uint8_t channel) in wpa_supp_band_chan_compat() argument
300 mode = get_mode_by_band(wpa_s, band); in wpa_supp_band_chan_compat()
836 static void wpas_remove_certs(struct wpa_supplicant *wpa_s) in wpas_remove_certs() argument
838 wpa_config_remove_blob(wpa_s->conf, "ca_cert"); in wpas_remove_certs()
839 wpa_config_remove_blob(wpa_s->conf, "client_cert"); in wpas_remove_certs()
840 wpa_config_remove_blob(wpa_s->conf, "private_key"); in wpas_remove_certs()
841 wpa_config_remove_blob(wpa_s->conf, "ca_cert2"); in wpas_remove_certs()
842 wpa_config_remove_blob(wpa_s->conf, "client_cert2"); in wpas_remove_certs()
843 wpa_config_remove_blob(wpa_s->conf, "private_key2"); in wpas_remove_certs()
847 static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s, in wpas_add_and_config_network() argument
866 wpas_remove_certs(wpa_s); in wpas_add_and_config_network()
913 ret = wpa_supp_supported_channels(wpa_s, params->band, &chan_list); in wpas_add_and_config_network()
1161 if (wpas_config_process_blob(wpa_s->conf, "ca_cert", in wpas_add_and_config_network()
1172 if (wpas_config_process_blob(wpa_s->conf, "client_cert", in wpas_add_and_config_network()
1183 if (wpas_config_process_blob(wpa_s->conf, "private_key", in wpas_add_and_config_network()
1199 if (wpas_config_process_blob(wpa_s->conf, "ca_cert2", in wpas_add_and_config_network()
1210 if (wpas_config_process_blob(wpa_s->conf, "client_cert2", in wpas_add_and_config_network()
1221 if (wpas_config_process_blob(wpa_s->conf, "private_key2", in wpas_add_and_config_network()
1256 freq = wpa_supp_band_chan_compat(wpa_s, params->band, params->channel); in wpas_add_and_config_network()
1330 struct wpa_supplicant *wpa_s; local
1340 wpa_s = get_wpa_s_handle(dev);
1341 if (!wpa_s) {
1349 if (wpa_s->current_ssid && wpa_s->current_ssid->mode != cur_mode) {
1378 supplicant_send_wifi_mgmt_ap_status(wpa_s,
1389 wpas_remove_certs(wpa_s);
1402 struct wpa_supplicant *wpa_s; local
1414 wpa_s = get_wpa_s_handle(dev);
1415 if (!wpa_s) {
1422 if (wpa_s->current_ssid && wpa_s->current_ssid->mode != WPAS_MODE_INFRA) {
1428 ret = wpas_add_and_config_network(wpa_s, params, false);
1495 struct wpa_supplicant *wpa_s; local
1508 wpa_s = get_wpa_s_handle(dev);
1509 if (!wpa_s) {
1520 status->state = wpa_s->wpa_state; /* 1-1 Mapping */
1522 if (wpa_s->wpa_state >= WPA_ASSOCIATED) {
1523 struct wpa_ssid *ssid = wpa_s->current_ssid;
1540 sae_pwe = wpa_s->conf->sae_pwe;
1541 os_memcpy(status->bssid, wpa_s->bssid, WIFI_MAC_ADDR_LEN);
1542 status->band = wpas_band_to_zephyr(wpas_freq_to_band(wpa_s->assoc_freq));
1545 ieee80211_freq_to_chan(wpa_s->assoc_freq, &channel);
1564 if (wpa_s->connection_set == 1) {
1565 status->link_mode = wpa_s->connection_he ? WIFI_6 :
1566 wpa_s->connection_vht ? WIFI_5 :
1567 wpa_s->connection_ht ? WIFI_4 :
1568 wpa_s->connection_g ? WIFI_3 :
1569 wpa_s->connection_a ? WIFI_2 :
1570 wpa_s->connection_b ? WIFI_1 :
1596 ret = wpa_drv_get_conn_info(wpa_s, conn_info);
1690 struct wpa_supplicant *wpa_s; local
1695 wpa_s = get_wpa_s_handle(dev);
1696 if (!wpa_s) {
1788 struct wpa_supplicant *wpa_s; local
1793 wpa_s = get_wpa_s_handle(dev);
1794 if (!wpa_s) {
1800 if (wpa_s->reassociate || (wpa_s->wpa_state >= WPA_AUTHENTICATING &&
1801 wpa_s->wpa_state < WPA_COMPLETED)) {
1873 struct wpa_supplicant *wpa_s; local
1888 wpa_s = get_wpa_s_handle(dev);
1889 if (!wpa_s) {
1975 struct wpa_supplicant *wpa_s; local
1978 wpa_s = get_wpa_s_handle(dev);
1979 if (!wpa_s) {
1985 is_support = wpa_bss_ext_capab(wpa_s->current_bss, capab);
2011 struct wpa_supplicant *wpa_s; local
2016 wpa_s = get_wpa_s_handle(dev);
2017 if (!wpa_s) {
2039 struct wpa_supplicant *wpa_s; local
2044 wpa_s = get_wpa_s_handle(dev);
2045 if (!wpa_s) {
2059 struct wpa_supplicant *wpa_s; local
2064 wpa_s = get_wpa_s_handle(dev);
2065 if (!wpa_s) {
2088 struct wpa_supplicant *wpa_s; local
2094 wpa_s = get_wpa_s_handle(dev);
2095 if (!wpa_s) {
2680 struct wpa_supplicant *wpa_s;
2746 wpa_s = get_wpa_s_handle(dev);
2747 if (!wpa_s) {
2753 if (wpa_s->wpa_state != WPA_DISCONNECTED) {
2760 wpa_s->conf->ap_scan = 2;
2762 wpa_s->conf->max_num_sta = CONFIG_WIFI_MGMT_AP_MAX_NUM_STA;
2764 ret = wpas_add_and_config_network(wpa_s, params, true);
2783 struct wpa_supplicant *wpa_s;
2809 wpa_s = get_wpa_s_handle(dev);
2810 if (!wpa_s) {
2823 wpa_s->conf->ap_scan = 1;
2838 struct wpa_supplicant *wpa_s;
2871 wpa_s = get_wpa_s_handle(dev);
2872 if (!wpa_s) {