From 35795fb66975e8ed96650a422c06ba815e26c86a Mon Sep 17 00:00:00 2001 From: Ajay Parida Date: Tue, 11 Jun 2024 17:24:41 +0530 Subject: [PATCH] drivers: wifi: Pass the connection type 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 --- drivers/wifi/nrf700x/src/wpa_supp_if.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/wifi/nrf700x/src/wpa_supp_if.c b/drivers/wifi/nrf700x/src/wpa_supp_if.c index 24a0e2074d5..a627e4048b6 100644 --- a/drivers/wifi/nrf700x/src/wpa_supp_if.c +++ b/drivers/wifi/nrf700x/src/wpa_supp_if.c @@ -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);