You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/30 11:47:27 UTC
[incubator-nuttx-apps] branch master updated: wireless/wapi: do not
associate with essid/bssid at same time
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new c014504 wireless/wapi: do not associate with essid/bssid at same time
c014504 is described below
commit c014504a93dcd9d9bbd00942790a72e70d604133
Author: chao.an <an...@xiaomi.com>
AuthorDate: Mon Nov 30 16:24:28 2020 +0800
wireless/wapi: do not associate with essid/bssid at same time
Signed-off-by: chao.an <an...@xiaomi.com>
---
wireless/wapi/src/driver_wext.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/wireless/wapi/src/driver_wext.c b/wireless/wapi/src/driver_wext.c
index cfc508a..9c7058d 100644
--- a/wireless/wapi/src/driver_wext.c
+++ b/wireless/wapi/src/driver_wext.c
@@ -315,8 +315,7 @@ int wpa_driver_wext_associate(FAR struct wpa_wconfig_s *wconfig)
goto close_socket;
}
}
-
- if (wconfig->bssid)
+ else if (wconfig->bssid)
{
ret = wapi_set_ap(sockfd, wconfig->ifname,
(FAR const struct ether_addr *)wconfig->bssid);