fix(nan): Fix bug bounty reported and discovered vulnerabilities in NAN Rx

This commit is contained in:
Akshat Agrawal
2026-07-31 12:46:46 +05:30
parent 00c8f05ebf
commit 0ea62f0b58
2 changed files with 4 additions and 1 deletions
@@ -1064,6 +1064,9 @@ typedef struct {
wifi_second_chan_t new_snd; /**< new second channel of the device */
} wifi_event_home_channel_change_t;
#define BIT_NUMBER_TO_CHANNEL(bit_number) \
(((bit_number) >= 1 && (bit_number) <= 14) ? (bit_number) : 0)
/** Argument structure for WIFI_EVENT_AP_WRONG_PASSWORD event */
typedef struct {
uint8_t mac[6]; /**< MAC address of the station trying to connect to Soft-AP */