mac80211: fix MT7620 Wi-Fi channel scanning function
authorShiji Yang <yangshiji66@qq.com>
Tue, 22 Aug 2023 18:16:22 +0000 (19:16 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 22 Aug 2023 18:17:24 +0000 (19:17 +0100)
commitce6ad123e76311d2a882054b4ea532d1bfb643c8
treef4e5760e53f27294f873280b1c6123fe2155a0a0
parent4c0fdad7eabe7a5b81a7a1bd7f38dcadbe4f471a
mac80211: fix MT7620 Wi-Fi channel scanning function

During the channel scanning process, the driver will continuously
switch channels. It seems that the full RF calibration step in
rt2800_config_channel() caused the channel scanning function to
timeout. To fix it, move the RF calibration to rt2800_enable_radio()
so that it is only executed once. This commit also includes some
coding format adjustments to follow the Linux recommended style.

Fixes: 2824fa6963cf ("mac80211: rework MT7620 PA/LNA RF calibration")
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
package/kernel/mac80211/patches/rt2x00/998-wifi-rt2x00-rework-MT7620-PA-LNA-RF-calibration.patch