瀏覽代碼

qcacmn: Send the supported channel list length correctly to FW

Currently, peer supported channel list length is updated first,
and then channel list updated by removing the DFS and invalid
channels. So, Wrong channel list length is sent to FW.

Change-Id: I1e71bdeae3d5368fbea85ae5e47e13c326e36375
CRs-Fixed: 2344729
Bala Venkatesh 6 年之前
父節點
當前提交
f2e35432fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      umac/tdls/core/src/wlan_tdls_peer.c

+ 1 - 1
umac/tdls/core/src/wlan_tdls_peer.c

@@ -493,7 +493,6 @@ void tdls_extract_peer_state_param(struct tdls_peer_update_state *peer_param,
 		peer->off_channel_capable;
 	peer_param->peer_cap.peer_curr_operclass = 0;
 	peer_param->peer_cap.self_curr_operclass = 0;
-	peer_param->peer_cap.peer_chanlen = peer->supported_channels_len;
 	peer_param->peer_cap.pref_off_channum = peer->pref_off_chan_num;
 	peer_param->peer_cap.pref_off_chan_bandwidth =
 		soc_obj->tdls_configs.tdls_pre_off_chan_bw;
@@ -520,6 +519,7 @@ void tdls_extract_peer_state_param(struct tdls_peer_update_state *peer_param,
 			peer_param->peer_cap.peer_chan[num].pwr =
 				wlan_reg_get_channel_reg_power(pdev, chan_id);
 			peer_param->peer_cap.peer_chan[num].dfs_set = false;
+			peer_param->peer_cap.peer_chanlen++;
 			num++;
 		}
 	}