fix(wifi): Fix wpa3 crash for station added without sta lock

This commit is contained in:
Shreyas Sheth
2024-01-01 13:34:31 +05:30
committed by BOT
parent 06733dc407
commit dd1265845f
5 changed files with 66 additions and 52 deletions

View File

@@ -175,6 +175,7 @@ struct sta_info * ap_sta_add(struct hostapd_data *hapd, const u8 *addr)
#ifdef CONFIG_SAE
sta->sae_commit_processing = false;
sta->remove_pending = false;
sta->lock = os_semphr_create(1, 1);
#endif /* CONFIG_SAE */
return sta;