Skip to content

Commit

Permalink
src/cyw43_ll: Remove support for auth_type=-1 to automatically set auth.
Browse files Browse the repository at this point in the history
The caller of cyw43_wifi_join() (which calls cyw43_ll_wifi_join) should be
responsible for selecting the desired auth type.  Otherwise the event logic
in cyw43_wifi_join() will not work.

Signed-off-by: Damien George <dpgeorge@georgerobotics.com.au>
  • Loading branch information
Damien George committed Dec 19, 2022
1 parent 3144915 commit 2cf328d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/cyw43_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -2042,18 +2042,6 @@ int cyw43_ll_wifi_join(cyw43_ll_t *self_in, size_t ssid_len, const uint8_t *ssid

cyw43_write_iovar_u32(self, "ampdu_ba_wsize", 8, WWD_STA_INTERFACE);

// Set the wireless security type
if (auth_type == (uint32_t)-1) {
// Auto auth type
if (key == NULL || key_len == 0) {
// No key given, assume this means open security
auth_type = CYW43_AUTH_OPEN;
} else {
// See WICED_SECURITY_WPA2_MIXED_PSK
auth_type = CYW43_AUTH_WPA2_MIXED_PSK;
}
}

uint32_t wpa_auth = 0;
if (auth_type == CYW43_AUTH_OPEN) {
wpa_auth = 0;
Expand Down

0 comments on commit 2cf328d

Please sign in to comment.