Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 127) sorted by relevance

123456

/hostap-latest/wpa_supplicant/
Dop_classes.c20 static enum chan_allowed allow_channel(struct hostapd_hw_modes *mode, in allow_channel() argument
27 for (i = 0; i < mode->num_channels; i++) { in allow_channel()
30 chan_is_6ghz = is_6ghz_freq(mode->channels[i].freq); in allow_channel()
31 if (is_6ghz == chan_is_6ghz && mode->channels[i].chan == chan) in allow_channel()
35 if (i == mode->num_channels || in allow_channel()
36 (mode->channels[i].flag & HOSTAPD_CHAN_DISABLED)) in allow_channel()
40 *flags = mode->channels[i].flag; in allow_channel()
42 if (mode->channels[i].flag & HOSTAPD_CHAN_NO_IR) in allow_channel()
49 static int get_center_80mhz(struct hostapd_hw_modes *mode, u8 channel, in get_center_80mhz() argument
54 if (mode->mode != HOSTAPD_MODE_IEEE80211A) in get_center_80mhz()
[all …]
Dap.c48 static bool is_chanwidth160_supported(struct hostapd_hw_modes *mode, in is_chanwidth160_supported() argument
55 he_cap = &mode->he_capab[IEEE80211_MODE_AP]; in is_chanwidth160_supported()
62 if (mode->vht_capab & (VHT_CAP_SUPP_CHAN_WIDTH_160MHZ | in is_chanwidth160_supported()
73 struct hostapd_hw_modes *mode) in wpas_conf_ap_vht() argument
117 center_chan = wpas_p2p_get_vht80_center(wpa_s, mode, channel, in wpas_conf_ap_vht()
124 center_chan = wpas_p2p_get_vht160_center(wpa_s, mode, channel, in wpas_conf_ap_vht()
141 center_chan = wpas_p2p_get_vht160_center(wpa_s, mode, channel, in wpas_conf_ap_vht()
143 if (center_chan && is_chanwidth160_supported(mode, conf)) { in wpas_conf_ap_vht()
153 center_chan = wpas_p2p_get_vht80_center(wpa_s, mode, in wpas_conf_ap_vht()
188 struct hostapd_hw_modes *mode = NULL; in wpa_supplicant_find_hw_mode() local
[all …]
Drrm.c288 static int wpas_rrm_report_elem(struct wpabuf **buf, u8 token, u8 mode, u8 type, in wpas_rrm_report_elem() argument
297 wpabuf_put_u8(*buf, mode); in wpas_rrm_report_elem()
504 struct hostapd_hw_modes *mode, in wpas_add_channels() argument
534 enum chan_allowed res = verify_channel(mode, op->op_class, chan, in wpas_add_channels()
559 struct hostapd_hw_modes *mode) in wpas_op_class_freqs() argument
590 return wpas_add_channels(op, mode, channels, num_chan); in wpas_op_class_freqs()
605 struct hostapd_hw_modes *mode; in wpas_channel_report_freqs() local
627 mode = get_mode(wpa_s->hw.modes, wpa_s->hw.num_modes, op->mode, in wpas_channel_report_freqs()
629 if (!mode) in wpas_channel_report_freqs()
642 new_freqs = wpas_add_channels(op, mode, pos, left); in wpas_channel_report_freqs()
[all …]
Dp2p_supplicant.c169 static int wpas_get_6ghz_he_chwidth_capab(struct hostapd_hw_modes *mode) in wpas_get_6ghz_he_chwidth_capab() argument
173 if (mode) in wpas_get_6ghz_he_chwidth_capab()
174 he_capab = mode->he_capab[WPAS_MODE_INFRA].phy_cap[ in wpas_get_6ghz_he_chwidth_capab()
573 if (s->mode == WPAS_MODE_P2P_GO && in wpas_get_p2p_group()
577 *go = s->mode == WPAS_MODE_P2P_GO; in wpas_get_p2p_group()
628 s->mode); in p2p_group_go_member_count()
630 s->mode == WPAS_MODE_P2P_GO) { in p2p_group_go_member_count()
653 wpa_s->current_ssid->mode == WPAS_MODE_P2P_GO; in p2p_is_active_persistent_go()
684 wpa_s->current_ssid->mode == WPAS_MODE_INFRA; in p2p_is_active_persistent_cli()
708 if (s->disabled == 2 && s->mode == WPAS_MODE_P2P_GO) in wpas_p2p_get_persistent_go()
[all …]
Dwpa_supplicant.c174 if (ssid->mode != WPAS_MODE_IBSS) { in wpa_supplicant_set_wpa_none_key()
176 "IBSS/ad-hoc) for WPA-None", ssid->mode); in wpa_supplicant_set_wpa_none_key()
319 if (ssid->mode == WPAS_MODE_IBSS && in wpa_supplicant_initiate_eapol()
1058 wpa_s->current_ssid->mode == WPAS_MODE_INFRA && in wpa_supplicant_set_state()
2074 if (ssid->mode == WPAS_MODE_INFRA && wpa_s->conf->extended_key_id && in wpa_supplicant_set_suites()
2189 if (ssid->mode != WPAS_MODE_IBSS && in wpa_supplicant_set_suites()
2649 if (ssid->mode == WPAS_MODE_IBSS && in wpa_supplicant_associate()
2657 if (ssid->mode == WPAS_MODE_AP || ssid->mode == WPAS_MODE_P2P_GO || in wpa_supplicant_associate()
2658 ssid->mode == WPAS_MODE_P2P_GROUP_FORMATION) { in wpa_supplicant_associate()
2667 if (ssid->mode == WPAS_MODE_P2P_GROUP_FORMATION) in wpa_supplicant_associate()
[all …]
Dwpa_supplicant.conf2028 mode=1
2037 mode=1
2049 mode=5
2057 mode=5
/hostap-latest/src/ap/
Dhw_features.c86 enum hostapd_hw_mode mode = HOSTAPD_MODE_IEEE80211ANY; in hostapd_get_hw_features() local
113 mode = iface->current_mode->mode; in hostapd_get_hw_features()
127 if (orig_mode_valid && feature->mode == mode && in hostapd_get_hw_features()
161 feature->mode, in hostapd_get_hw_features()
180 struct hostapd_hw_modes *mode) in hostapd_prepare_rates() argument
190 else switch (mode->mode) { in hostapd_prepare_rates()
220 os_calloc(mode->num_rates, sizeof(struct hostapd_rate_data)); in hostapd_prepare_rates()
227 for (i = 0; i < mode->num_rates; i++) { in hostapd_prepare_rates()
232 mode->rates[i])) in hostapd_prepare_rates()
236 rate->rate = mode->rates[i]; in hostapd_prepare_rates()
[all …]
Dacs.c337 static void acs_cleanup_mode(struct hostapd_hw_modes *mode) in acs_cleanup_mode() argument
342 for (i = 0; i < mode->num_channels; i++) { in acs_cleanup_mode()
343 chan = &mode->channels[i]; in acs_cleanup_mode()
534 static int acs_surveys_are_sufficient_mode(struct hostapd_hw_modes *mode) in acs_surveys_are_sufficient_mode() argument
539 for (i = 0; i < mode->num_channels; i++) { in acs_surveys_are_sufficient_mode()
540 chan = &mode->channels[i]; in acs_surveys_are_sufficient_mode()
553 struct hostapd_hw_modes *mode; in acs_surveys_are_sufficient() local
556 mode = &iface->hw_features[i]; in acs_surveys_are_sufficient()
557 if (!hostapd_hw_skip_mode(iface, mode) && in acs_surveys_are_sufficient()
558 acs_surveys_are_sufficient_mode(mode)) in acs_surveys_are_sufficient()
[all …]
Ddfs.c159 dfs_get_chan_data(struct hostapd_hw_modes *mode, int freq, int first_chan_idx) in dfs_get_chan_data() argument
163 for (i = first_chan_idx; i < mode->num_channels; i++) { in dfs_get_chan_data()
164 if (mode->channels[i].freq == freq) in dfs_get_chan_data()
165 return &mode->channels[i]; in dfs_get_chan_data()
172 static int dfs_chan_range_available(struct hostapd_hw_modes *mode, in dfs_chan_range_available() argument
180 if (first_chan_idx + num_chans > mode->num_channels) { in dfs_chan_range_available()
186 first_chan = &mode->channels[first_chan_idx]; in dfs_chan_range_available()
197 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
245 struct hostapd_hw_modes *mode; in dfs_find_channel() local
249 mode = iface->current_mode; in dfs_find_channel()
[all …]
Dieee802_11_vht.c27 struct hostapd_hw_modes *mode = hapd->iface->current_mode; in hostapd_eid_vht_capabilities() local
30 if (!mode || is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_vht_capabilities()
33 if (mode->mode == HOSTAPD_MODE_IEEE80211G && hapd->conf->vendor_vht && in hostapd_eid_vht_capabilities()
34 mode->vht_capab == 0 && hapd->iface->hw_features) { in hostapd_eid_vht_capabilities()
38 if (hapd->iface->hw_features[i].mode == in hostapd_eid_vht_capabilities()
40 mode = &hapd->iface->hw_features[i]; in hostapd_eid_vht_capabilities()
67 os_memcpy(&cap->vht_supported_mcs_set, mode->vht_mcs_set, 8); in hostapd_eid_vht_capabilities()
143 static int check_valid_vht_mcs(struct hostapd_hw_modes *mode, in check_valid_vht_mcs() argument
151 if (!mode) in check_valid_vht_mcs()
160 os_memcpy(&ap_vht_cap.vht_supported_mcs_set, mode->vht_mcs_set, in check_valid_vht_mcs()
[all …]
Dieee802_11_eht.c46 static u8 ieee80211_eht_mcs_set_size(enum hostapd_hw_mode mode, u8 opclass, in ieee80211_eht_mcs_set_size() argument
76 band24 = mode == HOSTAPD_MODE_IEEE80211B || in ieee80211_eht_mcs_set_size()
77 mode == HOSTAPD_MODE_IEEE80211G || in ieee80211_eht_mcs_set_size()
78 mode == NUM_HOSTAPD_MODES; in ieee80211_eht_mcs_set_size()
79 band5 = mode == HOSTAPD_MODE_IEEE80211A || in ieee80211_eht_mcs_set_size()
80 mode == NUM_HOSTAPD_MODES; in ieee80211_eht_mcs_set_size()
112 struct hostapd_hw_modes *mode; in hostapd_eid_eht_capab_len() local
116 mode = hapd->iface->current_mode; in hostapd_eid_eht_capab_len()
117 if (!mode) in hostapd_eid_eht_capab_len()
120 eht_cap = &mode->eht_capab[opmode]; in hostapd_eid_eht_capab_len()
[all …]
Dhw_features.h21 const char * hostapd_hw_mode_txt(int mode);
28 struct hostapd_hw_modes *mode);
31 struct hostapd_hw_modes *mode);
60 static inline const char * hostapd_hw_mode_txt(int mode) in hostapd_hw_mode_txt() argument
81 struct hostapd_hw_modes *mode) in hostapd_prepare_rates() argument
91 struct hostapd_hw_modes *mode) in hostapd_hw_skip_mode() argument
Dieee802_11_he.c93 struct hostapd_hw_modes *mode = hapd->iface->current_mode; in hostapd_eid_he_capab() local
98 if (!mode) in hostapd_eid_he_capab()
102 ppet_size = ieee80211_he_ppet_size(mode->he_capab[opmode].ppet[0], in hostapd_eid_he_capab()
103 mode->he_capab[opmode].phy_cap); in hostapd_eid_he_capab()
133 os_memcpy(cap->he_mac_capab_info, mode->he_capab[opmode].mac_cap, in hostapd_eid_he_capab()
135 os_memcpy(cap->he_phy_capab_info, mode->he_capab[opmode].phy_cap, in hostapd_eid_he_capab()
137 os_memcpy(cap->optional, mode->he_capab[opmode].mcs, mcs_nss_size); in hostapd_eid_he_capab()
140 mode->he_capab[opmode].ppet, ppet_size); in hostapd_eid_he_capab()
372 struct hostapd_hw_modes *mode = hapd->iface->current_mode; in hostapd_eid_he_6ghz_band_cap() local
378 if (!mode || !is_6ghz_op_class(hapd->iconf->op_class) || in hostapd_eid_he_6ghz_band_cap()
[all …]
Dap_drv_ops.c644 int hostapd_set_freq(struct hostapd_data *hapd, enum hostapd_hw_mode mode, in hostapd_set_freq() argument
654 if (hostapd_set_freq_params(&data, mode, freq, channel, edmg, in hostapd_set_freq()
985 enum hostapd_hw_mode mode, int freq, in hostapd_start_dfs_cac() argument
1006 if (hostapd_set_freq_params(&data, mode, freq, channel, 0, 0, in hostapd_start_dfs_cac()
1046 struct hostapd_hw_modes *mode, in hostapd_get_hw_mode_any_channels() argument
1053 for (i = 0; i < mode->num_channels; i++) { in hostapd_get_hw_mode_any_channels()
1054 struct hostapd_channel_data *chan = &mode->channels[i]; in hostapd_get_hw_mode_any_channels()
1125 struct hostapd_hw_modes *mode; in hostapd_drv_do_acs() local
1151 selected_mode = hapd->iface->current_mode->mode; in hostapd_drv_do_acs()
1156 mode = &hapd->iface->hw_features[i]; in hostapd_drv_do_acs()
[all …]
Dctrl_iface_ap.c215 static const char * hw_mode_str(enum hostapd_hw_mode mode) in hw_mode_str() argument
217 switch (mode) { in hw_mode_str()
787 struct hostapd_hw_modes *mode = iface->current_mode; in hostapd_ctrl_iface_status() local
823 if (mode) { in hostapd_ctrl_iface_status()
825 hw_mode_str(mode->mode)); in hostapd_ctrl_iface_status()
992 if (iface->conf->ieee80211ac && !hapd->conf->disable_11ac && mode) { in hostapd_ctrl_iface_status()
993 u16 rxmap = WPA_GET_LE16(&mode->vht_mcs_set[0]); in hostapd_ctrl_iface_status()
994 u16 txmap = WPA_GET_LE16(&mode->vht_mcs_set[4]); in hostapd_ctrl_iface_status()
1014 if (iface->conf->ieee80211n && !hapd->conf->disable_11n && mode) { in hostapd_ctrl_iface_status()
1016 mode->mcs_set); in hostapd_ctrl_iface_status()
[all …]
/hostap-latest/tests/fuzzing/ap-mgmt/
Dap-mgmt.c67 struct hostapd_hw_modes *mode; in gen_modes() local
70 mode = os_zalloc(sizeof(struct hostapd_hw_modes)); in gen_modes()
71 if (!mode) in gen_modes()
74 mode->mode = HOSTAPD_MODE_IEEE80211G; in gen_modes()
77 os_free(mode); in gen_modes()
82 mode->channels = chan; in gen_modes()
83 mode->num_channels = 1; in gen_modes()
85 mode->rates = os_zalloc(sizeof(int)); in gen_modes()
86 if (!mode->rates) { in gen_modes()
88 os_free(mode); in gen_modes()
[all …]
/hostap-latest/src/drivers/
Ddriver_nl80211_capa.c1618 static void phy_info_ht_capa(struct hostapd_hw_modes *mode, struct nlattr *capa, in phy_info_ht_capa() argument
1624 mode->ht_capab = nla_get_u16(capa); in phy_info_ht_capa()
1627 mode->a_mpdu_params |= nla_get_u8(ampdu_factor) & 0x03; in phy_info_ht_capa()
1630 mode->a_mpdu_params |= nla_get_u8(ampdu_density) << 2; in phy_info_ht_capa()
1635 os_memcpy(mode->mcs_set, mcs, 16); in phy_info_ht_capa()
1640 static void phy_info_vht_capa(struct hostapd_hw_modes *mode, in phy_info_vht_capa() argument
1645 mode->vht_capab = nla_get_u32(capa); in phy_info_vht_capa()
1650 os_memcpy(mode->vht_mcs_set, mcs, 8); in phy_info_vht_capa()
1655 static int phy_info_edmg_capa(struct hostapd_hw_modes *mode, in phy_info_edmg_capa() argument
1662 mode->edmg.bw_config = nla_get_u8(bw_config); in phy_info_edmg_capa()
[all …]
Ddriver_zephyr.c656 static void phy_info_freq_cfg(struct hostapd_hw_modes *mode, in phy_info_freq_cfg() argument
706 struct hostapd_hw_modes *mode, in phy_info_freqs_cfg() argument
713 if (!phy_info || !mode || !band_info) in phy_info_freqs_cfg()
720 channel = os_realloc_array(mode->channels, in phy_info_freqs_cfg()
721 mode->num_channels + new_channels, in phy_info_freqs_cfg()
726 os_memset(channel, 0, (mode->num_channels + new_channels) * sizeof(*channel)); in phy_info_freqs_cfg()
728 mode->channels = channel; in phy_info_freqs_cfg()
729 mode->num_channels += new_channels; in phy_info_freqs_cfg()
734 phy_info_freq_cfg(mode, &mode->channels[idx], &band_info->channels[i]); in phy_info_freqs_cfg()
743 static int phy_info_rates_cfg(struct hostapd_hw_modes *mode, in phy_info_rates_cfg() argument
[all …]
Ddriver_hostap.c1105 struct hostapd_hw_modes *mode; in hostap_get_hw_feature_data() local
1112 mode = os_zalloc(sizeof(struct hostapd_hw_modes)); in hostap_get_hw_feature_data()
1113 if (mode == NULL) in hostap_get_hw_feature_data()
1120 mode->mode = HOSTAPD_MODE_IEEE80211B; in hostap_get_hw_feature_data()
1121 mode->num_channels = 14; in hostap_get_hw_feature_data()
1122 mode->num_rates = 4; in hostap_get_hw_feature_data()
1124 clen = mode->num_channels * sizeof(struct hostapd_channel_data); in hostap_get_hw_feature_data()
1125 rlen = mode->num_rates * sizeof(int); in hostap_get_hw_feature_data()
1127 mode->channels = os_zalloc(clen); in hostap_get_hw_feature_data()
1128 mode->rates = os_zalloc(rlen); in hostap_get_hw_feature_data()
[all …]
Ddriver_common.c154 int ht_supported(const struct hostapd_hw_modes *mode) in ht_supported() argument
156 if (!(mode->flags & HOSTAPD_MODE_FLAG_HT_INFO_KNOWN)) { in ht_supported()
168 return mode->mcs_set[0] == 0xff; in ht_supported()
172 int vht_supported(const struct hostapd_hw_modes *mode) in vht_supported() argument
174 if (!(mode->flags & HOSTAPD_MODE_FLAG_VHT_INFO_KNOWN)) { in vht_supported()
186 return (mode->vht_mcs_set[0] & 0x3) != 3; in vht_supported()
/hostap-latest/src/common/
Dhw_features_common.h15 struct hostapd_channel_data * hw_get_channel_chan(struct hostapd_hw_modes *mode,
18 hw_mode_get_channel(struct hostapd_hw_modes *mode, int freq, int *chan);
21 hw_get_channel_freq(enum hostapd_hw_mode mode, int freq, int *chan,
24 int hw_get_freq(struct hostapd_hw_modes *mode, int chan);
25 int hw_get_chan(enum hostapd_hw_mode mode, int freq,
28 int allowed_ht40_channel_pair(enum hostapd_hw_mode mode,
35 int check_40mhz_2g4(struct hostapd_hw_modes *mode,
41 enum hostapd_hw_mode mode,
Dhw_features_common.c19 struct hostapd_channel_data * hw_get_channel_chan(struct hostapd_hw_modes *mode, in hw_get_channel_chan() argument
27 if (!mode) in hw_get_channel_chan()
30 for (i = 0; i < mode->num_channels; i++) { in hw_get_channel_chan()
31 struct hostapd_channel_data *ch = &mode->channels[i]; 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
48 for (i = 0; i < mode->num_channels; i++) { in hw_mode_get_channel()
49 struct hostapd_channel_data *ch = &mode->channels[i]; 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
78 if (curr_mode->mode != mode) in hw_get_channel_freq()
90 int hw_get_freq(struct hostapd_hw_modes *mode, int chan) in hw_get_freq() argument
[all …]
/hostap-latest/tests/hwsim/
Dtest_wmediumd.py181 mode = dev[i].get_status_field("mode")
182 if mode != "mesh":
183 raise Exception("Unexpected mode: " + mode)
283 mode = dev[i].get_status_field("mode")
284 if mode != "mesh":
285 raise Exception("Unexpected mode: " + mode)
403 mode = dev[i].get_status_field("mode")
404 if mode != "mesh":
405 raise Exception("Unexpected mode: " + mode)
Dtest_rrm.py818 def build_beacon_request(opclass=81, chan=0, rand_int=0, duration=0, mode=0, argument
820 req = struct.pack("<BBHHB", opclass, chan, rand_int, duration, mode)
872 req = build_beacon_request(mode=2)
916 req = build_beacon_request(mode=2)
963 req = build_beacon_request(mode=2)
992 req = build_beacon_request(mode=2)
1028 req = build_beacon_request(mode=2)
1108 req = build_beacon_request(mode=2)
1166 req = build_beacon_request(mode=2)
1225 req = build_beacon_request(mode=2, bssid=bssid2)
[all …]
/hostap-latest/hostapd/
DREADME-MULTI-AP52 must use 4-address mode for all frames sent over this link ([3], section 14).
59 wpa_supplicant sets 4-address mode for this interface through a driver
69 frames sent to a backhaul STA must use 4-address mode, while frames sent to a
71 3-address mode.
73 A BSS is configured in Multi-AP mode in hostapd by setting the 'multi_ap'
78 hostapd sets up 4-address mode. Since there may be multiple stations connected
104 6. STA and AP both use 4-address mode for Data frames.

123456