Skip to content

Commit

Permalink
drivers: wifi: Pass the connection type
Browse files Browse the repository at this point in the history
Firmware needs to know the connection type to be established.
use the wpa_proto field to derive the connection type.

Signed-off-by: Ajay Parida <[email protected]>
  • Loading branch information
ajayparida committed Jun 12, 2024
1 parent 3190fa5 commit 35795fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/wifi/nrf700x/src/wpa_supp_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,11 @@ int nrf_wifi_wpa_supp_associate(void *if_priv, struct wpa_driver_associate_param

}

assoc_info.conn_type = NRF_WIFI_CONN_TYPE_OPEN;
if (!(params->key_mgmt_suite & WPA_KEY_MGMT_NONE)) {
assoc_info.conn_type = NRF_WIFI_CONN_TYPE_SECURE;
}

if (params->wpa_ie) {
assoc_info.wpa_ie.ie_len = params->wpa_ie_len;
memcpy(assoc_info.wpa_ie.ie, params->wpa_ie, params->wpa_ie_len);
Expand Down

0 comments on commit 35795fb

Please sign in to comment.