mirror of
https://gitlab.com/prpl-foundation/prplmesh/prplMesh.git
synced 2025-12-20 01:21:22 +08:00
Merge branch 'bugfix/PPM-2639-channel-switch-is-not-working-for-higher-bandwidth-80mhz-and-above' into 'stable/v4.2'
bwl: dwpald: Correct channel switch command See merge request prpl-foundation/prplmesh/prplMesh!3562
This commit is contained in:
@@ -1747,8 +1747,9 @@ bool ap_wlan_hal_dwpal::switch_channel(int chan, beerocks::eWiFiBandwidth bw,
|
||||
cmd += freq_str; // CenterFrequency
|
||||
|
||||
// Extension Channel
|
||||
if (bw == beerocks::eWiFiBandwidth::BANDWIDTH_40) {
|
||||
if (freq < vht_center_frequency) {
|
||||
if (bw != beerocks::eWiFiBandwidth::BANDWIDTH_20) {
|
||||
int tmp_freq = (freq > 5740) ? (freq - 5) : freq;
|
||||
if (tmp_freq % 40 != 0) {
|
||||
cmd += " sec_channel_offset=1";
|
||||
} else {
|
||||
cmd += " sec_channel_offset=-1";
|
||||
|
||||
Reference in New Issue
Block a user