mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
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:
parent
64ea8064b1
commit
264fe67fd1
2 changed files with 4 additions and 3 deletions
|
|
@ -547,7 +547,8 @@ enum offset_t {
|
|||
BW40_LOW_PRIMARY = 1,
|
||||
BW40_HIGH_PRIMARY = 3,
|
||||
BW80,
|
||||
BWALL
|
||||
BWALL,
|
||||
BW_INVALID = 0xFF
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in a new issue