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 <ajay.parida@nordicsemi.no>
This commit is contained in:
Ajay Parida 2025-07-22 18:54:55 +05:30 committed by Fabio Baltieri
parent c70b3504bb
commit 3e9b7cbeb4

View File

@ -937,6 +937,11 @@ int nrf_wifi_wpa_supp_associate(void *if_priv, struct wpa_driver_associate_param
assoc_info.bss_max_idle_time = vif_ctx_zep->bss_max_idle_period;
}
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;
}
status = nrf_wifi_sys_fmac_assoc(rpu_ctx_zep->rpu_ctx, vif_ctx_zep->vif_idx, &assoc_info);
if (status != NRF_WIFI_STATUS_SUCCESS) {