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)