mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
fix(wifi): fragment and forge vulnerability detection
This commit is contained in:
@ -110,6 +110,8 @@
|
|||||||
#define WPA_CAPABILITY_MFPR BIT(6)
|
#define WPA_CAPABILITY_MFPR BIT(6)
|
||||||
#define WPA_CAPABILITY_MFPC BIT(7)
|
#define WPA_CAPABILITY_MFPC BIT(7)
|
||||||
#define WPA_CAPABILITY_PEERKEY_ENABLED BIT(9)
|
#define WPA_CAPABILITY_PEERKEY_ENABLED BIT(9)
|
||||||
|
#define WPA_CAPABILITY_SPP_CAPABLE BIT(10)
|
||||||
|
#define WPA_CAPABILITY_SPP_REQUIRED BIT(11)
|
||||||
|
|
||||||
|
|
||||||
/* IEEE 802.11r */
|
/* IEEE 802.11r */
|
||||||
|
@ -225,6 +225,9 @@ static int wpa_gen_wpa_ie_rsn(u8 *rsn_ie, size_t rsn_ie_len,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_IEEE80211W */
|
#endif /* CONFIG_IEEE80211W */
|
||||||
|
|
||||||
|
capab |= WPA_CAPABILITY_SPP_CAPABLE;
|
||||||
|
|
||||||
WPA_PUT_LE16(pos, capab);
|
WPA_PUT_LE16(pos, capab);
|
||||||
pos += 2;
|
pos += 2;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user