diff options
author | Jouni Malinen <j@w1.fi> | 2009-12-06 19:17:54 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-12-06 19:17:54 +0200 |
commit | eb53b752df05adce1afd05901a40f54e0835b519 (patch) | |
tree | 10eb39e2f6adca4be6d7620c1418fb6a9a2c2cce /hostapd/ap_list.c | |
parent | 644a8f2208abb68919e72e53cc5aeb2c5f1091b6 (diff) | |
download | external_wpa_supplicant_8_ti-eb53b752df05adce1afd05901a40f54e0835b519.zip external_wpa_supplicant_8_ti-eb53b752df05adce1afd05901a40f54e0835b519.tar.gz external_wpa_supplicant_8_ti-eb53b752df05adce1afd05901a40f54e0835b519.tar.bz2 |
Remove unnecessary CONFIG_IEEE80211N use
Diffstat (limited to 'hostapd/ap_list.c')
-rw-r--r-- | hostapd/ap_list.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/hostapd/ap_list.c b/hostapd/ap_list.c index ed635bd..f7ceb5f 100644 --- a/hostapd/ap_list.c +++ b/hostapd/ap_list.c @@ -56,15 +56,6 @@ static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap) } -#ifdef CONFIG_IEEE80211N -static int ap_list_beacon_olbc_ht(struct hostapd_iface *iface, - struct ap_info *ap) -{ - return !ap->ht_support; -} -#endif /* CONFIG_IEEE80211N */ - - struct ap_info * ap_get_ap(struct hostapd_iface *iface, u8 *ap) { struct ap_info *s; @@ -323,7 +314,7 @@ void ap_list_process_beacon(struct hostapd_iface *iface, } #ifdef CONFIG_IEEE80211N - if (!iface->olbc_ht && ap_list_beacon_olbc_ht(iface, ap)) { + if (!iface->olbc_ht && !ap->ht_support) { iface->olbc_ht = 1; hostapd_ht_operation_update(iface); wpa_printf(MSG_DEBUG, "OLBC HT AP detected: " MACSTR @@ -368,10 +359,8 @@ static void ap_list_timer(void *eloop_ctx, void *timeout_ctx) while (ap && (olbc == 0 || olbc_ht == 0)) { if (ap_list_beacon_olbc(iface, ap)) olbc = 1; -#ifdef CONFIG_IEEE80211N - if (ap_list_beacon_olbc_ht(iface, ap)) + if (!ap->ht_support) olbc_ht = 1; -#endif /* CONFIG_IEEE80211N */ ap = ap->next; } if (!olbc && iface->olbc) { |