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 [2026/02/03 01:43] gray update by using AI |
products:sbc:common:configurations:setting-the-wi-fi-country-code [2026/02/23 21:29] (current) gray old revision restored (2025/10/13 07:51) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Wi-Fi Country Code Configuration Guide ====== | ====== Wi-Fi Country Code Configuration Guide ====== | ||
| - | ===== 1. Introduction ===== | ||
| - | By default, the Wi-Fi module' | + | ===== 1. Introduction ===== |
| - | Wi-Fi channels and transmit | + | By default, the Wi-Fi module' |
| - | To ensure proper functionality and legal compliance when using the device in a specific | + | 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 | ||
| - | Setting the correct country code can prevent issues where certain Wi-Fi networks are not visible or connections are unstable. | + | This can prevent issues where certain Wi-Fi networks are not visible or the connection is 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: '' | ||
| - | Here, xxxxx corresponds to the firmware filename | + | where **xxxxx** corresponds to the module' |
| - | Examples | + | |
| - | AP6275S (VIM4) - config_bcm43752a2_ag.txt | + | === Examples === |
| - | AP6275P | + | * AP6275S(VIM4) - '' |
| + | * AP6275P(Edge2) - '' | ||
| + | * AP6398S(VIM3/ | ||
| - | AP6398S (VIM3/ | + | ==== 4. Temporary Method: Using iw (for Testing) ==== |
| - | + | 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 | |
| - | ==== Verify the Change | + | You can immediately check if the setting was applied |
| - | + | ||
| - | 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. | ||
| - | The output should show the frequency ranges allowed in the country you set. | + | If this temporary setting |
| - | + | ||
| - | 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 Edge-2L, the '' | + | For VIM4 and Edge2, the regrev value for all countries is 0, such as the United |
| </ | </ | ||
| Line 70: | Line 61: | ||
| ``` | ``` | ||
| - | 2. Modify the file to specify the desired **ccode** and **regrev** values. | + | 2. Modify the file content |
| + | |||
| For Italy, the configuration should be: | For Italy, the configuration should be: | ||
| Line 79: | Line 71: | ||
| === IMPORTANT === | === IMPORTANT === | ||
| - | + | The correct values for ccode and regrev are specific to your Wi-Fi module and country. | |
| - | The correct values for **ccode**and **regrev** are specific to your Wi-Fi module | + | 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 result in improper device operation. |
| - | 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 94: | Line 85: | ||
| ``` | ``` | ||
| - | ==== 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 -i Country | + | dmesg | grep Country |
| ``` | ``` | ||
| Line 112: | Line 103: | ||
| ==== Summary ==== | ==== Summary ==== | ||
| - | * Identify and edit the correct '' | + | * Edit the correct '' |
| - | * Set the proper | + | * Set proper ccode and regrev |
| - | * Reboot | + | * Reboot and verify via dmesg |