| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef __WIFI_Hx__
- #define __WIFI_Hx__
- #include <stdint.h>
- #include "common.h"
- enum {
- CRYPT_NONE=0,
- CRYPT_ERR,
- CRYPT_WEP,
- CRYPT_WPA,
- CRYPT_WPA2,
- CRYPT_WPA3,
-
- CRYPT_MAX,
- };
- enum {
- AUTH_NONE=0,
- AUTH_ERR,
- AUTH_PSK,
- AUTH_EAP,
-
- AUTH_MAX,
- };
- enum {
- MODE_STA=0,
- MODE_AP,
-
- MODE_MAX,
- };
- typedef struct {
- char ssid[40]; //���32���ַ�
- char bssid[16]; //���12���ַ�
- char password[40];
- char ipaddr[64];
- int auth;
- int crypt;
- uint32_t freq; //MHz
- }ap_info_t;
- typedef struct {
- int link;
- int signal; //dB
- char ipaddr[64];
- }ap_stat_t;
- typedef struct {
- int cnt;
- int max;
- ap_info_t *info;
- }ap_list_t;
- int wifi_init(void);
- int wifi_scan(ap_list_t *list);
- int wifi_list_free(ap_list_t *list);
- int wifi_set(WIFIInfo_t *wm);
- int wifi_sta_stat(ap_stat_t *stat);
- int wifi_sta_info(ap_info_t *info);
- int wifi_ap_info(ap_info_t *info);
- #endif
|