AP: Reject association request upon invalid HE capabilities
Operation in the 6 GHz band mandates valid HE capabilities element in station negotiation. Reject association request upon receiving invalid or missing HE elements. Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
This commit is contained in:
parent
088bef1786
commit
1f72bbbefb
3 changed files with 9 additions and 0 deletions
|
@ -3230,6 +3230,13 @@ static int check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta,
|
|||
if (resp != WLAN_STATUS_SUCCESS)
|
||||
return resp;
|
||||
if (is_6ghz_op_class(hapd->iconf->op_class)) {
|
||||
if (!(sta->flags & WLAN_STA_HE)) {
|
||||
hostapd_logger(hapd, sta->addr,
|
||||
HOSTAPD_MODULE_IEEE80211,
|
||||
HOSTAPD_LEVEL_INFO,
|
||||
"Station does not support mandatory HE PHY - reject association");
|
||||
return WLAN_STATUS_DENIED_HE_NOT_SUPPORTED;
|
||||
}
|
||||
resp = copy_sta_he_6ghz_capab(hapd, sta,
|
||||
elems.he_6ghz_band_cap);
|
||||
if (resp != WLAN_STATUS_SUCCESS)
|
||||
|
|
|
@ -1762,6 +1762,7 @@ const char * status2str(u16 status)
|
|||
S2S(FILS_AUTHENTICATION_FAILURE)
|
||||
S2S(UNKNOWN_AUTHENTICATION_SERVER)
|
||||
S2S(UNKNOWN_PASSWORD_IDENTIFIER)
|
||||
S2S(DENIED_HE_NOT_SUPPORTED)
|
||||
S2S(SAE_HASH_TO_ELEMENT)
|
||||
S2S(SAE_PK)
|
||||
}
|
||||
|
|
|
@ -204,6 +204,7 @@
|
|||
#define WLAN_STATUS_FILS_AUTHENTICATION_FAILURE 112
|
||||
#define WLAN_STATUS_UNKNOWN_AUTHENTICATION_SERVER 113
|
||||
#define WLAN_STATUS_UNKNOWN_PASSWORD_IDENTIFIER 123
|
||||
#define WLAN_STATUS_DENIED_HE_NOT_SUPPORTED 124
|
||||
#define WLAN_STATUS_SAE_HASH_TO_ELEMENT 126
|
||||
#define WLAN_STATUS_SAE_PK 127
|
||||
|
||||
|
|
Loading…
Reference in a new issue