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 [2026/02/03 01:43]
gray update by using AI
products:sbc:common:configurations:setting-the-wi-fi-country-code [2026/05/11 02:11] (current)
nick
Line 1: Line 1:
-====== Wi-Fi Country Code Configuration Guide ====== +====== Wi-Fi country code configuration guide ====== 
-===== 1. Introduction =====+===== Introduction =====
  
 By default, the Wi-Fi module's Country Code is set to ''00'' (global). By default, the Wi-Fi module's Country Code is set to ''00'' (global).
Line 8: Line 8:
 Setting the correct country code can prevent issues where certain Wi-Fi networks are not visible or connections are unstable. Setting the correct country code can prevent issues where certain Wi-Fi networks are not visible or connections are unstable.
  
-===== 2. Firmware and Configuration Path =====+===== Firmware and configuration path =====
  
 On Ubuntu-based systems, the firmware and configuration files for Broadcom Wi-Fi modules are located in the following directory: ''/lib/firmware/brcm/''. 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 system path. This is the standard system path.
  
-===== 3. Identifying the Configuration File =====+===== Identifying the configuration file =====
  
 The configuration file for a specific Wi-Fi module follows the naming convention: ''config_xxxxx.txt''. The configuration file for a specific Wi-Fi module follows the naming convention: ''config_xxxxx.txt''.
Line 22: Line 22:
     AP6275S (VIM4) - config_bcm43752a2_ag.txt     AP6275S (VIM4) - config_bcm43752a2_ag.txt
  
-    AP6275P (Edge-2L) - config_bcm43752a2_pcie_ag.txt+    AP6275P (Edge2/Edge-2L) - config_bcm43752a2_pcie_ag.txt
  
     AP6398S (VIM3/VIM3L) - config_bcm4359c0_ag.txt     AP6398S (VIM3/VIM3L) - config_bcm4359c0_ag.txt
  
-===== 4. Temporary MethodUsing iw (for Testing) =====+===== Temporary methodusing iw for testing =====
  
 This is the quickest way to change the country code. It's useful for testing if a specific setting resolves an issue. However, this change is not persistent and will be lost after a reboot. This is the quickest way to change the country code. It's useful for testing if a specific setting resolves an issue. However, this change is not persistent and will be lost after a reboot.
-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''): 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''):
Line 37: Line 36:
 ``` ```
  
-==== Verify the Change ====+==== Verify the change ====
  
 You can immediately check if the setting was applied: You can immediately check if the setting was applied:
Line 49: Line 48:
 If this temporary setting resolves your Wi-Fi issue, proceed to the permanent method below. If this temporary setting resolves your Wi-Fi issue, proceed to the permanent method below.
  
-===== 5. Permanent MethodEditing the Config File (Recommended) =====+===== Permanent methodediting the config File =====
  
-You can permanently change the Country Code by editing the appropriate configuration file+You can permanently change the Country Code by editing the appropriate configuration file, for example setting country code for Italy.
- +
-=== Example: Setting Country Code for Italy (IT) ===+
  
 First, consult the reference document to find the correct ccode and regrev values for your country and hardware: First, consult the reference document to find the correct ccode and regrev values for your country and hardware:
Line 59: Line 56:
  
 <WRAP important > <WRAP important >
-For VIM4 and Edge-2L, the ''regrev'' value for all countries is ''0''. For example, the United States is configured as ''US/0''.+For VIM4, Edge2 and Edge-2L, the ''regrev'' value for all countries is ''0''. For example, the United States is configured as ''US/0''.
 </WRAP> </WRAP>
  
Line 80: Line 77:
 === IMPORTANT === === IMPORTANT ===
  
-The correct values for **ccode**and **regrev** are specific to your Wi-Fi module model and target country.+The correct values for **ccode** and **regrev** are specific to your Wi-Fi module model and target country.
 You must consult the appropriate regulatory documentation or tables for your hardware. You must consult the appropriate regulatory documentation or tables for your hardware.
 Using incorrect values may cause improper device operation or violate local regulations. Using incorrect values may cause improper device operation or violate local regulations.
  
  
-===== 6. Apply and Verify the Changes =====+===== Apply and verify the changes =====
  
-==== Step 1: Reboot the System ====+==== Reboot the system ====
 After saving the configuration file, reboot the device for the changes to take effect. After saving the configuration file, reboot the device for the changes to take effect.
  
Line 94: Line 91:
 ``` ```
  
-==== Step 2: Verify the Setting ====+==== Verify the setting ====
 After rebooting, confirm that the new Country Code has been applied by checking the kernel messages: After rebooting, confirm that the new Country Code has been applied by checking the kernel messages:
  
Last modified: 2026/02/03 01:43 by gray