This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:configurations:setting-the-wi-fi-country-code [2025/10/12 22:58] 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 |
| This is the standard path used across the system. | This is the standard path used across the system. | ||
| - | '' | ||
| - | / | ||
| - | '' | ||
| ===== 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' | where **xxxxx** corresponds to the module' | ||
| Line 25: | Line 20: | ||
| === Examples === | === Examples === | ||
| - | * AP6275S | + | * AP6275S(VIM4) - '' |
| - | * AP6275P | + | * AP6275P(Edge2) - '' |
| - | * AP6398S | + | * AP6398S(VIM3/3L) - '' |
| - | ===== 4. How to Set the Country Code ===== | + | ==== 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. | ||
| + | |||
| + | ===== 5. Permanent 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/ | + | [[dl>resources/ |
| - | ``` | + | <WRAP important > |
| - | Note: For AP6275S | + | For VIM4 and Edge2, the regrev value for all countries is 0, such as the United |
| - | ``` | + | </ |
| 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/ |
| ``` | ``` | ||
| 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 === | ||