Home | History | Annotate | Download | only in ap

Lines Matching refs:conf

154 	if (iface->conf->basic_rates)
155 basic_rates = iface->conf->basic_rates;
196 if (iface->conf->supported_rates &&
197 !hostapd_rate_found(iface->conf->supported_rates,
213 (!iface->conf->ieee80211n || !iface->conf->require_ht)) {
229 if (!iface->conf->secondary_channel)
232 pri_chan = iface->conf->channel;
233 sec_chan = pri_chan + iface->conf->secondary_channel * 4;
242 if (iface->conf->secondary_channel > 0) {
243 iface->conf->channel += 4;
244 iface->conf->secondary_channel = -1;
246 iface->conf->channel -= 4;
247 iface->conf->secondary_channel = 1;
258 pri_chan = iface->conf->channel;
259 sec_chan = pri_chan + iface->conf->secondary_channel * 4;
264 if (iface->conf->no_pri_sec_switch) {
281 pri_chan = iface->conf->channel;
282 sec_chan = pri_chan + iface->conf->secondary_channel * 4;
312 iface->secondary_ch = iface->conf->secondary_channel;
316 iface->conf->channel,
317 iface->conf->channel +
318 iface->conf->secondary_channel * 4);
319 iface->conf->secondary_channel = 0;
331 iface->conf->secondary_channel = 0;
352 pri_freq = hostapd_hw_get_freq(iface->bss[0], iface->conf->channel);
353 if (iface->conf->secondary_channel > 0)
397 pri_freq = hostapd_hw_get_freq(iface->bss[0], iface->conf->channel);
398 if (iface->conf->secondary_channel > 0) {
459 iface->conf->secondary_channel = 0;
460 iface->conf->ht_capab &= ~HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET;
477 if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch)
517 u16 conf = iface->conf->ht_capab;
519 if ((conf & HT_CAP_INFO_LDPC_CODING_CAP) &&
530 if (!iface->conf->acs && (conf & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET) &&
537 switch (conf & HT_CAP_INFO_SMPS_MASK) {
557 if ((conf & HT_CAP_INFO_GREEN_FIELD) &&
564 if ((conf & HT_CAP_INFO_SHORT_GI20MHZ) &&
571 if ((conf & HT_CAP_INFO_SHORT_GI40MHZ) &&
578 if ((conf & HT_CAP_INFO_TX_STBC) && !(hw & HT_CAP_INFO_TX_STBC)) {
584 if ((conf & HT_CAP_INFO_RX_STBC_MASK) >
591 if ((conf & HT_CAP_INFO_DELAYED_BA) &&
598 if ((conf & HT_CAP_INFO_MAX_AMSDU_SIZE) &&
605 if ((conf & HT_CAP_INFO_DSSS_CCK40MHZ) &&
612 if ((conf & HT_CAP_INFO_LSIG_TXOP_PROTECT_SUPPORT) &&
625 static int ieee80211ac_cap_check(u32 hw, u32 conf, u32 cap, const char *name)
627 u32 req_cap = conf & cap;
643 static int ieee80211ac_cap_check_max(u32 hw, u32 conf, u32 mask,
648 u32 conf_val = conf & mask;
663 u32 conf = iface->conf->vht_capab;
665 wpa_printf(MSG_DEBUG, "hw vht capab: 0x%x, conf vht capab: 0x%x",
666 hw, conf);
669 iface->conf->bss[0]->vendor_vht &&
688 if (!ieee80211ac_cap_check(hw, conf, cap, #cap)) \
694 if (!ieee80211ac_cap_check_max(hw, conf, cap, cap ## _SHIFT, \
735 if (!iface->conf->ieee80211n)
740 (iface->conf->ht_capab & HT_CAP_INFO_DSSS_CCK40MHZ)) {
743 iface->conf->ht_capab &= ~HT_CAP_INFO_DSSS_CCK40MHZ;
794 if (!hostapd_is_usable_chan(iface, iface->conf->channel, 1))
797 if (!iface->conf->secondary_channel)
800 return hostapd_is_usable_chan(iface, iface->conf->channel +
801 iface->conf->secondary_channel * 4, 0);
808 if (iface->conf->channel) {
844 iface->conf->channel,
865 iface->conf->channel),
866 iface->conf->channel);
910 if ((iface->conf->hw_mode == HOSTAPD_MODE_IEEE80211G ||
911 iface->conf->ieee80211n || iface->conf->ieee80211ac) &&
912 iface->conf->channel == 14) {
914 iface->conf->hw_mode = HOSTAPD_MODE_IEEE80211B;
915 iface->conf->ieee80211n = 0;
916 iface->conf->ieee80211ac = 0;
922 if (mode->mode == iface->conf->hw_mode) {
937 "Hardware does not support configured mode (%d) (hw_mode in hostapd.conf)",
938 (int) iface->conf->hw_mode);