From 43f7f24d24670f0761f7cb77485f53e83d093aa0 Mon Sep 17 00:00:00 2001 From: Deeksha Gupta Date: Mon, 4 Jan 2021 17:36:58 +0530 Subject: [PATCH] qcacmn: Send AKM in peer assoc command to firmware Initially, Host updates the AKM only after the EAPOL handshake. Due to this, Enterprise auth is not detected for initial connection. Add AKM in peer assoc command(WMI_PEER_ASSOC_COMMAND) to the firmware. In firmware, this will help to detect Enterprise auth as part of connection and prioritize the WLAN connection over BT traffic accordingly. Change-Id: I6463dacbba098c76e6c3b7f4722915797bee1a99 CRs-Fixed: 2848392 --- wmi/inc/wmi_unified_param.h | 2 ++ wmi/src/wmi_unified_tlv.c | 1 + 2 files changed, 3 insertions(+) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 58ff5c207d3a..1889d6313436 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -1039,6 +1039,7 @@ typedef struct { * @peer_he_tx_mcs_set: Peer HE TX MCS MAP * @peer_ppet: Peer HE PPET info * @peer_bss_max_idle_option: Peer BSS Max Idle option update + * @akm: AKM info */ struct peer_assoc_params { uint32_t vdev_id; @@ -1102,6 +1103,7 @@ struct peer_assoc_params { struct wmi_host_ppe_threshold peer_ppet; u_int8_t peer_bsscolor_rept_info; uint32_t peer_bss_max_idle_option; + uint16_t akm; }; /** diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index ea0ee2afcab5..e0cada138da4 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -2633,6 +2633,7 @@ static QDF_STATUS send_peer_assoc_cmd_tlv(wmi_unified_t wmi_handle, WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_STRUC_wmi_vht_rate_set, WMITLV_GET_STRUCT_TLVLEN(wmi_vht_rate_set)); + cmd->auth_mode = param->akm; cmd->peer_nss = param->peer_nss; /* Update bandwidth-NSS mapping */