fix(wifi): fragment and forge vulnerability detection

This commit is contained in:
Zhang Jun Hao
2021-05-21 15:18:46 +08:00
parent 2f42e70e40
commit f7b047509d
2 changed files with 5 additions and 0 deletions

View File

@ -110,6 +110,8 @@
#define WPA_CAPABILITY_MFPR BIT(6)
#define WPA_CAPABILITY_MFPC BIT(7)
#define WPA_CAPABILITY_PEERKEY_ENABLED BIT(9)
#define WPA_CAPABILITY_SPP_CAPABLE BIT(10)
#define WPA_CAPABILITY_SPP_REQUIRED BIT(11)
/* IEEE 802.11r */

View File

@ -225,6 +225,9 @@ static int wpa_gen_wpa_ie_rsn(u8 *rsn_ie, size_t rsn_ie_len,
}
}
#endif /* CONFIG_IEEE80211W */
capab |= WPA_CAPABILITY_SPP_CAPABLE;
WPA_PUT_LE16(pos, capab);
pos += 2;