Bläddra i källkod

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
Deeksha Gupta 4 år sedan
förälder
incheckning
afd8be823a
2 ändrade filer med 3 tillägg och 0 borttagningar
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 1 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
wmi/inc/wmi_unified_param.h

@@ -1028,6 +1028,7 @@ typedef struct {
  * @peer_he_tx_mcs_set: Peer HE TX MCS MAP
  * @peer_he_tx_mcs_set: Peer HE TX MCS MAP
  * @peer_ppet: Peer HE PPET info
  * @peer_ppet: Peer HE PPET info
  * @peer_bss_max_idle_option: Peer BSS Max Idle option update
  * @peer_bss_max_idle_option: Peer BSS Max Idle option update
+ * @akm: AKM info
  */
  */
 struct peer_assoc_params {
 struct peer_assoc_params {
 	uint32_t vdev_id;
 	uint32_t vdev_id;
@@ -1091,6 +1092,7 @@ struct peer_assoc_params {
 	struct wmi_host_ppe_threshold peer_ppet;
 	struct wmi_host_ppe_threshold peer_ppet;
 	u_int8_t peer_bsscolor_rept_info;
 	u_int8_t peer_bsscolor_rept_info;
 	uint32_t peer_bss_max_idle_option;
 	uint32_t peer_bss_max_idle_option;
+	uint16_t akm;
 };
 };
 
 
 /**
 /**

+ 1 - 0
wmi/src/wmi_unified_tlv.c

@@ -2648,6 +2648,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_SET_HDR(buf_ptr, WMITLV_TAG_STRUC_wmi_vht_rate_set,
 		       WMITLV_GET_STRUCT_TLVLEN(wmi_vht_rate_set));
 		       WMITLV_GET_STRUCT_TLVLEN(wmi_vht_rate_set));
 
 
+	cmd->auth_mode = param->akm;
 	cmd->peer_nss = param->peer_nss;
 	cmd->peer_nss = param->peer_nss;
 
 
 	/* Update bandwidth-NSS mapping */
 	/* Update bandwidth-NSS mapping */