OSDN Git Service

rtw88: fix TX secondary channel offset of 40M if current bw is 20M or 40M
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 20 Dec 2019 09:21:47 +0000 (17:21 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:38:06 +0000 (17:38 +0200)
commit73a2d0b83424f7150a1f607470dac67c95b8b2d4
tree3e2154e234c4a7a3d9efdf19bf51f40322ec6839
parent35a68fa5f96a80797e11b6952a47c5a84939a7bf
rtw88: fix TX secondary channel offset of 40M if current bw is 20M or 40M

TX secondary channel offset is valid only if current bandwidth is 80M,
otherwise leave this value as zero. The wrong value of txsc40 causes
MAC unpredictable behavior.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/mac.c