File tree Expand file tree Collapse file tree 2 files changed +28
-20
lines changed Expand file tree Collapse file tree 2 files changed +28
-20
lines changed Original file line number Diff line number Diff line change 1717#define DEFAULT_GW_AP_ADDRESS IPAddress (192 ,168 ,1 ,1 )
1818#define DEFAULT_NM_AP_ADDRESS IPAddress (255 ,255 ,255 ,0 )
1919
20-
2120#define WIFI_FIRMWARE_LATEST_VERSION " 0.4.1"
22- #define WL_MAC_ADDR_LENGTH 6
2321
2422class CAccessPoint {
2523public:
Original file line number Diff line number Diff line change 11#ifndef WIFI_S3_TYPES_H
22#define WIFI_S3_TYPES_H
33
4+ // Maximum size of a SSID
5+ #define WL_SSID_MAX_LENGTH 32
6+ // Length of passphrase. Valid lengths are 8-63.
7+ #define WL_WPA_KEY_MAX_LENGTH 63
8+ // Length of key in bytes. Valid values are 5 and 13.
9+ #define WL_WEP_KEY_MAX_LENGTH 13
10+ // Size of a MAC-address or BSSID
11+ #define WL_MAC_ADDR_LENGTH 6
12+ // Size of a MAC-address or BSSID
13+ #define WL_IPV4_LENGTH 4
14+
415typedef enum {
5- WL_NO_SHIELD = 255 ,
6- WL_NO_MODULE = WL_NO_SHIELD ,
7- WL_IDLE_STATUS = 0 ,
8- WL_NO_SSID_AVAIL ,
9- WL_SCAN_COMPLETED ,
10- WL_CONNECTED ,
11- WL_CONNECT_FAILED ,
12- WL_CONNECTION_LOST ,
13- WL_DISCONNECTED ,
14- WL_AP_LISTENING ,
15- WL_AP_CONNECTED ,
16- WL_AP_FAILED
16+ WL_NO_SHIELD = 255 ,
17+ WL_NO_MODULE = WL_NO_SHIELD ,
18+ WL_IDLE_STATUS = 0 ,
19+ WL_NO_SSID_AVAIL ,
20+ WL_SCAN_COMPLETED ,
21+ WL_CONNECTED ,
22+ WL_CONNECT_FAILED ,
23+ WL_CONNECTION_LOST ,
24+ WL_DISCONNECTED ,
25+ WL_AP_LISTENING ,
26+ WL_AP_CONNECTED ,
27+ WL_AP_FAILED
1728} wl_status_t ;
1829
1930/* Encryption modes */
@@ -27,15 +38,14 @@ enum wl_enc_type {
2738 ENC_TYPE_WPA3 ,
2839 ENC_TYPE_NONE ,
2940 ENC_TYPE_AUTO ,
30-
3141 ENC_TYPE_UNKNOWN = 255
3242};
3343
3444typedef enum {
35- WL_PING_DEST_UNREACHABLE = -1 ,
36- WL_PING_TIMEOUT = -2 ,
37- WL_PING_UNKNOWN_HOST = -3 ,
38- WL_PING_ERROR = -4
39- } wl_ping_result_t ;
45+ WL_PING_DEST_UNREACHABLE = -1 ,
46+ WL_PING_TIMEOUT = -2 ,
47+ WL_PING_UNKNOWN_HOST = -3 ,
48+ WL_PING_ERROR = -4
49+ }wl_ping_result_t ;
4050
4151#endif
You can’t perform that action at this time.
0 commit comments