Use status code 17 (unable to handle new STA) on max-STA limitation
This is more useful information than the previously used value 1 (unspecified failure). Signed-hostap: Ben Greear <greearb@candelatech.com>
This commit is contained in:
parent
5e24dc8a4b
commit
728d97171b
2 changed files with 2 additions and 2 deletions
|
@ -469,7 +469,7 @@ static void hostapd_notif_auth(struct hostapd_data *hapd,
|
||||||
if (!sta) {
|
if (!sta) {
|
||||||
sta = ap_sta_add(hapd, rx_auth->peer);
|
sta = ap_sta_add(hapd, rx_auth->peer);
|
||||||
if (sta == NULL) {
|
if (sta == NULL) {
|
||||||
status = WLAN_STATUS_UNSPECIFIED_FAILURE;
|
status = WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -645,7 +645,7 @@ static void handle_auth(struct hostapd_data *hapd,
|
||||||
|
|
||||||
sta = ap_sta_add(hapd, mgmt->sa);
|
sta = ap_sta_add(hapd, mgmt->sa);
|
||||||
if (!sta) {
|
if (!sta) {
|
||||||
resp = WLAN_STATUS_UNSPECIFIED_FAILURE;
|
resp = WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue