From 07565ab0f9768be42adfb681dfafc760c8f956df Mon Sep 17 00:00:00 2001 From: Matti Gottlieb Date: Sun, 18 Jan 2015 20:44:04 -0500 Subject: [PATCH] WNM: Fix the length of WNM_BSS_QUERY control interface command The length should be 14 and not 10. The current situation causes failure during parsing of the command. Signed-off-by: Matti Gottlieb --- wpa_supplicant/ctrl_iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index c55e646ec..4c96fcbc7 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -7905,8 +7905,8 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s, } else if (os_strncmp(buf, "WNM_SLEEP ", 10) == 0) { if (wpas_ctrl_iface_wnm_sleep(wpa_s, buf + 10)) reply_len = -1; - } else if (os_strncmp(buf, "WNM_BSS_QUERY ", 10) == 0) { - if (wpas_ctrl_iface_wnm_bss_query(wpa_s, buf + 10)) + } else if (os_strncmp(buf, "WNM_BSS_QUERY ", 14) == 0) { + if (wpas_ctrl_iface_wnm_bss_query(wpa_s, buf + 14)) reply_len = -1; #endif /* CONFIG_WNM */ } else if (os_strcmp(buf, "FLUSH") == 0) { -- 2.47.2