wireless/wapi: do not associate with essid/bssid at same time

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2020-11-30 16:24:28 +08:00 committed by Xiang Xiao
parent e066cd177c
commit c014504a93

View File

@ -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);