소스 검색

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 년 전
부모
커밋
ce77466cdb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/src/wlan_tdls_peer.c

+ 1 - 1
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++;
 		}
 	}