diff options
author | Jouni Malinen <j@w1.fi> | 2009-11-29 21:11:10 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-11-29 21:11:10 +0200 |
commit | 2a3c6f5077fa76148e850f5ba72df71329869c64 (patch) | |
tree | e383561fe466c210dbc43152615d9b360a8eb9b1 /hostapd | |
parent | df84268ae7d1e7423c744423161ef8682a4819d3 (diff) | |
download | external_wpa_supplicant_8_ti-2a3c6f5077fa76148e850f5ba72df71329869c64.zip external_wpa_supplicant_8_ti-2a3c6f5077fa76148e850f5ba72df71329869c64.tar.gz external_wpa_supplicant_8_ti-2a3c6f5077fa76148e850f5ba72df71329869c64.tar.bz2 |
Check AID availability before handling HT state updates on association
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/ieee802_11.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hostapd/ieee802_11.c b/hostapd/ieee802_11.c index 0522b88..ed0bdd3 100644 --- a/hostapd/ieee802_11.c +++ b/hostapd/ieee802_11.c @@ -1045,6 +1045,12 @@ static void handle_assoc(struct hostapd_data *hapd, ieee802_11_set_beacons(hapd->iface); } + if (hostapd_get_aid(hapd, sta) < 0) { + resp = WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA; + wpa_printf(MSG_ERROR, " no room for more AIDs"); + goto fail; + } + #ifdef CONFIG_IEEE80211N if ((sta->flags & WLAN_STA_HT) && sta->ht_capabilities) { u16 ht_capab = le_to_host16( @@ -1088,12 +1094,6 @@ static void handle_assoc(struct hostapd_data *hapd, ieee802_11_set_beacons(hapd->iface); #endif /* CONFIG_IEEE80211N */ - if (hostapd_get_aid(hapd, sta) < 0) { - resp = WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA; - wpa_printf(MSG_ERROR, " no room for more AIDs"); - goto fail; - } - hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, HOSTAPD_LEVEL_DEBUG, "association OK (aid %d)", sta->aid); |