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