mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacld-3.0: Fix 160Mhz SAP channel switch failure
For channel switch event, the kernel expects the center_freq1 contains the channel center frequency of 160MHz. Use the the mhz_freq_seg1 of chan parameter to fill the kernel struct. Change-Id: I4ad7cb2a0a1f93f324b9afb63493888984006194 CRs-Fixed: 2744698
This commit is contained in:
parent
c3c572d172
commit
f1bbb413e4
1 changed files with 4 additions and 2 deletions
|
|
@ -893,14 +893,16 @@ QDF_STATUS hdd_chan_change_notify(struct hdd_adapter *adapter,
|
|||
break;
|
||||
case CH_WIDTH_160MHZ:
|
||||
chandef.width = NL80211_CHAN_WIDTH_160;
|
||||
if (chan_change.chan_params.mhz_freq_seg1)
|
||||
chandef.center_freq1 =
|
||||
chan_change.chan_params.mhz_freq_seg1;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if ((chan_change.chan_params.ch_width == CH_WIDTH_80MHZ) ||
|
||||
(chan_change.chan_params.ch_width == CH_WIDTH_80P80MHZ) ||
|
||||
(chan_change.chan_params.ch_width == CH_WIDTH_160MHZ)) {
|
||||
(chan_change.chan_params.ch_width == CH_WIDTH_80P80MHZ)) {
|
||||
if (chan_change.chan_params.mhz_freq_seg0)
|
||||
chandef.center_freq1 =
|
||||
chan_change.chan_params.mhz_freq_seg0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue