Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 25 of 213) sorted by relevance

123456789

/hostap-3.6.0/tests/hwsim/
Dtest_p2p_channel.py42 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 …]
Dtest_ap_acs.py70 freq = hapd.get_status_field("freq")
71 if int(freq) < 2400:
74 dev[0].connect("test-acs", psk="12345678", scan_freq=freq)
85 freq = hapd.get_status_field("freq")
86 if int(freq) < 2400:
89 dev[0].connect("test-acs", psk="12345678", scan_freq=freq)
107 freq = int(hapd.get_status_field("freq"))
108 if freq not in freqlist:
109 raise Exception("Unexpected frequency: %d" % freq)
111 dev[0].connect("test-acs", psk="12345678", scan_freq=str(freq))
[all …]
Dtest_ap_csa.py24 def switch_channel(ap, count, freq): argument
25 ap.request("CHAN_SWITCH " + str(count) + " " + str(freq))
30 if "freq=" + str(freq) not in ev:
36 if "freq=" + str(freq) not in ev:
42 if "freq=" + str(freq) not in ev:
45 def wait_channel_switch(dev, freq): argument
49 if "freq=%d" % freq not in ev:
55 if "freq=%d" % freq not in ev:
62 freq = int(dev[0].get_driver_status_field("freq"))
63 if freq != 0:
[all …]
Dtest_ap_track.py44 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 …]
Dtest_cfg80211.py47 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')
76 res = nl80211_frame(go, ifindex, frame, freq=2422, duration=500,
84 nl80211_frame(go, ifindex, frame, freq=2412)
94 freq = out.splitlines()
95 if len(freq) != 2:
[all …]
Dtest_p2p_autogo.py89 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 …]
Dtest_ap_ht.py41 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 …]
Dtest_owe.py37 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 …]
Dtest_fils.py42 dev[0].scan_for_bss(bssid, freq=2412)
91 dev[0].scan_for_bss(bssid, freq=2412)
137 dev[0].scan_for_bss(bssid, freq=2412)
151 dev[0].select_network(id, freq=2412)
198 dev[0].scan_for_bss(bssid, freq=2412)
212 dev[0].select_network(id, freq=2412)
265 dev[0].scan_for_bss(bssid, freq=2412)
291 dev[0].scan_for_bss(bssid2, freq=2412)
333 dev[0].scan_for_bss(bssid, freq=2412)
353 dev[0].scan_for_bss(bssid, freq=2412)
[all …]
Dtest_ap_roam.py54 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 …]
Dtest_ap_hs20.py59 dev.scan_for_bss(bssid, freq="2412")
68 def interworking_select(dev, bssid, type=None, no_match=False, freq=None): argument
70 if bssid and freq and not no_match:
71 dev.scan_for_bss(bssid, freq=freq)
72 freq_extra = " freq=" + str(freq) if freq else ""
186 dev[0].scan_for_bss(bssid, freq="2412")
187 dev[0].scan_for_bss(bssid2, freq="2412")
188 interworking_select(dev[0], None, "home", freq="2412")
241 dev[0].scan_for_bss(bssid, freq="2412")
242 dev[0].scan_for_bss(bssid2, freq="2412")
[all …]
Dtest_scan.py160 dev[0].scan(freq="2412", only_new=True)
169 dev[0].scan(freq="2412", only_new=True)
172 dev[0].scan(freq="2412", only_new=True)
188 dev[0].scan(freq="2412")
217 dev[0].scan(freq="2412", only_new=True)
223 dev[0].scan(freq="2412")
225 dev[0].scan(freq="2412")
266 dev[0].scan(freq="2412")
267 dev[0].scan(freq="2412")
268 dev[0].scan(freq="2412")
[all …]
Dtest_dfs.py108 freq = hapd.get_status_field("freq")
109 if freq != "5260":
159 freq = hapd.get_status_field("freq")
160 if freq != "5260":
167 hapd.request("RADAR DETECTED freq=%s ht_enabled=1 chan_width=1" % freq)
171 if "freq=%s" % freq not in ev:
176 if "freq=%s" % freq in ev:
196 if "freq=%s" % freq in ev:
250 freq = hapd.get_status_field("freq")
251 if freq == "5260":
[all …]
/hostap-3.6.0/src/common/
Dhw_features_common.c20 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 …]
Dieee802_11_common.c871 enum hostapd_hw_mode ieee80211_freq_to_chan(int freq, u8 *channel) in ieee80211_freq_to_chan() argument
875 return ieee80211_freq_to_channel_ext(freq, 0, CHANWIDTH_USE_HT, in ieee80211_freq_to_chan()
890 enum hostapd_hw_mode ieee80211_freq_to_channel_ext(unsigned int freq, in ieee80211_freq_to_channel_ext() argument
902 if (freq >= 2412 && freq <= 2472) { in ieee80211_freq_to_channel_ext()
903 if ((freq - 2407) % 5) in ieee80211_freq_to_channel_ext()
917 *channel = (freq - 2407) / 5; in ieee80211_freq_to_channel_ext()
922 if (freq == 2484) { in ieee80211_freq_to_channel_ext()
932 if (freq >= 4900 && freq < 5000) { in ieee80211_freq_to_channel_ext()
933 if ((freq - 4000) % 5) in ieee80211_freq_to_channel_ext()
935 *channel = (freq - 4000) / 5; in ieee80211_freq_to_channel_ext()
[all …]
/hostap-3.6.0/src/ap/
Ddfs.c144 dfs_get_chan_data(struct hostapd_hw_modes *mode, int freq, int first_chan_idx) in dfs_get_chan_data() argument
149 if (mode->channels[i].freq == freq) in dfs_get_chan_data()
182 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
186 first_chan->freq + i * 20); in dfs_chan_range_available()
194 first_chan->freq + i * 20); in dfs_chan_range_available()
200 first_chan->freq + i * 20); in dfs_chan_range_available()
248 chan->freq, chan->chan); in dfs_find_channel()
256 chan->freq, chan->chan); in dfs_find_channel()
263 chan->freq, chan->chan); in dfs_find_channel()
272 chan->freq, chan->chan); in dfs_find_channel()
[all …]
Ddpp_hostapd.c225 static int hostapd_dpp_allow_ir(struct hostapd_data *hapd, unsigned int freq) in hostapd_dpp_allow_ir() argument
238 if (chan->freq != (int) freq) in hostapd_dpp_allow_ir()
252 freq); in hostapd_dpp_allow_ir()
261 if (pkex->freq == 2437) in hostapd_dpp_pkex_next_channel()
262 pkex->freq = 5745; in hostapd_dpp_pkex_next_channel()
263 else if (pkex->freq == 5745) in hostapd_dpp_pkex_next_channel()
264 pkex->freq = 5220; in hostapd_dpp_pkex_next_channel()
265 else if (pkex->freq == 5220) in hostapd_dpp_pkex_next_channel()
266 pkex->freq = 60480; in hostapd_dpp_pkex_next_channel()
270 if (hostapd_dpp_allow_ir(hapd, pkex->freq) == 1) { in hostapd_dpp_pkex_next_channel()
[all …]
Dacs.c384 if (chan->freq == allowed[i]) in acs_usable_bw40_chan()
399 if (chan->freq == allowed[i]) in acs_usable_bw80_chan()
413 if (chan->freq == allowed[i]) in acs_usable_bw160_chan()
527 chan->freq); in is_in_freqlist()
553 chan->chan, chan->freq); in acs_survey_mode_interference_factor()
578 acs_find_chan_mode(struct hostapd_hw_modes *mode, int freq) in acs_find_chan_mode() argument
589 if (chan->freq == freq) in acs_find_chan_mode()
598 acs_find_chan(struct hostapd_iface *iface, int freq) in acs_find_chan() argument
607 chan = acs_find_chan_mode(mode, freq); in acs_find_chan()
694 is_6ghz_freq(chan->freq)) && in acs_find_ideal_chan_mode()
[all …]
Dhw_features.c138 feature->channels[j].freq, in hostapd_get_hw_features()
232 pri_freq = iface->freq; in ieee80211n_allowed_ht40_channel_pair()
255 iface->freq += 20; in ieee80211n_switch_pri_sec()
259 iface->freq -= 20; in ieee80211n_switch_pri_sec()
272 pri_freq = iface->freq; in ieee80211n_check_40mhz_5g()
395 pri_freq = iface->freq; in ieee80211n_scan_channels_2g4()
420 if (chan->freq < affected_start || in ieee80211n_scan_channels_2g4()
421 chan->freq > affected_end) in ieee80211n_scan_channels_2g4()
423 params->freqs[pos++] = chan->freq; in ieee80211n_scan_channels_2g4()
440 pri_freq = iface->freq; in ieee80211n_scan_channels_5g()
[all …]
/hostap-3.6.0/src/p2p/
Dp2p_utils.c69 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 …]
Dp2p.h96 int freq; member
637 int (*p2p_scan)(void *ctx, enum p2p_scan_type type, int freq,
665 unsigned int freq);
687 int (*send_action)(void *ctx, unsigned int freq, const u8 *dst,
721 int (*start_listen)(void *ctx, unsigned int freq,
835 void (*sd_request)(void *ctx, int freq, const u8 *sa, u8 dialog_token,
992 const u8 *addr, int freq, int peer_oper_freq);
1067 unsigned int *freq);
1093 unsigned int freq, const u8 *group_ssid,
1255 u8 seek_count, const char **seek_string, int freq,
[all …]
/hostap-3.6.0/wpa_supplicant/
Doffchannel.c259 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 …]
Dp2p_supplicant.c125 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);
224 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_valid_oper_freqs()
237 int freq) in wpas_p2p_set_own_freq_preference() argument
246 freq > 0 && wpa_s->num_multichan_concurrent > 1 && in wpas_p2p_set_own_freq_preference()
249 freq); in wpas_p2p_set_own_freq_preference()
250 freq = 0; in wpas_p2p_set_own_freq_preference()
[all …]
Dmesh.c219 &params->freq, in wpas_mesh_update_freq_params()
221 ifmsh->freq, in wpas_mesh_update_freq_params()
260 if (ifmsh->freq > 0 && ifmsh->freq != params->freq.freq) { in wpas_mesh_complete()
261 wpa_s->assoc_freq = ifmsh->freq; in wpas_mesh_complete()
262 ssid->frequency = ifmsh->freq; in wpas_mesh_complete()
382 struct hostapd_freq_params *freq) in wpa_supplicant_mesh_init() argument
427 if (frequency != freq->freq && in wpa_supplicant_mesh_init()
428 frequency == freq->freq + freq->sec_channel_offset * 20) { in wpa_supplicant_mesh_init()
430 frequency = freq->freq; in wpa_supplicant_mesh_init()
441 if (is_6ghz_freq(freq->freq)) { in wpa_supplicant_mesh_init()
[all …]
Ddpp_supplicant.c34 unsigned int freq);
39 unsigned int freq, const u8 *dst,
47 unsigned int freq, const u8 *dst,
266 unsigned int freq, in wpas_dpp_stop_listen_for_tx() argument
282 if (wpa_s->dpp_listen_freq == freq && remaining > wait_time) in wpas_dpp_stop_listen_for_tx()
287 wpa_s->dpp_listen_freq, remaining, freq, wait_time); in wpas_dpp_stop_listen_for_tx()
446 unsigned int freq, const u8 *dst, in wpas_dpp_tx_status() argument
458 " result=%s", freq, MAC2STR(dst), res_txt); in wpas_dpp_tx_status()
460 " freq=%u result=%s", MAC2STR(dst), freq, res_txt); in wpas_dpp_tx_status()
567 unsigned int freq; in wpas_dpp_reply_wait_timeout() local
[all …]

123456789