Skip to content

Commit

Permalink
src: Fix size of ap_auth variable to 32 bits so it can hold auth mode.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <dpgeorge@georgerobotics.com.au>
  • Loading branch information
Damien George committed Jul 5, 2022
1 parent 195dfcc commit 7a20b31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cyw43.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ typedef struct _cyw43_t {
bool pend_rejoin_wpa;

// AP settings
uint32_t ap_auth;
uint8_t ap_channel;
uint8_t ap_auth;
uint8_t ap_ssid_len;
uint8_t ap_key_len;
uint8_t ap_ssid[32];
Expand Down Expand Up @@ -373,7 +373,7 @@ static inline void cyw43_wifi_ap_set_password(cyw43_t *self, size_t len, const u
* \param auth Auth mode for the access point
*/
static inline void cyw43_wifi_ap_set_auth(cyw43_t *self, uint32_t auth) {
self->ap_auth = (uint8_t) auth;
self->ap_auth = auth;
}

/*!
Expand Down

0 comments on commit 7a20b31

Please sign in to comment.