Skip to content

Commit 5047c3a

Browse files
author
Zhang Jun Hao
committed
fix(wifi): fragment and forge vulnerability detection
1 parent bedf68f commit 5047c3a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

components/wpa_supplicant/src/common/wpa_common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@
110110
#define WPA_CAPABILITY_MFPR BIT(6)
111111
#define WPA_CAPABILITY_MFPC BIT(7)
112112
#define WPA_CAPABILITY_PEERKEY_ENABLED BIT(9)
113+
#define WPA_CAPABILITY_SPP_CAPABLE BIT(10)
114+
#define WPA_CAPABILITY_SPP_REQUIRED BIT(11)
113115

114116

115117
/* IEEE 802.11r */

components/wpa_supplicant/src/rsn_supp/wpa_ie.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ static int wpa_gen_wpa_ie_rsn(u8 *rsn_ie, size_t rsn_ie_len,
225225
}
226226
}
227227
#endif /* CONFIG_IEEE80211W */
228+
229+
capab |= WPA_CAPABILITY_SPP_CAPABLE;
230+
228231
WPA_PUT_LE16(pos, capab);
229232
pos += 2;
230233

0 commit comments

Comments
 (0)