Lines Matching refs:params

482 int nrf_wifi_wpa_supp_scan2(void *if_priv, struct wpa_driver_scan_params *params)  in nrf_wifi_wpa_supp_scan2()  argument
492 if (!if_priv || !params) { in nrf_wifi_wpa_supp_scan2()
516 if (params->freqs) { in nrf_wifi_wpa_supp_scan2()
517 for (indx = 0; params->freqs[indx]; indx++) { in nrf_wifi_wpa_supp_scan2()
533 if (params->freqs) { in nrf_wifi_wpa_supp_scan2()
534 for (indx = 0; params->freqs[indx]; indx++) { in nrf_wifi_wpa_supp_scan2()
536 params->freqs[indx]; in nrf_wifi_wpa_supp_scan2()
541 if (params->filter_ssids) { in nrf_wifi_wpa_supp_scan2()
542 scan_info->scan_params.num_scan_ssids = params->num_filter_ssids; in nrf_wifi_wpa_supp_scan2()
544 for (indx = 0; indx < params->num_filter_ssids; indx++) { in nrf_wifi_wpa_supp_scan2()
546 params->filter_ssids[indx].ssid, in nrf_wifi_wpa_supp_scan2()
547 params->filter_ssids[indx].ssid_len); in nrf_wifi_wpa_supp_scan2()
550 params->filter_ssids[indx].ssid_len; in nrf_wifi_wpa_supp_scan2()
557 if (params->extra_ies_len && params->extra_ies_len <= NRF_WIFI_MAX_IE_LEN) { in nrf_wifi_wpa_supp_scan2()
558 memcpy(scan_info->scan_params.ie.ie, params->extra_ies, params->extra_ies_len); in nrf_wifi_wpa_supp_scan2()
559 scan_info->scan_params.ie.ie_len = params->extra_ies_len; in nrf_wifi_wpa_supp_scan2()
560 } else if (params->extra_ies_len) { in nrf_wifi_wpa_supp_scan2()
562 __func__, params->extra_ies_len, NRF_WIFI_MAX_IE_LEN); in nrf_wifi_wpa_supp_scan2()
756 int nrf_wifi_wpa_supp_authenticate(void *if_priv, struct wpa_driver_auth_params *params, in nrf_wifi_wpa_supp_authenticate() argument
768 if ((!if_priv) || (!params)) { in nrf_wifi_wpa_supp_authenticate()
796 if (params->bssid) { in nrf_wifi_wpa_supp_authenticate()
797 memcpy(auth_info.nrf_wifi_bssid, params->bssid, ETH_ALEN); in nrf_wifi_wpa_supp_authenticate()
800 if (params->freq) { in nrf_wifi_wpa_supp_authenticate()
801 auth_info.frequency = params->freq; in nrf_wifi_wpa_supp_authenticate()
804 if (params->ssid) { in nrf_wifi_wpa_supp_authenticate()
805 memcpy(auth_info.ssid.nrf_wifi_ssid, params->ssid, params->ssid_len); in nrf_wifi_wpa_supp_authenticate()
807 auth_info.ssid.nrf_wifi_ssid_len = params->ssid_len; in nrf_wifi_wpa_supp_authenticate()
810 if (params->ie) { in nrf_wifi_wpa_supp_authenticate()
811 max_ie_len = (params->ie_len > NRF_WIFI_MAX_IE_LEN) ? in nrf_wifi_wpa_supp_authenticate()
812 NRF_WIFI_MAX_IE_LEN : params->ie_len; in nrf_wifi_wpa_supp_authenticate()
813 memcpy(&auth_info.ie.ie, params->ie, max_ie_len); in nrf_wifi_wpa_supp_authenticate()
824 if (params->auth_data) { in nrf_wifi_wpa_supp_authenticate()
825 auth_info.sae.sae_data_len = params->auth_data_len; in nrf_wifi_wpa_supp_authenticate()
827 memcpy(auth_info.sae.sae_data, params->auth_data, params->auth_data_len); in nrf_wifi_wpa_supp_authenticate()
830 type = get_nrf_wifi_auth_type(params->auth_alg); in nrf_wifi_wpa_supp_authenticate()
837 size_t key_len = params->wep_key_len[params->wep_tx_keyidx]; in nrf_wifi_wpa_supp_authenticate()
840 key_info->cipher_suite = wpa_alg_to_cipher_suite(params->auth_alg, key_len); in nrf_wifi_wpa_supp_authenticate()
842 params->wep_key[params->wep_tx_keyidx], in nrf_wifi_wpa_supp_authenticate()
849 if (params->local_state_change) { in nrf_wifi_wpa_supp_authenticate()
868 int nrf_wifi_wpa_supp_associate(void *if_priv, struct wpa_driver_associate_params *params) in nrf_wifi_wpa_supp_associate() argument
876 if ((!if_priv) || (!params)) { in nrf_wifi_wpa_supp_associate()
896 if (params->bssid) { in nrf_wifi_wpa_supp_associate()
897 memcpy(assoc_info.nrf_wifi_bssid, params->bssid, sizeof(assoc_info.nrf_wifi_bssid)); in nrf_wifi_wpa_supp_associate()
900 if (params->freq.freq) { in nrf_wifi_wpa_supp_associate()
901 assoc_info.center_frequency = params->freq.freq; in nrf_wifi_wpa_supp_associate()
902 vif_ctx_zep->assoc_freq = params->freq.freq; in nrf_wifi_wpa_supp_associate()
907 if (params->prev_bssid) { in nrf_wifi_wpa_supp_associate()
909 memcpy(assoc_info.prev_bssid, params->prev_bssid, ETH_ALEN); in nrf_wifi_wpa_supp_associate()
912 if (params->ssid) { in nrf_wifi_wpa_supp_associate()
913 assoc_info.ssid.nrf_wifi_ssid_len = params->ssid_len; in nrf_wifi_wpa_supp_associate()
915 memcpy(assoc_info.ssid.nrf_wifi_ssid, params->ssid, params->ssid_len); in nrf_wifi_wpa_supp_associate()
919 if (params->wpa_ie) { in nrf_wifi_wpa_supp_associate()
920 assoc_info.wpa_ie.ie_len = params->wpa_ie_len; in nrf_wifi_wpa_supp_associate()
921 memcpy(assoc_info.wpa_ie.ie, params->wpa_ie, params->wpa_ie_len); in nrf_wifi_wpa_supp_associate()
926 if (params->mgmt_frame_protection == MGMT_FRAME_PROTECTION_REQUIRED) { in nrf_wifi_wpa_supp_associate()
930 if (params->bss_max_idle_period) { in nrf_wifi_wpa_supp_associate()
931 assoc_info.bss_max_idle_time = params->bss_max_idle_period; in nrf_wifi_wpa_supp_associate()
2123 int nrf_wifi_wpa_supp_init_ap(void *if_priv, struct wpa_driver_associate_params *params) in nrf_wifi_wpa_supp_init_ap() argument
2130 if (!if_priv || !params) { in nrf_wifi_wpa_supp_init_ap()
2135 if (params->mode != IEEE80211_MODE_AP) { in nrf_wifi_wpa_supp_init_ap()
2184 static int nrf_wifi_set_beacon_data(const struct wpa_driver_ap_params *params, in nrf_wifi_set_beacon_data() argument
2189 if (params->head_len > ARRAY_SIZE(beacon_data->head)) { in nrf_wifi_set_beacon_data()
2194 if (params->tail_len > ARRAY_SIZE(beacon_data->tail)) { in nrf_wifi_set_beacon_data()
2199 if (params->proberesp_len > ARRAY_SIZE(beacon_data->probe_resp)) { in nrf_wifi_set_beacon_data()
2204 beacon_data->head_len = params->head_len; in nrf_wifi_set_beacon_data()
2205 beacon_data->tail_len = params->tail_len; in nrf_wifi_set_beacon_data()
2206 beacon_data->probe_resp_len = params->proberesp_len; in nrf_wifi_set_beacon_data()
2208 if (params->head_len) { in nrf_wifi_set_beacon_data()
2209 memcpy(&beacon_data->head, params->head, in nrf_wifi_set_beacon_data()
2210 params->head_len); in nrf_wifi_set_beacon_data()
2213 if (params->tail_len) { in nrf_wifi_set_beacon_data()
2214 memcpy(&beacon_data->tail, params->tail, in nrf_wifi_set_beacon_data()
2215 params->tail_len); in nrf_wifi_set_beacon_data()
2218 if (params->proberesp_len) { in nrf_wifi_set_beacon_data()
2219 memcpy(&beacon_data->probe_resp, params->proberesp_ies, in nrf_wifi_set_beacon_data()
2220 params->proberesp_len); in nrf_wifi_set_beacon_data()
2285 struct wpa_driver_ap_params *params) in nrf_wifi_set_bss() argument
2293 if (!vif_ctx_zep || !params) { in nrf_wifi_set_bss()
2309 if (params->basic_rates) { in nrf_wifi_set_bss()
2310 for (i = 0; params->basic_rates[i] != -1; i++) { in nrf_wifi_set_bss()
2316 bss_info.basic_rates[i] = params->basic_rates[i]; in nrf_wifi_set_bss()
2320 bss_info.p2p_go_ctwindow = params->p2p_go_ctwindow; in nrf_wifi_set_bss()
2321 bss_info.ht_opmode = params->ht_opmode; in nrf_wifi_set_bss()
2322 bss_info.nrf_wifi_cts = params->cts_protect; in nrf_wifi_set_bss()
2323 bss_info.preamble = params->preamble; in nrf_wifi_set_bss()
2324 bss_info.nrf_wifi_slot = params->short_slot_time; in nrf_wifi_set_bss()
2325 bss_info.ap_isolate = params->isolate; in nrf_wifi_set_bss()
2365 int nrf_wifi_wpa_supp_start_ap(void *if_priv, struct wpa_driver_ap_params *params) in nrf_wifi_wpa_supp_start_ap() argument
2374 if (!if_priv || !params) { in nrf_wifi_wpa_supp_start_ap()
2392 nrf_wifi_set_beacon_data(params, &start_ap_info.beacon_data); in nrf_wifi_wpa_supp_start_ap()
2393 start_ap_info.beacon_interval = params->beacon_int; in nrf_wifi_wpa_supp_start_ap()
2394 start_ap_info.dtim_period = params->dtim_period; in nrf_wifi_wpa_supp_start_ap()
2395 start_ap_info.ssid.nrf_wifi_ssid_len = params->ssid_len; in nrf_wifi_wpa_supp_start_ap()
2396 memcpy(start_ap_info.ssid.nrf_wifi_ssid, params->ssid, params->ssid_len); in nrf_wifi_wpa_supp_start_ap()
2398 if ((params->pairwise_ciphers & BIT(i)) && in nrf_wifi_wpa_supp_start_ap()
2410 ch_width = wpa_supp_chan_width_to_nrf(params->freq->mode, params->freq->bandwidth, in nrf_wifi_wpa_supp_start_ap()
2411 params->freq->center_freq1, params->freq->center_freq2); in nrf_wifi_wpa_supp_start_ap()
2413 start_ap_info.freq_params.frequency = params->freq->freq; in nrf_wifi_wpa_supp_start_ap()
2415 start_ap_info.freq_params.center_frequency1 = params->freq->center_freq1; in nrf_wifi_wpa_supp_start_ap()
2416 start_ap_info.freq_params.center_frequency2 = params->freq->center_freq2; in nrf_wifi_wpa_supp_start_ap()
2417 start_ap_info.freq_params.channel_type = params->freq->ht_enabled ? NRF_WIFI_CHAN_HT20 : in nrf_wifi_wpa_supp_start_ap()
2437 ret = nrf_wifi_set_bss(vif_ctx_zep, params); in nrf_wifi_wpa_supp_start_ap()
2449 int nrf_wifi_wpa_supp_change_beacon(void *if_priv, struct wpa_driver_ap_params *params) in nrf_wifi_wpa_supp_change_beacon() argument
2457 if (!if_priv || !params) { in nrf_wifi_wpa_supp_change_beacon()
2475 nrf_wifi_set_beacon_data(params, &chg_bcn_info.beacon_data); in nrf_wifi_wpa_supp_change_beacon()
2603 int nrf_wifi_wpa_supp_sta_add(void *if_priv, struct hostapd_sta_add_params *params) in nrf_wifi_wpa_supp_sta_add() argument
2612 if (!if_priv || !params) { in nrf_wifi_wpa_supp_sta_add()
2630 sta_info.nrf_wifi_listen_interval = params->listen_interval; in nrf_wifi_wpa_supp_sta_add()
2631 sta_info.aid = params->aid; in nrf_wifi_wpa_supp_sta_add()
2632 sta_info.sta_capability = params->capability; in nrf_wifi_wpa_supp_sta_add()
2633 sta_info.supp_rates.nrf_wifi_num_rates = params->supp_rates_len; in nrf_wifi_wpa_supp_sta_add()
2635 for (i = 0; i < params->supp_rates_len; i++) { in nrf_wifi_wpa_supp_sta_add()
2636 sta_info.supp_rates.rates[i] = params->supp_rates[i] & 0x7f; in nrf_wifi_wpa_supp_sta_add()
2639 sta_info.ext_capability.ext_capability_len = params->ext_capab_len; in nrf_wifi_wpa_supp_sta_add()
2640 if (params->ext_capab_len >= NRF_WIFI_EXT_CAPABILITY_MAX_LEN) { in nrf_wifi_wpa_supp_sta_add()
2642 params->ext_capab_len, NRF_WIFI_EXT_CAPABILITY_MAX_LEN); in nrf_wifi_wpa_supp_sta_add()
2645 memcpy(sta_info.ext_capability.ext_capability, params->ext_capab, in nrf_wifi_wpa_supp_sta_add()
2646 params->ext_capab_len); in nrf_wifi_wpa_supp_sta_add()
2648 sta_info.supported_channels.supported_channels_len = params->supp_channels_len; in nrf_wifi_wpa_supp_sta_add()
2649 if (params->supp_channels_len >= NRF_WIFI_SUPPORTED_CHANNELS_MAX_LEN) { in nrf_wifi_wpa_supp_sta_add()
2651 params->supp_channels_len, NRF_WIFI_SUPPORTED_CHANNELS_MAX_LEN); in nrf_wifi_wpa_supp_sta_add()
2654 memcpy(sta_info.supported_channels.supported_channels, params->supp_channels, in nrf_wifi_wpa_supp_sta_add()
2655 params->supp_channels_len); in nrf_wifi_wpa_supp_sta_add()
2657 sta_info.supported_oper_classes.supported_oper_classes_len = params->supp_oper_classes_len; in nrf_wifi_wpa_supp_sta_add()
2658 if (params->supp_oper_classes_len >= NRF_WIFI_OPER_CLASSES_MAX_LEN) { in nrf_wifi_wpa_supp_sta_add()
2660 params->supp_oper_classes_len, NRF_WIFI_OPER_CLASSES_MAX_LEN); in nrf_wifi_wpa_supp_sta_add()
2663 memcpy(sta_info.supported_oper_classes.supported_oper_classes, params->supp_oper_classes, in nrf_wifi_wpa_supp_sta_add()
2664 params->supp_oper_classes_len); in nrf_wifi_wpa_supp_sta_add()
2666 sta_info.sta_flags2.nrf_wifi_set = nrf_wifi_sta_flags_to_nrf(params->flags); in nrf_wifi_wpa_supp_sta_add()
2668 nrf_wifi_sta_flags_to_nrf(params->flags_mask); in nrf_wifi_wpa_supp_sta_add()
2670 if (params->ht_capabilities) { in nrf_wifi_wpa_supp_sta_add()
2672 params->ht_capabilities, in nrf_wifi_wpa_supp_sta_add()
2676 if (params->vht_capabilities) { in nrf_wifi_wpa_supp_sta_add()
2678 params->vht_capabilities, in nrf_wifi_wpa_supp_sta_add()
2682 memcpy(sta_info.mac_addr, params->addr, sizeof(sta_info.mac_addr)); in nrf_wifi_wpa_supp_sta_add()
2687 if (params->set) { in nrf_wifi_wpa_supp_sta_add()