Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2586  / 1 Year ago, tue, january 17, 2023, 12:24:55

The problem that I have observed intermittently as kernel patches come through, is that my wifi does not always obtain the regulatory domain from the AP. The symptom is poor connectivity with frequent drops, and the work-aroud has been to issue the command sudo iw reg set US, which I usually place in /etc/rc.local as iw reg set US



So the question is: does anyone know how to query the AP (a linksys WRT610N) to ask what regulatory domain it is set to?



An excerpt from /var/log/dmesg from my last boot follows, after changing /etc/default/crda as recommended in comments below: If I am reading this correctly, the regulatory domain is initialized to world, and then using the information in /etc/default/crda, the regulatory domain is updated to become US.



[   12.109314] iwlwifi 0000:02:00.0: CONFIG_IWLWIFI_DEBUG disabled
[ 12.109317] iwlwifi 0000:02:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[ 12.109318] iwlwifi 0000:02:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[ 12.109320] iwlwifi 0000:02:00.0: Detected Intel(R) Centrino(R) Wireless-N 2230 BGN, REV=0xC8
[ 12.109419] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[ 12.124492] intel_rapl: domain uncore energy ctr 380974:380974 not working, skip
[ 12.183857] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[ 12.394864] cfg80211: World regulatory domain updated:
[ 12.394867] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 12.394868] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 12.394869] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 12.394870] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 12.394871] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 12.394872] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 12.522154] cfg80211: Calling CRDA for country: US
[ 12.523937] cfg80211: Regulatory domain changed to country: US
[ 12.523939] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 12.523941] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[ 12.523942] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[ 12.523943] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 12.523943] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 12.523944] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 12.523945] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[ 12.523946] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)

More From » wireless

 Answers
1

does anyone know how to query the AP (a linksys WRT610N) to ask what regulatory domain it is set to?




The short answer is: You can't query the AP for their regulatory domain.




An excerpt from /var/log/dmesg from my last boot follows, after changing /etc/default/crda as recommended in comments below: If I am reading this correctly, the regulatory domain is initialized to world, and then using the information in /etc/default/crda, the regulatory domain is updated to become US.




That's how it's supposed to work:




Upon the initialization of the wireless core (cfg80211) a world regulatory domain (highly restrictive) will be set as the central regulatory domain. If CRDA is present the latest dynamic world regulatory domain is queried from CRDA; if it is not then a statically defined list is used.




I wouldn't worry about it, if your 802.11 device is working as it should and there isn't other problems, you can ignore it.


[#23642] Wednesday, January 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
corsee

Total Points: 479
Total Questions: 122
Total Answers: 106

Location: Barbados
Member since Sat, May 9, 2020
4 Years ago
;