Lines Matching refs:conf

154 	if (iface->conf->basic_rates)  in hostapd_prepare_rates()
155 basic_rates = iface->conf->basic_rates; in hostapd_prepare_rates()
196 if (iface->conf->supported_rates && in hostapd_prepare_rates()
197 !hostapd_rate_found(iface->conf->supported_rates, in hostapd_prepare_rates()
213 (!iface->conf->ieee80211n || !iface->conf->require_ht)) { in hostapd_prepare_rates()
229 if (!iface->conf->secondary_channel) in ieee80211n_allowed_ht40_channel_pair()
232 pri_chan = iface->conf->channel; in ieee80211n_allowed_ht40_channel_pair()
233 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_allowed_ht40_channel_pair()
242 if (iface->conf->secondary_channel > 0) { in ieee80211n_switch_pri_sec()
243 iface->conf->channel += 4; in ieee80211n_switch_pri_sec()
244 iface->conf->secondary_channel = -1; in ieee80211n_switch_pri_sec()
246 iface->conf->channel -= 4; in ieee80211n_switch_pri_sec()
247 iface->conf->secondary_channel = 1; in ieee80211n_switch_pri_sec()
258 pri_chan = iface->conf->channel; in ieee80211n_check_40mhz_5g()
259 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_check_40mhz_5g()
275 pri_chan = iface->conf->channel; in ieee80211n_check_40mhz_2g4()
276 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_check_40mhz_2g4()
306 iface->secondary_ch = iface->conf->secondary_channel; in ieee80211n_check_scan()
310 iface->conf->channel, in ieee80211n_check_scan()
311 iface->conf->channel + in ieee80211n_check_scan()
312 iface->conf->secondary_channel * 4); in ieee80211n_check_scan()
313 iface->conf->secondary_channel = 0; in ieee80211n_check_scan()
325 iface->conf->secondary_channel = 0; in ieee80211n_check_scan()
345 pri_freq = hostapd_hw_get_freq(iface->bss[0], iface->conf->channel); in ieee80211n_scan_channels_2g4()
346 if (iface->conf->secondary_channel > 0) in ieee80211n_scan_channels_2g4()
390 pri_freq = hostapd_hw_get_freq(iface->bss[0], iface->conf->channel); in ieee80211n_scan_channels_5g()
391 if (iface->conf->secondary_channel > 0) { in ieee80211n_scan_channels_5g()
452 iface->conf->secondary_channel = 0; in ap_ht40_scan_retry()
453 iface->conf->ht_capab &= ~HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET; in ap_ht40_scan_retry()
469 if (!iface->conf->secondary_channel) in ieee80211n_check_40mhz()
509 u16 conf = iface->conf->ht_capab; in ieee80211n_supported_ht_capab() local
511 if ((conf & HT_CAP_INFO_LDPC_CODING_CAP) && in ieee80211n_supported_ht_capab()
522 if (!iface->conf->acs && (conf & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET) && in ieee80211n_supported_ht_capab()
529 switch (conf & HT_CAP_INFO_SMPS_MASK) { in ieee80211n_supported_ht_capab()
549 if ((conf & HT_CAP_INFO_GREEN_FIELD) && in ieee80211n_supported_ht_capab()
556 if ((conf & HT_CAP_INFO_SHORT_GI20MHZ) && in ieee80211n_supported_ht_capab()
563 if ((conf & HT_CAP_INFO_SHORT_GI40MHZ) && in ieee80211n_supported_ht_capab()
570 if ((conf & HT_CAP_INFO_TX_STBC) && !(hw & HT_CAP_INFO_TX_STBC)) { in ieee80211n_supported_ht_capab()
576 if ((conf & HT_CAP_INFO_RX_STBC_MASK) > in ieee80211n_supported_ht_capab()
583 if ((conf & HT_CAP_INFO_DELAYED_BA) && in ieee80211n_supported_ht_capab()
590 if ((conf & HT_CAP_INFO_MAX_AMSDU_SIZE) && in ieee80211n_supported_ht_capab()
597 if ((conf & HT_CAP_INFO_DSSS_CCK40MHZ) && in ieee80211n_supported_ht_capab()
604 if ((conf & HT_CAP_INFO_LSIG_TXOP_PROTECT_SUPPORT) && in ieee80211n_supported_ht_capab()
617 static int ieee80211ac_cap_check(u32 hw, u32 conf, u32 cap, const char *name) in ieee80211ac_cap_check() argument
619 u32 req_cap = conf & cap; in ieee80211ac_cap_check()
635 static int ieee80211ac_cap_check_max(u32 hw, u32 conf, u32 mask, in ieee80211ac_cap_check_max() argument
640 u32 conf_val = conf & mask; in ieee80211ac_cap_check_max()
655 u32 conf = iface->conf->vht_capab; in ieee80211ac_supported_vht_capab() local
658 hw, conf); in ieee80211ac_supported_vht_capab()
661 iface->conf->bss[0]->vendor_vht && in ieee80211ac_supported_vht_capab()
680 if (!ieee80211ac_cap_check(hw, conf, cap, #cap)) \ in ieee80211ac_supported_vht_capab()
686 if (!ieee80211ac_cap_check_max(hw, conf, cap, cap ## _SHIFT, \ in ieee80211ac_supported_vht_capab()
727 if (!iface->conf->ieee80211n) in hostapd_check_ht_capab()
777 if (!hostapd_is_usable_chan(iface, iface->conf->channel, 1)) in hostapd_is_usable_chans()
780 if (!iface->conf->secondary_channel) in hostapd_is_usable_chans()
783 return hostapd_is_usable_chan(iface, iface->conf->channel + in hostapd_is_usable_chans()
784 iface->conf->secondary_channel * 4, 0); in hostapd_is_usable_chans()
791 if (iface->conf->channel) { in hostapd_check_chans()
827 iface->conf->channel, in hostapd_notify_bad_chans()
848 iface->conf->channel), in hostapd_acs_completed()
849 iface->conf->channel); in hostapd_acs_completed()
893 if ((iface->conf->hw_mode == HOSTAPD_MODE_IEEE80211G || in hostapd_select_hw_mode()
894 iface->conf->ieee80211n || iface->conf->ieee80211ac) && in hostapd_select_hw_mode()
895 iface->conf->channel == 14) { in hostapd_select_hw_mode()
897 iface->conf->hw_mode = HOSTAPD_MODE_IEEE80211B; in hostapd_select_hw_mode()
898 iface->conf->ieee80211n = 0; in hostapd_select_hw_mode()
899 iface->conf->ieee80211ac = 0; in hostapd_select_hw_mode()
905 if (mode->mode == iface->conf->hw_mode) { in hostapd_select_hw_mode()
921 (int) iface->conf->hw_mode); in hostapd_select_hw_mode()