mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +08:00
simwifi: Support that simwifi connects to the hiden ssid.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
parent
d4cebae155
commit
5228d773d3
1 changed files with 2 additions and 0 deletions
|
@ -931,6 +931,7 @@ static int wifidriver_set_essid(struct sim_netdev_s *wifidev,
|
|||
if (wifidev->mode == IW_MODE_INFRA)
|
||||
{
|
||||
WPA_SET_NETWORK(wifidev, "ssid \\\"%s\\\"", ssid_buf);
|
||||
WPA_SET_NETWORK(wifidev, "scan_ssid 1");
|
||||
|
||||
if (wifidev->psk_flag == 0)
|
||||
{
|
||||
|
@ -1015,6 +1016,7 @@ static int wifidriver_set_bssid(struct sim_netdev_s *wifidev,
|
|||
if (wifidev->mode == IW_MODE_INFRA)
|
||||
{
|
||||
WPA_SET_NETWORK(wifidev, "bssid %s", bssid_buf);
|
||||
WPA_SET_NETWORK(wifidev, "scan_ssid 0");
|
||||
|
||||
if (wifidev->psk_flag == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue