diff options
author | Irfan Sheriff <isheriff@google.com> | 2012-09-06 18:30:39 -0700 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2012-09-06 18:30:39 -0700 |
commit | a7534b9cdb4f9c2b9ca56761119b0505626f03d6 (patch) | |
tree | 6fc39625a8255bed7e0823585091f0c64a196a9b | |
parent | 205f2142134d2f3475fe1f893575df8f809eede4 (diff) | |
download | external_wpa_supplicant_8-a7534b9cdb4f9c2b9ca56761119b0505626f03d6.zip external_wpa_supplicant_8-a7534b9cdb4f9c2b9ca56761119b0505626f03d6.tar.gz external_wpa_supplicant_8-a7534b9cdb4f9c2b9ca56761119b0505626f03d6.tar.bz2 |
Fix join for p2p_connect
wps_pbc with interface command stripped out ends up as a null character.
Supplicant tries to interpret that as a bssid. Fix it to ignore null
character as empty bssid
Change-Id: Ic91d6657efaf03fbe5c4a03e9e630b4b3ff5dec4
-rw-r--r-- | wpa_supplicant/ctrl_iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 059c586..8d0d71a 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -489,7 +489,7 @@ static int wpa_supplicant_ctrl_iface_wps_pbc(struct wpa_supplicant *wpa_s, u8 *_p2p_dev_addr = NULL; #endif /* CONFIG_AP */ - if (cmd == NULL || os_strcmp(cmd, "any") == 0) { + if (cmd == NULL || os_strcmp(cmd, "any") == 0 || cmd[0] == '\0') { _bssid = NULL; #ifdef CONFIG_P2P } else if (os_strncmp(cmd, "p2p_dev_addr=", 13) == 0) { |