Browse Source

qcacld-3.0: Fix the PMK sent for 11r

As part of I418be56d452389a9f7b8d48e28f793567e81767a due to copy
paste error in cm_roam_scan_offload_fill_lfr3_config the pmk was
copied to rso_11i_info instead of rso_11r_info.

Fix this by copying pmk to rso_11r_info.

Change-Id: If4d1ea23ab4b4c43db3fac78fbfd43ad74a7e1b4
CRs-Fixed: 2920206
Abhishek Singh 4 years ago
parent
commit
e948157697

+ 2 - 2
components/umac/mlme/connection_mgr/core/src/wlan_cm_roam_offload.c

@@ -486,8 +486,8 @@ cm_roam_scan_offload_fill_lfr3_config(struct wlan_objmgr_vdev *vdev,
 		     mlme_priv->connect_info.ft_info.r0kh_id,
 		     mlme_priv->connect_info.ft_info.r0kh_id_len);
 	wlan_cm_get_psk_pmk(pdev, vdev_id,
-			    rso_config->rso_11i_info.psk_pmk,
-			    &rso_config->rso_11i_info.pmk_len);
+			    rso_config->rso_11r_info.psk_pmk,
+			    &rso_config->rso_11r_info.pmk_len);
 
 	cm_update_rso_adaptive_11r(&rso_config->rso_11r_info, rso_cfg);
 	cm_update_rso_ese_info(rso_cfg, rso_config);

+ 1 - 1
components/umac/mlme/connection_mgr/dispatcher/inc/wlan_cm_roam_public_struct.h

@@ -1199,7 +1199,7 @@ struct wlan_rso_11r_params {
 	bool is_adaptive_11r;
 	bool enable_ft_im_roaming;
 	uint8_t psk_pmk[WMI_ROAM_SCAN_PSK_SIZE];
-	uint32_t pmk_len;
+	uint8_t pmk_len;
 	uint32_t r0kh_id_length;
 	uint8_t r0kh_id[WMI_ROAM_R0KH_ID_MAX_LEN];
 	struct mobility_domain_info mdid;