Skip to content

Commit 3e9b7cb

Browse files
ajayparidafabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent c70b350 commit 3e9b7cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/wifi/nrf_wifi/src/wpa_supp_if.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@ int nrf_wifi_wpa_supp_associate(void *if_priv, struct wpa_driver_associate_param
937937
assoc_info.bss_max_idle_time = vif_ctx_zep->bss_max_idle_period;
938938
}
939939

940+
assoc_info.conn_type = NRF_WIFI_CONN_TYPE_OPEN;
941+
if (!(params->key_mgmt_suite & WPA_KEY_MGMT_NONE)) {
942+
assoc_info.conn_type = NRF_WIFI_CONN_TYPE_SECURE;
943+
}
944+
940945
status = nrf_wifi_sys_fmac_assoc(rpu_ctx_zep->rpu_ctx, vif_ctx_zep->vif_idx, &assoc_info);
941946

942947
if (status != NRF_WIFI_STATUS_SUCCESS) {

0 commit comments

Comments
 (0)