mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
update
This commit is contained in:
parent
cf7a2d9683
commit
f7b901aa27
76 changed files with 3753 additions and 3990 deletions
|
|
@ -530,8 +530,13 @@ enum sc_result SC_parse_scan_result_and_connect(scan_buf_arg* scan_buf, rtw_netw
|
|||
ret = SC_TARGET_CHANNEL_SCAN_FAIL;
|
||||
goto sc_connect_wifi_fail;
|
||||
}
|
||||
ret = wifi_connect_bssid(scan_result.mac, (char*)wifi->ssid.val, SC_translate_iw_security_mode(scan_result.sec_mode),
|
||||
(char*)wifi->password, ETH_ALEN, wifi->ssid.len, wifi->password_len, 0, NULL);
|
||||
ret = wifi_connect(
|
||||
scan_result.mac,
|
||||
1,
|
||||
(char*)wifi->ssid.val,
|
||||
SC_translate_iw_security_mode(scan_result.sec_mode),
|
||||
(char*)wifi->password,
|
||||
0, NULL);
|
||||
if (ret == RTW_SUCCESS)
|
||||
goto sc_connect_wifi_success;
|
||||
}
|
||||
|
|
@ -691,8 +696,13 @@ enum sc_result SC_connect_to_AP(void)
|
|||
goto wifi_connect_fail;
|
||||
}
|
||||
rtw_join_status = 0;//clear simple config status
|
||||
ret = wifi_connect_bssid(g_bssid, (char*)wifi.ssid.val, wifi.security_type, (char*)wifi.password,
|
||||
ETH_ALEN, wifi.ssid.len, wifi.password_len, wifi.key_id, NULL);
|
||||
ret = wifi_connect(g_bssid,
|
||||
1,
|
||||
(char*)wifi.ssid.val,
|
||||
wifi.security_type,
|
||||
(char*)wifi.password,
|
||||
wifi.key_id,
|
||||
NULL);
|
||||
|
||||
if (ret == RTW_SUCCESS)
|
||||
goto wifi_connect_success;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue