Ver Fonte

qcacld-3.0: Update assoc channel width after CSA

Station connect and csa to less channel width, if we continue
set channel width back to initial connection which is greater
than csa channel width, center freq1 get failed.

Update association channel width and check the value while
set new channel width.

CRs-Fixed: 3683738
Change-Id: I396528abda663d2a77cfc9598ddb89b36c4600ba
Chunquan Luo há 1 ano atrás
pai
commit
d536a65027
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      core/mac/src/pe/lim/lim_send_sme_rsp_messages.c

+ 7 - 0
core/mac/src/pe/lim/lim_send_sme_rsp_messages.c

@@ -1981,6 +1981,7 @@ void lim_handle_sta_csa_param(struct mac_context *mac_ctx,
 			      struct csa_offload_params *csa_params)
 {
 	struct pe_session *session_entry;
+	struct mlme_legacy_priv *mlme_priv;
 	tpDphHashNode sta_ds = NULL;
 	uint8_t session_id;
 	uint16_t aid = 0;
@@ -2297,6 +2298,12 @@ void lim_handle_sta_csa_param(struct mac_context *mac_ctx,
 	if (wlan_vdev_mlme_is_mlo_vdev(session_entry->vdev)) {
 		link_id = wlan_vdev_get_link_id(session_entry->vdev);
 		update_csa_link_info(session_entry->vdev, link_id, csa_params);
+	} else {
+		mlme_priv = wlan_vdev_mlme_get_ext_hdl(session_entry->vdev);
+		if (!mlme_priv)
+			return;
+		mlme_priv->connect_info.assoc_chan_info.assoc_ch_width =
+						csa_params->new_ch_width;
 	}
 
 	if (WLAN_REG_IS_24GHZ_CH_FREQ(csa_params->csa_chan_freq) &&