mirror of
https://github.com/drasko/open-ameba.git
synced 2024-11-21 21:44:19 +00:00
update
This commit is contained in:
parent
24014b170c
commit
5c0b51e909
2 changed files with 6 additions and 7 deletions
|
@ -81,13 +81,11 @@ int wifi_start_p2p_go(char *ssid, char *passphrase, u8 channel)
|
|||
netif_set_addr(pnetif, &ipaddr, &netmask,&gw);
|
||||
|
||||
// start ap
|
||||
if(wifi_start_ap(ssid,
|
||||
if(wifi_start_ap( ssid,
|
||||
RTW_SECURITY_WPA2_AES_PSK,
|
||||
passphrase,
|
||||
strlen(ssid),
|
||||
strlen(passphrase),
|
||||
channel
|
||||
) != RTW_SUCCESS) {
|
||||
channel,
|
||||
0) != RTW_SUCCESS) {
|
||||
printf("ERROR: Operation failed!\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -342,6 +342,7 @@ static int wps_connect_to_AP_by_open_system(char *target_ssid)
|
|||
0,
|
||||
target_ssid,
|
||||
RTW_SECURITY_OPEN,
|
||||
NULL,
|
||||
0,
|
||||
NULL);
|
||||
if (ret == RTW_SUCCESS) {
|
||||
|
|
Loading…
Reference in a new issue