cwespressif opened a new pull request, #11604: URL: https://github.com/apache/nuttx/pull/11604
## Summary - Fix crash issue that occurs when deleting a semaphore in WPA3. 1. This PR changes the Espressif HAL for 3rd Party Platforms: https://github.com/espressif/esp-hal-3rdparty/commit/0fa7f63c639192f4047035e7201a5cec830bf9b2. 2. Since the creation of `sta->lock` is a binary semaphore, not a mutex lock: https://github.com/espressif/esp-hal-3rdparty/blob/release/v5.1.c/components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c#L417, so this should be deleting a semaphore, not deleting a mutex. 3. In ESP-IDF, deleting a semaphores and mutex both use this function `vSemaphoreDelete`, which is no problem, but it is different in NuttX, deleting a semaphore uses `nxsem_destroy` and the mutex uses `pthread_mutex_destroy`. This inconsistency may cause system crashes during the use of Wi-Fi softap WPA3,this PR fixes this issue. ## Impact ## Testing -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org