I’m facing an issue in Kali Linux where the ‘iw reg get’ command shows the regulatory domain as DFS-UNSET, both globally and for phy#0.
Here’s the current output of ‘iw reg get’:
$ iw reg get
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
...
phy#0
country 99: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
...
I’ve tried setting the regulatory domain using ‘iw reg set’, but the issue persists. Any suggestions on resolving this
>Solution :
To address the issue where ‘iw reg get’ shows the regulatory domain as DFS-UNSET, and the previous steps haven’t resolved the problem, you can try the following alternative method:
-
Create a configuration file:
echo 'options cfg80211 ieee80211_regdom="BO"' | sudo tee /etc/modprobe.d/cfg80211_options.confThis command creates a configuration file with the specified regulatory domain.
-
Bring down the interface:
ifconfig wlan0 downThis command disables the wireless interface.
-
Set the regulatory domain:
iw reg set BOThis command sets the regulatory domain to "BO."
-
Bring up the interface:
ifconfig wlan0 upThis command re-enables the wireless interface.
After executing these commands, recheck the output of ‘iw reg get’ to verify if the regulatory domain is now correctly set. Additionally, test if you can adjust the transmit power using ‘iw dev wlan0 set txpower’ as needed.
Remember to reboot or restart networking services if necessary. If the issue persists, consider checking for any error messages or logs that might provide insights into the problem.