From: Matti Gottlieb Date: Mon, 19 Jan 2015 01:44:04 +0000 (-0500) Subject: WNM: Fix the length of WNM_BSS_QUERY control interface command X-Git-Tag: hostap_2_4~353 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07565ab0f9768be42adfb681dfafc760c8f956df;p=thirdparty%2Fhostap.git 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 --- 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) {