Skip to content

Commit ca9dfd1

Browse files
ajayparidanordicjm
authored andcommitted
[nrf fromlist] 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. Upstream PR #: 93085 Signed-off-by: Ajay Parida <[email protected]>
1 parent 13a034f commit ca9dfd1

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
@@ -935,6 +935,11 @@ int nrf_wifi_wpa_supp_associate(void *if_priv, struct wpa_driver_associate_param
935935
assoc_info.bss_max_idle_time = params->bss_max_idle_period;
936936
}
937937

938+
assoc_info.conn_type = NRF_WIFI_CONN_TYPE_OPEN;
939+
if (!(params->key_mgmt_suite & WPA_KEY_MGMT_NONE)) {
940+
assoc_info.conn_type = NRF_WIFI_CONN_TYPE_SECURE;
941+
}
942+
938943
status = nrf_wifi_sys_fmac_assoc(rpu_ctx_zep->rpu_ctx, vif_ctx_zep->vif_idx, &assoc_info);
939944

940945
if (status != NRF_WIFI_STATUS_SUCCESS) {

0 commit comments

Comments
 (0)