mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2026-07-06 03:15:38 +00:00
update
This commit is contained in:
parent
3e8794a4a3
commit
20d954e09e
186 changed files with 357 additions and 447 deletions
|
|
@ -12,6 +12,8 @@
|
|||
#include "wps/wps_defs.h"
|
||||
#include <platform/platform_stdlib.h>
|
||||
|
||||
extern int wpas_wps_registrar_button_pushed();
|
||||
|
||||
/*
|
||||
* @brief struct wps_credential - WPS Credential
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -550,7 +550,7 @@ int wifi_connect(
|
|||
result = RTW_TIMEOUT;
|
||||
goto error;
|
||||
} else {
|
||||
if(wifi_is_connected_to_ap( ) != RTW_SUCCESS) {
|
||||
if(rltk_wlan_is_connected_to_ap( ) != RTW_SUCCESS) {
|
||||
result = RTW_ERROR;
|
||||
goto error;
|
||||
}
|
||||
|
|
@ -570,7 +570,7 @@ int wifi_connect(
|
|||
if (join_result->network_info.password_len) {
|
||||
rtw_free(join_result->network_info.password);
|
||||
}
|
||||
if (wifi_is_connected_to_ap() != RTW_SUCCESS) {
|
||||
if (rltk_wlan_is_connected_to_ap() != RTW_SUCCESS) {
|
||||
result = RTW_ERROR;
|
||||
goto error;
|
||||
}
|
||||
|
|
@ -889,6 +889,7 @@ int wifi_off(void) {
|
|||
|
||||
#if defined(CONFIG_ENABLE_WPS_AP) && CONFIG_ENABLE_WPS_AP
|
||||
// @todo
|
||||
extern void wpas_wps_deinit();
|
||||
wpas_wps_deinit();
|
||||
#endif
|
||||
rltk_wlan_deinit();
|
||||
|
|
|
|||
|
|
@ -900,7 +900,7 @@ int wext_send_eapol(const char *ifname, char *buf, __u16 buf_len, __u16 flags) {
|
|||
return iw_ioctl(ifname, SIOCSIWEAPOLSEND, &iwr);
|
||||
}
|
||||
|
||||
#if CONFIG_ENABLE_P2P
|
||||
//#if CONFIG_ENABLE_P2P
|
||||
int wext_send_mgnt(const char *ifname, char *buf, __u16 buf_len, __u16 flags) {
|
||||
struct iwreq iwr;
|
||||
memset(&iwr, 0, sizeof(iwr));
|
||||
|
|
@ -909,7 +909,7 @@ int wext_send_mgnt(const char *ifname, char *buf, __u16 buf_len, __u16 flags) {
|
|||
iwr.u.data.flags = flags;
|
||||
return iw_ioctl(ifname, SIOCSIWMGNTSEND, &iwr);
|
||||
}
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
int wext_set_gen_ie(const char *ifname, char *buf, __u16 buf_len, __u16 flags) {
|
||||
struct iwreq iwr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue