diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index 5e3caf160..07fd11db5 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -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; } } diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 7bef55fa5..2e570c098 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -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; }