diff options
author | Uros Majstorovic <majstor@majstor.org> | 2024-09-04 21:05:50 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2024-09-04 21:05:50 +0200 |
commit | 84950dbae62a8bf23b47e414951a0f9c042569fa (patch) | |
tree | c6cec365e490689660ca2913cb1d30348f604387 /fw/fe310/eos/net/wifi.h | |
parent | 04674955de2d03ec589c226a9b87902804bad6c4 (diff) |
wifi driver fix
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); |