Edge2 Android Wifi Country Code = [CN] disables U-NII-2C channels

@goenjoy Solution #1 WifiCountryCode=US

device/khadas/common$ git diff
diff --git a/BoardConfig.mk b/BoardConfig.mk
index b1ecb7c..5d0d32c 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -100,11 +100,11 @@ ifeq ($(TARGET_BUILD_VARIANT), user)
 PRODUCT_KERNEL_CONFIG += non_debuggable.config
 endif
 
-ROCKCHIP_ANDROID_BOOT_CMDLINE ?= androidboot.console=ttyFIQ0 androidboot.wificountrycode=CN
+ROCKCHIP_ANDROID_BOOT_CMDLINE ?= androidboot.console=ttyFIQ0 androidboot.wificountrycode=US

WifiCountryCode=US SUCCESS

You have taught me how to successfully modify Android 12 to WifiCountryCode=US. On first boot, I experienced 5G connectivity issues. However, I have not been able to recreate the Wifi issues since changing to ccode=US and rebooting again after flashing and a successful first boot (aka a second full power cycle). In the first boot logcat file, I see the Wifi Authentication Timeouts occur around an “RKUpdateService” which fails. I do not see this service called again in subsequent reboots. Possible culprit? idk, but my original issue appears to be resolved. I’ll create a new post should something sprout.

@goenjoy Solution 2 - ADB write successfully.

1, adb root && adb remount
2, adb push config.txt vendor/etc/firmware/config.txt
3, adb shell sync && adb reboot
  1. Created config.txt on local machine
  2. cat config.txt
    wl_suspend=3=0
    wl_resume=2=0
    insuspend0x7
    dhd_console_ms=20
    wl_dbg_level=0x9
    dump_msg_level=0xf
    dhd_msg_level=0x801
  3. adb root
  4. adb remount
  5. adb push .\config.txt vendor/etc/firmware/config.txt
  6. adb sync
  7. adb reboot

ADB SUCCESS

You have taught me how to successfully modify Android 12 files through ADB by overwriting the config.txt file on the device without having to rebuild everything from source code.

Thank you very much!

1 Like