This commit is contained in:
pvvx 2017-05-02 08:54:41 +03:00
parent 24014b170c
commit 5c0b51e909
2 changed files with 6 additions and 7 deletions

View file

@ -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;
}

View file

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