mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Add UNPROT_DEAUTH command for testing OCV
This new wpa_supplicant control interface command can be used to simplify testing SA Query with OCV. Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
This commit is contained in:
parent
f91e68e903
commit
5c7d35ba07
@ -56,6 +56,7 @@
|
||||
#include "drivers/driver.h"
|
||||
#include "mesh.h"
|
||||
#include "dpp_supplicant.h"
|
||||
#include "sme.h"
|
||||
|
||||
static int wpa_supplicant_global_iface_list(struct wpa_global *global,
|
||||
char *buf, int len);
|
||||
@ -10506,6 +10507,10 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
|
||||
} else if (os_strcmp(buf, "RESEND_ASSOC") == 0) {
|
||||
if (wpas_ctrl_resend_assoc(wpa_s) < 0)
|
||||
reply_len = -1;
|
||||
} else if (os_strcmp(buf, "UNPROT_DEAUTH") == 0) {
|
||||
sme_event_unprot_disconnect(
|
||||
wpa_s, wpa_s->bssid, NULL,
|
||||
WLAN_REASON_CLASS2_FRAME_FROM_NONAUTH_STA);
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
} else if (os_strncmp(buf, "VENDOR_ELEM_ADD ", 16) == 0) {
|
||||
if (wpas_ctrl_vendor_elem_add(wpa_s, buf + 16) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user