simwifi: Support that simwifi connects to the hiden ssid.

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
liqinhui 2023-10-24 10:04:03 +08:00 committed by Alan Carvalho de Assis
parent d4cebae155
commit 5228d773d3

View file

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