소스 검색

qcacmn: Set TDLS channel offset correctly

Set TDLS channel offset correctly when TDLSSECONDARYCHANNELOFFSET
command is sent with offset 20.

Change-Id: Ifac48da3fea0c83415f3d30caa2919a559f5c3c5
CRs-Fixed: 2341883
Rachit Kankane 6 년 전
부모
커밋
21a5173258
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      core/src/wlan_tdls_ct.c

+ 2 - 2
core/src/wlan_tdls_ct.c

@@ -975,7 +975,7 @@ int tdls_set_tdls_secoffchanneloffset(struct tdls_soc_priv_obj *tdls_soc,
 		return  -ENOTSUPP;
 		return  -ENOTSUPP;
 	}
 	}
 
 
-	tdls_soc->tdls_channel_offset = 0;
+	tdls_soc->tdls_channel_offset = BW_INVALID;
 
 
 	switch (offchanoffset) {
 	switch (offchanoffset) {
 	case TDLS_SEC_OFFCHAN_OFFSET_0:
 	case TDLS_SEC_OFFCHAN_OFFSET_0:
@@ -1054,7 +1054,7 @@ int tdls_set_tdls_offchannelmode(struct wlan_objmgr_vdev *vdev,
 	switch (offchanmode) {
 	switch (offchanmode) {
 	case ENABLE_CHANSWITCH:
 	case ENABLE_CHANSWITCH:
 		if (tdls_soc->tdls_off_channel &&
 		if (tdls_soc->tdls_off_channel &&
-			tdls_soc->tdls_channel_offset) {
+			tdls_soc->tdls_channel_offset != BW_INVALID) {
 			chan_switch_params.tdls_off_ch =
 			chan_switch_params.tdls_off_ch =
 				tdls_soc->tdls_off_channel;
 				tdls_soc->tdls_off_channel;
 			chan_switch_params.tdls_off_ch_bw_offset =
 			chan_switch_params.tdls_off_ch_bw_offset =