This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
products:sbc:common:configurations:setting-the-wi-fi-country-code [2025/10/13 07:51] nick |
products:sbc:common:configurations:setting-the-wi-fi-country-code [2026/02/03 01:43] (current) gray update by using AI |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Wi-Fi Country Code Configuration Guide ====== | ====== Wi-Fi Country Code Configuration Guide ====== | ||
| - | |||
| ===== 1. Introduction ===== | ===== 1. Introduction ===== | ||
| - | By default, the Wi-Fi module' | ||
| - | Wi-Fi channels and power levels are regulated differently in each country. | ||
| - | To ensure proper functionality and legal compliance when using the device in different country, you may need to set the Country Code to match your current location. | ||
| - | This can prevent issues where certain Wi-Fi networks are not visible or the connection is unstable. | + | By default, the Wi-Fi module' |
| + | Wi-Fi channels and transmit power levels are regulated differently in each country. | ||
| + | To ensure proper functionality and legal compliance when using the device in a specific country, you must set the Country Code to match your location. | ||
| + | |||
| + | 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 ===== | ===== 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 ''/ | ||
| - | This is the standard path used across the system. | ||
| + | On Ubuntu-based systems, the firmware and configuration files for Broadcom Wi-Fi modules are located in the following directory: ''/ | ||
| + | This is the standard system path. | ||
| ===== 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: '' | ||
| - | where **xxxxx** corresponds to the module' | + | Here, xxxxx corresponds to the firmware filename |
| + | Examples | ||
| - | === Examples === | + | AP6275S (VIM4) - config_bcm43752a2_ag.txt |
| - | * AP6275S(VIM4) - '' | + | AP6275P |
| - | * AP6275P(Edge2) - '' | + | |
| - | * AP6398S(VIM3/ | + | |
| - | ==== 4. Temporary Method: Using iw (for Testing) ==== | + | AP6398S (VIM3/ |
| - | This is the quickest way to change the country code. It' | + | |
| + | ===== 4. Temporary Method: Using iw (for Testing) | ||
| + | |||
| + | This is the quickest way to change the country code. It' | ||
| + | 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 ('' | ||
| - | === 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 | sudo iw reg set IT | ||
| ``` | ``` | ||
| - | Verify the Change | + | |
| - | You can immediately check if the setting was applied | + | ==== Verify the Change |
| + | |||
| + | You can immediately check if the setting was applied: | ||
| ``` | ``` | ||
| sudo iw list | grep MHz | sudo iw list | grep MHz | ||
| ``` | ``` | ||
| - | The output should show the frequency those are allowed in the set country. | ||
| - | If this temporary setting | + | The output should show the frequency ranges allowed in the country you set. |
| + | |||
| + | If this temporary setting | ||
| ===== 5. Permanent Method: Editing the Config File (Recommended) ===== | ===== 5. Permanent Method: Editing the Config File (Recommended) ===== | ||
| - | You can change the Country Code by editing the appropriate configuration file. | + | |
| + | You can permanently | ||
| === Example: Setting Country Code for Italy (IT) === | === 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: | ||
| [[dl> | [[dl> | ||
| <WRAP important > | <WRAP important > | ||
| - | For VIM4 and Edge2, the regrev value for all countries is 0, such as the United | + | For VIM4 and Edge-2L, the '' |
| </ | </ | ||
| Line 61: | Line 70: | ||
| ``` | ``` | ||
| - | 2. Modify the file content | + | 2. Modify the file to specify the desired **ccode** and **regrev** values. |
| - | + | ||
| For Italy, the configuration should be: | For Italy, the configuration should be: | ||
| Line 71: | Line 79: | ||
| === IMPORTANT === | === IMPORTANT === | ||
| - | The correct values for ccode and regrev are specific to your Wi-Fi module and country. | + | |
| - | You must consult the appropriate regulatory documentation or tables for your hardware. | + | The correct values for **ccode**and **regrev** are specific to your Wi-Fi module |
| - | Using incorrect values may result in improper device operation. | + | You must consult the appropriate regulatory documentation or tables for your hardware. |
| + | Using incorrect values may cause improper device operation | ||
| ===== 6. Apply and Verify the Changes ===== | ===== 6. Apply and Verify the Changes ===== | ||
| - | === Step 1: Reboot the System === | + | ==== Step 1: 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 85: | Line 94: | ||
| ``` | ``` | ||
| - | === Step 2: Verify the Setting === | + | ==== Step 2: 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: | ||
| ``` | ``` | ||
| - | dmesg | grep Country | + | dmesg | grep -i Country |
| ``` | ``` | ||
| Line 103: | Line 112: | ||
| ==== Summary ==== | ==== Summary ==== | ||
| - | * Edit the correct '' | + | * Identify and edit the correct '' |
| - | * Set proper ccode and regrev | + | * Set the proper |
| - | * Reboot and verify via dmesg | + | * Reboot |