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, 5 Sep 2023 21:57:42 +0000 (22:57 +0100)
commitcdc8470aecd03e6994714af092f030f209951de4
treeacebf3016777420a934d27173dbbc42034cb5d54
parent9df91263204b8a9a4c506fd75e06b83236fdc56e
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>
(cherry picked from commit ce6ad123e76311d2a882054b4ea532d1bfb643c8)
package/kernel/mac80211/patches/rt2x00/998-wifi-rt2x00-rework-MT7620-PA-LNA-RF-calibration.patch