qca-wifi-7: WF-672A, AFC pending, enable only 2-band mode

Fixes: WIFI-15000
Signed-off-by: Justin.Guo <guoxijun@actiontec.com>
This commit is contained in:
Justin.Guo
2025-08-29 10:24:40 +08:00
committed by John Crispin
parent da7682166f
commit c66020fbc6
2 changed files with 15 additions and 0 deletions

View File

@@ -24,7 +24,9 @@ endef
define KernelPackage/cig-wifi-mode-sw/install define KernelPackage/cig-wifi-mode-sw/install
$(INSTALL_DIR) $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) ./files/cig_wifi_mode_sw $(1)/usr/sbin/cig_wms $(INSTALL_BIN) ./files/cig_wifi_mode_sw $(1)/usr/sbin/cig_wms
$(INSTALL_BIN) ./files/cig_wifi_mode_boot $(1)/etc/init.d/cig_wmb
endef endef
$(eval $(call KernelPackage,cig-wifi-mode-sw)) $(eval $(call KernelPackage,cig-wifi-mode-sw))

View File

@@ -0,0 +1,13 @@
#!/bin/sh /etc/rc.common
START=60
boot(){
local bands=$(cat /proc/rf_switch)
if [ "x$bands" = "x3" ]; then
echo "AFC is not ready, switch to 2-band mode" >/dev/console
echo 2 > /proc/rf_switch
firstboot -y -r
fi
}