mirror of
https://github.com/drasko/open-ameba.git
synced 2024-11-24 23:14:17 +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);
|
netif_set_addr(pnetif, &ipaddr, &netmask,&gw);
|
||||||
|
|
||||||
// start ap
|
// start ap
|
||||||
if(wifi_start_ap(ssid,
|
if(wifi_start_ap( ssid,
|
||||||
RTW_SECURITY_WPA2_AES_PSK,
|
RTW_SECURITY_WPA2_AES_PSK,
|
||||||
passphrase,
|
passphrase,
|
||||||
strlen(ssid),
|
channel,
|
||||||
strlen(passphrase),
|
0) != RTW_SUCCESS) {
|
||||||
channel
|
|
||||||
) != RTW_SUCCESS) {
|
|
||||||
printf("ERROR: Operation failed!\n");
|
printf("ERROR: Operation failed!\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -342,6 +342,7 @@ static int wps_connect_to_AP_by_open_system(char *target_ssid)
|
||||||
0,
|
0,
|
||||||
target_ssid,
|
target_ssid,
|
||||||
RTW_SECURITY_OPEN,
|
RTW_SECURITY_OPEN,
|
||||||
|
NULL,
|
||||||
0,
|
0,
|
||||||
NULL);
|
NULL);
|
||||||
if (ret == RTW_SUCCESS) {
|
if (ret == RTW_SUCCESS) {
|
||||||
|
|
Loading…
Reference in a new issue