Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:configurations:setting-the-wi-fi-country-code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:configurations:setting-the-wi-fi-country-code [2025/10/13 02:04]
jacobe
products:sbc:common:configurations:setting-the-wi-fi-country-code [2025/10/13 07:51] (current)
nick
Line 9: Line 9:
  
 ===== 2. Firmware and Configuration Path ===== ===== 2. Firmware and Configuration Path =====
-On **Ubuntu-based systems**, the firmware and configuration files for Broadcom Wi-Fi modules are located in the following directory.  +On **Ubuntu-based systems**, the firmware and configuration files for Broadcom Wi-Fi modules are located in the following directory ''/lib/firmware/brcm/''.
 This is the standard path used across the system. This is the standard path used across the system.
  
-'' 
-/lib/firmware/brcm/ 
-'' 
  
 ===== 3. Identifying the Configuration File ===== ===== 3. Identifying the Configuration File =====
-The configuration file for a specific Wi-Fi module follows the naming convention: +The configuration file for a specific Wi-Fi module follows the naming convention: ''config_xxxxx.txt''.
- +
-<code>config_xxxxx.txt</code>+
  
 where **xxxxx** corresponds to the module's firmware filename. where **xxxxx** corresponds to the module's firmware filename.
Line 25: Line 20:
 === Examples === === Examples ===
  
-  * AP6275S(VIM4) → ''config_bcm43752a2_ag.txt''   +  * AP6275S(VIM4) ''config_bcm43752a2_ag.txt''   
-  * AP6275P(Edge2) → ''config_bcm43752a2_pcie_ag.txt''   +  * AP6275P(Edge2) ''config_bcm43752a2_pcie_ag.txt''   
-  * AP6398S(VIM3/3L) → ''config_bcm4359c0_ag.txt''+  * AP6398S(VIM3/3L) ''config_bcm4359c0_ag.txt'' 
 + 
 +==== 4. Temporary Method: Using iw (for Testing) ==== 
 +This is the quickest way to change the country code. It's perfect for testing if a specific setting resolves your issue, **but the change will be lost after you reboot the device.** 
 + 
 +=== Set the Country Code ===  
 +Open a terminal and run the iw reg set command with the two-letter ISO country code. For example, to set the country to Italy (IT): 
 +``` 
 +sudo iw reg set IT 
 +``` 
 +Verify the Change 
 +You can immediately check if the setting was applied using the iw reg get command: 
 + 
 +``` 
 +sudo iw list | grep MHz 
 +``` 
 +The output should show the frequency those are allowed in the set country. 
 + 
 +If this temporary setting fixes your Wi-Fi problem, you should proceed to the permanent method below.
  
-===== 4How to Set the Country Code =====+===== 5Permanent Method: Editing the Config File (Recommended) =====
 You can change the Country Code by editing the appropriate configuration file. You can change the Country Code by editing the appropriate configuration file.
  
 === Example: Setting Country Code for Italy (IT) === === Example: Setting Country Code for Italy (IT) ===
  
-[[https://dl.khadas.com/resources/development/wifi/get-ccode-regrev.xlsx|Check ccode and regrev correspondence]]+[[dl>resources/development/wifi/get-ccode-regrev.xlsx|Check ccode and regrev correspondence]]
  
 <WRAP important > <WRAP important >
Line 42: Line 55:
 1. Open the configuration file with a text editor.   1. Open the configuration file with a text editor.  
  
-For the AP6398S module, use:+For the AP6398S(VIM3/3L) module, use:
  
 ``` ```
Line 63: Line 76:
  
  
-===== 5. Apply and Verify the Changes =====+===== 6. Apply and Verify the Changes =====
  
 === Step 1: Reboot the System === === Step 1: Reboot the System ===
Last modified: 2025/10/13 02:04 by jacobe