mac80211: fix MT7620 Wi-Fi channel scanning function openwrt-23.05
authorShiji Yang <yangshiji66@qq.com>
Tue, 22 Aug 2023 18:16:22 +0000 (19:16 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 1 Sep 2023 21:18:10 +0000 (22:18 +0100)
commit9489548a0c3eb0ead69c60fbd267e1a258ad9edd
treef5a00d45535ed31fac5e69045e9a465a2dfc369b
parent96dc79bbadc98b2dd40d657124b06459672f05c0
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