diff options
Diffstat (limited to 'fw/fe310/eos/net/wifi.h')
-rw-r--r-- | fw/fe310/eos/net/wifi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fw/fe310/eos/net/wifi.h b/fw/fe310/eos/net/wifi.h index 997329f..93d2fc4 100644 --- a/fw/fe310/eos/net/wifi.h +++ b/fw/fe310/eos/net/wifi.h @@ -15,8 +15,8 @@ #define EOS_WIFI_STATUS_CONNECTED 2 #define EOS_WIFI_STATUS_GOT_IP 3 -#define EOS_WIFI_SIZE_SSID 33 -#define EOS_WIFI_SIZE_PWD 64 +#define EOS_WIFI_SIZE_SSID 32 +#define EOS_WIFI_SIZE_PWD 63 #define EOS_WIFI_MAX_SCAN_RECORDS 20 @@ -24,8 +24,8 @@ void eos_wifi_init(void); void eos_wifi_set_handler(unsigned char mtype, eos_evt_handler_t handler); eos_evt_handler_t eos_wifi_get_handler(unsigned char mtype); -int eos_wifi_status_parse(unsigned char *buffer, uint16_t len, uint8_t *status, uint8_t ip_addr[], char *ssid); -int eos_wifi_status(uint8_t *status, uint8_t ip_addr[], char *ssid, unsigned char *buffer); +int eos_wifi_status_parse(unsigned char *buffer, uint16_t len, uint8_t *status, uint8_t ip_addr[], char *ssid, uint16_t ssid_size); +int eos_wifi_status(uint8_t *status, uint8_t ip_addr[], char *ssid, uint16_t ssid_size, unsigned char *buffer); int eos_wifi_start(unsigned char *buffer, int sync); int eos_wifi_stop(unsigned char *buffer, int sync); int eos_wifi_scan(unsigned char *buffer, int sync); |