From 5c0b51e909030b84bf71412661f0a8a819a8ae23 Mon Sep 17 00:00:00 2001 From: pvvx Date: Tue, 2 May 2017 08:54:41 +0300 Subject: [PATCH] update --- .../wpa_supplicant/wifi_p2p_config.c | 12 +++++------- .../wpa_supplicant/wifi_wps_config.c | 1 + 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/RTL00_SDKV35a/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/wifi_p2p_config.c b/RTL00_SDKV35a/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/wifi_p2p_config.c index ca4173d..3930d51 100644 --- a/RTL00_SDKV35a/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/wifi_p2p_config.c +++ b/RTL00_SDKV35a/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/wifi_p2p_config.c @@ -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, - RTW_SECURITY_WPA2_AES_PSK, - passphrase, - strlen(ssid), - strlen(passphrase), - channel - ) != RTW_SUCCESS) { + if(wifi_start_ap( ssid, + RTW_SECURITY_WPA2_AES_PSK, + passphrase, + channel, + 0) != RTW_SUCCESS) { printf("ERROR: Operation failed!\n"); return -1; } diff --git a/RTL00_SDKV35a/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/wifi_wps_config.c b/RTL00_SDKV35a/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/wifi_wps_config.c index 6641d2f..e2cd89c 100644 --- a/RTL00_SDKV35a/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/wifi_wps_config.c +++ b/RTL00_SDKV35a/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/wifi_wps_config.c @@ -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) {