/hostap-latest/tests/hwsim/ |
D | test_p2p_channel.py | 42 freq = int(i_res['freq']) 43 if freq < 5000: 44 raise Exception("Unexpected channel %d MHz - did not follow 5 GHz preference" % freq) 59 freq = int(i_res['freq']) 60 if freq < 5000: 61 raise Exception("Unexpected channel %d MHz - did not follow 5 GHz preference" % freq) 78 freq = int(i_res['freq']) 79 if freq not in [2412, 2437, 2462]: 80 raise Exception("Unexpected channel %d MHz - did not pick random social channel" % freq) 97 freq = int(i_res['freq']) [all …]
|
D | test_ap_acs.py | 88 freq = hapd.get_status_field("freq") 89 if int(freq) < 2400: 92 dev[0].connect("test-acs", psk="12345678", scan_freq=freq) 103 freq = hapd.get_status_field("freq") 104 if int(freq) < 2400: 107 dev[0].connect("test-acs", psk="12345678", scan_freq=freq) 125 freq = int(hapd.get_status_field("freq")) 126 if freq not in freqlist: 127 raise Exception("Unexpected frequency: %d" % freq) 129 dev[0].connect("test-acs", psk="12345678", scan_freq=str(freq)) [all …]
|
D | test_ap_track.py | 44 dev[0].scan_for_bss(bssid, freq=2437, force_scan=True) 45 dev[0].scan_for_bss(bssid2, freq=5200, force_scan=True) 46 dev[1].scan_for_bss(bssid, freq=2437, force_scan=True) 47 dev[2].scan_for_bss(bssid2, freq=5200, force_scan=True) 75 dev[0].scan_for_bss(bssid, freq=2437, force_scan=True) 76 dev[1].scan_for_bss(bssid, freq=2437, force_scan=True) 77 dev[2].scan_for_bss(bssid, freq=2437, force_scan=True) 112 dev[0].scan_for_bss(bssid2, freq=5200, force_scan=True) 113 dev[1].scan_for_bss(bssid, freq=2437, force_scan=True) 114 dev[0].scan(freq=2437, type="ONLY") [all …]
|
D | test_ap_csa.py | 24 def switch_channel(ap, count, freq, extra=None): argument 25 cmd = "CHAN_SWITCH " + str(count) + " " + str(freq) 33 if "freq=" + str(freq) not in ev: 39 if "freq=" + str(freq) not in ev: 45 if "freq=" + str(freq) not in ev: 48 def wait_channel_switch(dev, freq): argument 52 if "freq=%d" % freq not in ev: 58 if "freq=%d" % freq not in ev: 68 freq = int(dev[0].get_driver_status_field("freq")) 69 if freq != 0: [all …]
|
D | test_cfg80211.py | 47 def nl80211_frame(dev, ifindex, frame, freq=None, duration=None, offchannel_tx_ok=False): argument 49 if freq is not None: 50 attrs += build_nl80211_attr_u32('WIPHY_FREQ', freq) 63 def nl80211_remain_on_channel(dev, ifindex, freq, duration): argument 65 attrs += build_nl80211_attr_u32('WIPHY_FREQ', freq) 72 dev[0].p2p_start_go(freq='2412') 77 res = nl80211_frame(go, ifindex, frame, freq=2422, duration=500, 85 nl80211_frame(go, ifindex, frame, freq=2412) 96 freq = out.splitlines() 97 if len(freq) != 2: [all …]
|
D | test_p2p_autogo.py | 89 res = autogo(dev[0], freq=2437) 94 connect_cli(dev[0], dev[1], social=True, freq=2437) 103 autogo(dev[0], freq=2462) 104 res = connect_cli(dev[0], dev[1], social=True, freq=2462) 119 res1 = autogo(dev[0], freq=2412) 120 res2 = connect_cli(dev[0], dev[1], social=True, freq=2412) 141 autogo(dev[0], freq=2412) 184 autogo(dev[0], freq=2412) 205 autogo(dev[0], freq=2412) 206 connect_cli(dev[0], dev[1], social=True, freq=2412) [all …]
|
D | test_ap_ht.py | 41 freq = hapd.get_status_field("freq") 42 if freq != "2432": 54 dev[0].connect("test-ht40", key_mgmt="NONE", scan_freq=freq) 126 freq = hapd.get_status_field("freq") 127 if freq != "2432": 136 dev[0].connect("test-ht40", key_mgmt="NONE", scan_freq=freq) 167 freq = hapd.get_status_field("freq") 168 if freq != "2412": 177 dev[0].connect("test-ht40", key_mgmt="NONE", scan_freq=freq) 214 freq = hapd.get_status_field("freq") [all …]
|
D | test_owe.py | 37 dev[0].scan_for_bss(bssid, freq="2412") 64 dev[0].scan_for_bss(bssid, freq="2412") 101 dev[0].scan_for_bss(bssid, freq="2412") 153 dev[0].scan_for_bss(bssid, freq="2412") 158 dev[1].scan_for_bss(bssid, freq="2412") 209 dev[0].scan_for_bss(bssid, freq="2412") 210 dev[0].scan_for_bss(bssid2, freq="2412") 244 dev[0].scan_for_bss(bssid, freq="2412") 270 dev[0].scan_for_bss(bssid, freq="2412") 271 dev[0].scan_for_bss(bssid2, freq="2412") [all …]
|
D | test_fils.py | 42 dev[0].scan_for_bss(bssid, freq=2412) 92 dev[0].scan_for_bss(bssid, freq=2412) 139 dev[0].scan_for_bss(bssid, freq=2412) 158 dev[0].select_network(id, freq=2412) 211 dev[0].scan_for_bss(bssid, freq=2412) 227 dev[0].select_network(id, freq=2412) 284 dev[0].scan_for_bss(bssid, freq=2412) 310 dev[0].scan_for_bss(bssid2, freq=2412) 353 dev[0].scan_for_bss(bssid, freq=2412) 374 dev[0].scan_for_bss(bssid, freq=2412) [all …]
|
D | test_dfs.py | 108 freq = hapd.get_status_field("freq") 109 if freq != "5260": 159 freq = hapd.get_status_field("freq") 160 if freq != "5260": 174 hapd.request("RADAR DETECTED freq=%s ht_enabled=1 chan_width=1" % freq) 178 if "freq=%s" % freq not in ev: 183 if "freq=%s" % freq in ev: 205 if "freq=%s" % freq in ev: 266 freq = hapd.get_status_field("freq") 267 if freq == "5260": [all …]
|
D | test_ap_roam.py | 54 dev[0].scan_for_bss(bss0, freq=2412) 67 dev[0].scan_for_bss(bssid, freq=2412) 86 dev[0].scan_for_bss(bssid0, freq=2412) 87 dev[0].scan_for_bss(bssid1, freq=2412) 127 dev[0].scan_for_bss(bssid0, freq=2412) 128 dev[0].scan_for_bss(bssid1, freq=2412) 158 wpas.scan_for_bss(bssid0, freq=2412) 168 wpas.scan_for_bss(bssid1, freq=2412) 205 wpas.scan_for_bss(bssid1, freq=2412) 234 dev[0].scan_for_bss(bssid, freq=2412) [all …]
|
D | test_ap_hs20.py | 59 dev.scan_for_bss(bssid, freq="2412") 72 def interworking_select(dev, bssid, type=None, no_match=False, freq=None): argument 74 if bssid and freq and not no_match: 75 dev.scan_for_bss(bssid, freq=freq) 76 freq_extra = " freq=" + str(freq) if freq else "" 190 dev[0].scan_for_bss(bssid, freq="2412") 191 dev[0].scan_for_bss(bssid2, freq="2412") 192 interworking_select(dev[0], None, "home", freq="2412") 245 dev[0].scan_for_bss(bssid, freq="2412") 246 dev[0].scan_for_bss(bssid2, freq="2412") [all …]
|
/hostap-latest/src/ap/ |
D | dfs.c | 159 dfs_get_chan_data(struct hostapd_hw_modes *mode, int freq, int first_chan_idx) in dfs_get_chan_data() argument 164 if (mode->channels[i].freq == freq) in dfs_get_chan_data() 197 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available() 201 first_chan->freq + i * 20); in dfs_chan_range_available() 209 first_chan->freq + i * 20); in dfs_chan_range_available() 215 first_chan->freq + i * 20); in dfs_chan_range_available() 263 chan->freq, chan->chan); in dfs_find_channel() 271 chan->freq, chan->chan); in dfs_find_channel() 278 chan->freq, chan->chan); in dfs_find_channel() 291 chan->freq, chan->chan); in dfs_find_channel() [all …]
|
D | acs.c | 455 if (chan->freq == bw_desc[bw][i].first) in acs_usable_bw_chan() 464 static int acs_get_bw_center_chan(int freq, enum bw_type bw) in acs_get_bw_center_chan() argument 469 if (freq >= bw_desc[bw][i].first && in acs_get_bw_center_chan() 470 freq <= bw_desc[bw][i].last) in acs_get_bw_center_chan() 484 survey->freq); in acs_survey_is_sufficient() 491 survey->freq); in acs_survey_is_sufficient() 499 survey->freq); in acs_survey_is_sufficient() 591 chan->freq); in is_in_freqlist() 625 chan->chan, chan->freq); in acs_survey_mode_interference_factor() 650 acs_find_chan_mode(struct hostapd_hw_modes *mode, int freq) in acs_find_chan_mode() argument [all …]
|
D | dpp_hostapd.c | 227 static int hostapd_dpp_allow_ir(struct hostapd_data *hapd, unsigned int freq) in hostapd_dpp_allow_ir() argument 240 if (chan->freq != (int) freq) in hostapd_dpp_allow_ir() 254 freq); in hostapd_dpp_allow_ir() 263 if (pkex->freq == 2437) in hostapd_dpp_pkex_next_channel() 264 pkex->freq = 5745; in hostapd_dpp_pkex_next_channel() 265 else if (pkex->freq == 5745) in hostapd_dpp_pkex_next_channel() 266 pkex->freq = 5220; in hostapd_dpp_pkex_next_channel() 267 else if (pkex->freq == 5220) in hostapd_dpp_pkex_next_channel() 268 pkex->freq = 60480; in hostapd_dpp_pkex_next_channel() 272 if (hostapd_dpp_allow_ir(hapd, pkex->freq) == 1) { in hostapd_dpp_pkex_next_channel() [all …]
|
D | hw_features.c | 129 is_6ghz == is_6ghz_freq(feature->channels[0].freq)) in hostapd_get_hw_features() 163 feature->channels[j].freq, in hostapd_get_hw_features() 263 pri_freq = iface->freq; in ieee80211n_allowed_ht40_channel_pair() 286 iface->freq += 20; in ieee80211n_switch_pri_sec() 290 iface->freq -= 20; in ieee80211n_switch_pri_sec() 303 pri_freq = iface->freq; in ieee80211n_check_40mhz_5g() 426 pri_freq = iface->freq; in ieee80211n_scan_channels_2g4() 451 if (chan->freq < affected_start || in ieee80211n_scan_channels_2g4() 452 chan->freq > affected_end) in ieee80211n_scan_channels_2g4() 454 params->freqs[pos++] = chan->freq; in ieee80211n_scan_channels_2g4() [all …]
|
/hostap-latest/wpa_supplicant/ |
D | nan_usd.c | 36 unsigned int freq, const u8 *dst, in wpas_nan_de_tx_status() argument 46 MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), freq, in wpas_nan_de_tx_status() 49 nan_de_tx_status(wpa_s->nan_de, freq, dst); in wpas_nan_de_tx_status() 54 unsigned int freq; member 86 static int wpas_nan_de_tx_send(struct wpa_supplicant *wpa_s, unsigned int freq, in wpas_nan_de_tx_send() argument 93 MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), freq, in wpas_nan_de_tx_send() 96 return offchannel_send_action(wpa_s, freq, dst, src, bssid, in wpas_nan_de_tx_send() 118 if (wpas_nan_de_tx_send(wpa_s, twork->freq, twork->wait_time, in wpas_nan_usd_start_tx_cb() 125 static int wpas_nan_de_tx(void *ctx, unsigned int freq, unsigned int wait_time, in wpas_nan_de_tx() argument 134 return wpas_nan_de_tx_send(wpa_s, freq, wait_time, dst, src, in wpas_nan_de_tx() [all …]
|
D | offchannel.c | 259 int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq, in offchannel_send_action() argument 263 unsigned int freq, const u8 *dst, in offchannel_send_action() 272 freq, MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), in offchannel_send_action() 298 wpa_s->pending_action_freq = freq; in offchannel_send_action() 307 if (freq != 0 && wpa_s->drv_flags & WPA_DRIVER_FLAGS_OFFCHANNEL_TX) { in offchannel_send_action() 328 if (freq) { in offchannel_send_action() 331 if (tx_iface->assoc_freq == freq) { in offchannel_send_action() 335 freq = 0; in offchannel_send_action() 339 if (wpa_s->off_channel_freq == freq || freq == 0) { in offchannel_send_action() 351 if (wpa_s->roc_waiting_drv_freq == freq) { in offchannel_send_action() [all …]
|
D | p2p_supplicant.c | 125 static int wpas_p2p_join_start(struct wpa_supplicant *wpa_s, int freq, 127 static int wpas_p2p_setup_freqs(struct wpa_supplicant *wpa_s, int freq, 131 static void wpas_p2p_join_scan_req(struct wpa_supplicant *wpa_s, int freq, 136 int auto_join, int freq, 159 static int wpas_p2p_go_is_peer_freq(struct wpa_supplicant *wpa_s, int freq); 166 unsigned int freq); 227 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_valid_oper_freqs() 240 int freq) in wpas_p2p_set_own_freq_preference() argument 249 freq > 0 && wpa_s->num_multichan_concurrent > 1 && in wpas_p2p_set_own_freq_preference() 252 freq); in wpas_p2p_set_own_freq_preference() [all …]
|
D | mesh.c | 219 ¶ms->freq, in wpas_mesh_update_freq_params() 221 ifmsh->freq, in wpas_mesh_update_freq_params() 261 if (ifmsh->freq > 0 && ifmsh->freq != params->freq.freq) { in wpas_mesh_complete() 262 wpa_s->assoc_freq = ifmsh->freq; in wpas_mesh_complete() 263 ssid->frequency = ifmsh->freq; in wpas_mesh_complete() 383 struct hostapd_freq_params *freq) in wpa_supplicant_mesh_init() argument 428 if (frequency != freq->freq && in wpa_supplicant_mesh_init() 429 frequency == freq->freq + freq->sec_channel_offset * 20) { in wpa_supplicant_mesh_init() 431 frequency = freq->freq; in wpa_supplicant_mesh_init() 442 if (is_6ghz_freq(freq->freq)) { in wpa_supplicant_mesh_init() [all …]
|
D | dpp_supplicant.c | 35 unsigned int freq); 40 unsigned int freq, const u8 *dst, 48 unsigned int freq, const u8 *dst, 273 unsigned int freq, in wpas_dpp_stop_listen_for_tx() argument 289 if (wpa_s->dpp_listen_freq == freq && remaining > wait_time) in wpas_dpp_stop_listen_for_tx() 294 wpa_s->dpp_listen_freq, remaining, freq, wait_time); in wpas_dpp_stop_listen_for_tx() 502 unsigned int freq, const u8 *dst, in wpas_dpp_tx_status() argument 514 " result=%s", freq, MAC2STR(dst), res_txt); in wpas_dpp_tx_status() 516 " freq=%u result=%s", MAC2STR(dst), freq, res_txt); in wpas_dpp_tx_status() 635 unsigned int freq; in wpas_dpp_reply_wait_timeout() local [all …]
|
/hostap-latest/src/common/ |
D | hw_features_common.c | 20 int chan, int *freq) in hw_get_channel_chan() argument 24 if (freq) in hw_get_channel_chan() 25 *freq = 0; in hw_get_channel_chan() 33 if (freq) in hw_get_channel_chan() 34 *freq = ch->freq; in hw_get_channel_chan() 44 hw_mode_get_channel(struct hostapd_hw_modes *mode, int freq, int *chan) in hw_mode_get_channel() argument 51 if (ch->freq == freq) { in hw_mode_get_channel() 63 hw_get_channel_freq(enum hostapd_hw_mode mode, int freq, int *chan, in hw_get_channel_freq() argument 81 chan_data = hw_mode_get_channel(curr_mode, freq, chan); in hw_get_channel_freq() 92 int freq; in hw_get_freq() local [all …]
|
D | ieee802_11_common.c | 1384 enum hostapd_hw_mode ieee80211_freq_to_chan(int freq, u8 *channel) in ieee80211_freq_to_chan() argument 1388 return ieee80211_freq_to_channel_ext(freq, 0, CONF_OPER_CHWIDTH_USE_HT, in ieee80211_freq_to_chan() 1404 ieee80211_freq_to_channel_ext(unsigned int freq, int sec_channel, in ieee80211_freq_to_channel_ext() argument 1415 if (freq >= 2412 && freq <= 2472) { in ieee80211_freq_to_channel_ext() 1416 if ((freq - 2407) % 5) in ieee80211_freq_to_channel_ext() 1430 *channel = (freq - 2407) / 5; in ieee80211_freq_to_channel_ext() 1435 if (freq == 2484) { in ieee80211_freq_to_channel_ext() 1445 if (freq >= 4900 && freq < 5000) { in ieee80211_freq_to_channel_ext() 1446 if ((freq - 4000) % 5) in ieee80211_freq_to_channel_ext() 1448 *channel = (freq - 4000) / 5; in ieee80211_freq_to_channel_ext() [all …]
|
D | nan_de.h | 30 int (*tx)(void *ctx, unsigned int freq, unsigned int wait_time, 33 int (*listen)(void *ctx, unsigned int freq, unsigned int duration); 63 void nan_de_listen_started(struct nan_de *de, unsigned int freq, 65 void nan_de_listen_ended(struct nan_de *de, unsigned int freq); 66 void nan_de_tx_status(struct nan_de *de, unsigned int freq, const u8 *dst); 69 void nan_de_rx_sdf(struct nan_de *de, const u8 *peer_addr, unsigned int freq, 95 unsigned int freq; member 125 unsigned int freq; member
|
/hostap-latest/src/p2p/ |
D | p2p_utils.c | 69 int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel) in p2p_freq_to_channel() argument 71 if (ieee80211_freq_to_channel_ext(freq, 0, 0, op_class, channel) == in p2p_freq_to_channel() 225 int freq = p2p_channel_to_freq(op->reg_class, in p2p_channels_remove_freqs() local 227 if (freq > 0 && freq_range_list_includes(list, freq)) { in p2p_channels_remove_freqs() 272 unsigned int freq) in p2p_channels_includes_freq() argument 279 reg->channel[j]) == (int) freq) in p2p_channels_includes_freq() 287 int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq() argument 290 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) in p2p_supported_freq() 297 int p2p_supported_freq_go(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq_go() argument 300 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) in p2p_supported_freq_go() [all …]
|