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
This commit is contained in:
Rachit Kankane 2018-11-02 15:14:44 +05:30 • committed by nshrivas
commit 264fe67fd1
2 changed files with 4 additions and 3 deletions

View file

@ -547,7 +547,8 @@ enum offset_t {
BW40_LOW_PRIMARY = 1,
BW40_HIGH_PRIMARY = 3,
BW80,
BWALL
BWALL,
BW_INVALID = 0xFF
};
/**

View file

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