Loading
qcacld-3.0: SAE: delete preauth node if it's present in list
In SAP mode, a preauth node is added to the preauth list when assoc rejection happens due to some reason (e.g. blacklisting the station BSSID). But when station tries SAE authentication, host driver doesn't add/update the entry in preauth node list as a node with same mac address is present in the list. Host driver relies on the flag is_sae_authenticated to decide whether to proceed with association or go for PMKID validation. is_sae_authenticated is set to true only when SAE authentication is completed and the node in preauth list has type as SAE. But the preauth node added as part of assoc reject doesn't have this info correct, which is disallows association as is_sae_authenticated is not set. Fixing this here is not a right way as the auth state also to be updated to eLIM_MLM_WT_SAE_AUTH_STATE when first SAE auth frame is received. So, delete the existing preauth node and create a new one when the first SAE auth frame is received to avoid stale entries. Change-Id: I0acd72f960ba1de2a656b55a9805561322dfffe9 CRs-Fixed: 3135389