| 1 | = 2012-09-11 = |
| 2 | |
| 3 | == CDRA == |
| 4 | |
| 5 | * 最近裝了 Ubuntu 12.04 LTS 經常會看到如下的訊息,說明無線網路在不同的國碼(Country Code)之間變動。先前做過 WSU 計劃的經驗知道國碼會決定無線的頻道採用哪些頻率,所以必須設法讓模組載入時,預設固定在某個國碼。先前知道可以用指令 iw (隸屬於套件 [http://packages.ubuntu.com/iw iw])來控制,不過想說如果可以在 /etc/modprobe.d 中設定,就不用老是靠指令去改。 |
| 6 | {{{ |
| 7 | Sep 11 08:31:33 jazzbook kernel: [ 206.775604] cfg80211: Regulatory domain changed to country: EC |
| 8 | Sep 11 08:31:33 jazzbook kernel: [ 206.775605] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) |
| 9 | Sep 11 08:31:33 jazzbook kernel: [ 206.775607] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm) |
| 10 | Sep 11 08:31:33 jazzbook kernel: [ 206.775609] cfg80211: (5170000 KHz - 5250000 KHz @ 20000 KHz), (300 mBi, 1700 mBm) |
| 11 | Sep 11 08:31:33 jazzbook kernel: [ 206.775610] cfg80211: (5250000 KHz - 5330000 KHz @ 20000 KHz), (300 mBi, 2300 mBm) |
| 12 | Sep 11 08:31:33 jazzbook kernel: [ 206.775612] cfg80211: (5735000 KHz - 5835000 KHz @ 20000 KHz), (300 mBi, 3000 mBm) |
| 13 | Sep 11 08:31:39 jazzbook kernel: [ 211.943255] ADDRCONF(NETDEV_UP): wlan0: link is not ready |
| 14 | |
| 15 | .............. |
| 16 | |
| 17 | Sep 11 08:31:39 jazzbook kernel: [ 212.845224] cfg80211: Regulatory domain changed to country: US |
| 18 | Sep 11 08:31:39 jazzbook kernel: [ 212.845229] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) |
| 19 | Sep 11 08:31:39 jazzbook kernel: [ 212.845235] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm) |
| 20 | Sep 11 08:31:39 jazzbook kernel: [ 212.845242] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm) |
| 21 | Sep 11 08:31:39 jazzbook kernel: [ 212.845248] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) |
| 22 | Sep 11 08:31:39 jazzbook kernel: [ 212.845255] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) |
| 23 | Sep 11 08:31:39 jazzbook kernel: [ 212.845261] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) |
| 24 | Sep 11 08:31:39 jazzbook kernel: [ 212.845268] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm) |
| 25 | }}} |
| 26 | * [參考] [http://hmh-ev.dyndns.org/mywiki/wlan Wlan administration and usage] |
| 27 | * [作法] 修改 /etc/modprobe.d/regdom |
| 28 | {{{ |
| 29 | ~$ cat /etc/modprobe.d/regdom |
| 30 | options cfg80211 ieee80211_regdom=US |
| 31 | }}} |