]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Use status code 17 (unable to handle new STA) on max-STA limitation
authorBen Greear <greearb@candelatech.com>
Sun, 28 Apr 2013 13:45:55 +0000 (16:45 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 28 Apr 2013 13:45:55 +0000 (16:45 +0300)
This is more useful information than the previously used value 1
(unspecified failure).

Signed-hostap: Ben Greear <greearb@candelatech.com>

src/ap/drv_callbacks.c
src/ap/ieee802_11.c

index 5e3caf16089d2ee6f2edb392dbc809a9dfdd2c66..07fd11db5840bc7300afcd5cac5cb8171b3fe666 100644 (file)
@@ -469,7 +469,7 @@ static void hostapd_notif_auth(struct hostapd_data *hapd,
        if (!sta) {
                sta = ap_sta_add(hapd, rx_auth->peer);
                if (sta == NULL) {
-                       status = WLAN_STATUS_UNSPECIFIED_FAILURE;
+                       status = WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA;
                        goto fail;
                }
        }
index 7bef55fa5fe86f2098bd559f21be1d3eacea8eae..2e570c098352f7a08f4faa542040fd429a208117 100644 (file)
@@ -645,7 +645,7 @@ static void handle_auth(struct hostapd_data *hapd,
 
        sta = ap_sta_add(hapd, mgmt->sa);
        if (!sta) {
-               resp = WLAN_STATUS_UNSPECIFIED_FAILURE;
+               resp = WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA;
                goto fail;
        }