aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_helpers.c
diff options
context:
space:
mode:
authorSomdas Bandyopadhyay <somdas.bandyopadhyay@intel.com>2015-11-01 06:53:45 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-01 19:05:10 (GMT)
commitfcdb35928c7dcdf0b418f92f942065b26ba2845e (patch)
treeecb690d09b4834363d2cb0de6910ca6589ffeaab /src/common/wpa_helpers.c
parent73ed03f33323414ba02e50c15149bcb1c37d57e8 (diff)
downloadhostap-fcdb35928c7dcdf0b418f92f942065b26ba2845e.zip
hostap-fcdb35928c7dcdf0b418f92f942065b26ba2845e.tar.gz
hostap-fcdb35928c7dcdf0b418f92f942065b26ba2845e.tar.bz2
Use "STATUS-NO_EVENTS" instead of "STATUS" in get_wpa_status function
Using "STATUS" command triggers CTRL-EVENT-STATE-CHANGE and CTRL-EVENT-CONNECTED (if connected to some AP) events. These events cause problems in Android WifiStateMachine in Marshmallow. Due to these events WifiStateMachine sometimes disconnects the OSU SSID connection, while hs20-osu-client waits for IP address. Signed-off-by: Somdas Bandyopadhyay <somdas.bandyopadhyay@intel.com>
Diffstat (limited to 'src/common/wpa_helpers.c')
-rw-r--r--src/common/wpa_helpers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/wpa_helpers.c b/src/common/wpa_helpers.c
index 28913b9..f159421 100644
--- a/src/common/wpa_helpers.c
+++ b/src/common/wpa_helpers.c
@@ -172,7 +172,8 @@ int get_wpa_status(const char *ifname, const char *field, char *obuf,
if (ctrl == NULL)
return -1;
len = sizeof(buf);
- if (wpa_ctrl_request(ctrl, "STATUS", 6, buf, &len, NULL) < 0) {
+ if (wpa_ctrl_request(ctrl, "STATUS-NO_EVENTS", 16, buf, &len,
+ NULL) < 0) {
wpa_ctrl_close(ctrl);
return -1;
}