Difference between revisions of "Thinkpad T61"

From Blue-IT.org Wiki

(The second problem was:)
(The second problem was:)
Line 26: Line 26:
 
  cfg80211: Leaving channel 5190 MHz intact on phy2 - no rule found in band on Country IE
 
  cfg80211: Leaving channel 5190 MHz intact on phy2 - no rule found in band on Country IE
  
This is a problem with the wlan setting with can easily solved by adding a script to Network Manager (according to [http://wiki.ubuntuusers.de/NetworkManager/Dispatcher] and [http://wiki.ubuntuusers.de/wlan#Konfiguration-der-Kanaele-12-und-13]:
+
Look at dmesg like this:
 +
dmesg | grep cfg | grep country
 +
 
 +
You'll see something like this
 +
cfg80211: Calling CRDA for ''country: GB''
 +
cfg80211: Received ''country IE'':
 +
 
 +
To set the right country for your card you have to install the program iw
 +
sudo apt-get install iw
 +
 
 +
Then you can manually do
 +
iw reg set GB
 +
 
 +
and you'll see in dmesg:
 +
cfg80211: Regulatory domain changed to country: GB
 +
 
 +
To automate this process you can write a so called dispatcher script for network manager (according to [http://wiki.ubuntuusers.de/NetworkManager/Dispatcher] and [http://wiki.ubuntuusers.de/wlan#Konfiguration-der-Kanaele-12-und-13]):
 
  vim /etc/NetworkManager/dispatcher.d/01changeCRDA
 
  vim /etc/NetworkManager/dispatcher.d/01changeCRDA
  

Revision as of 21:41, 25 September 2010

Wlan Problems

Ubuntu Lucid / 10.04.1

I encountered some problems with my wlan and had some strange errors in dmesg:

The first problem was:

iwl3945 0000:03:00.0: Failed to get channel info for channel 100 [0]
iwl3945 0000:03:00.0: Failed to get channel info for channel 104 [0]
iwl3945 0000:03:00.0: Failed to get channel info for channel 108 [0]
iwl3945 0000:03:00.0: Failed to get channel info for channel 112 [0]

According to this opensuse bug i filed a solution in Ubuntu Bug #340418:

Add the following to a new file

vim /etc/modprobe.d/options-iwl3945.conf

and add

options iwl3945 disable_hw_scan=0

For testing purpose do

rmmod -f iwl3945 && modprobe iwl3945 disable_hw_scan=0

The second problem was:

cfg80211: Leaving channel 5170 MHz intact on phy2 - no rule found in band on Country IE
cfg80211: Leaving channel 5180 MHz intact on phy2 - no rule found in band on Country IE
cfg80211: Leaving channel 5190 MHz intact on phy2 - no rule found in band on Country IE

Look at dmesg like this:

dmesg | grep cfg | grep country

You'll see something like this

cfg80211: Calling CRDA for country: GB
cfg80211: Received country IE:

To set the right country for your card you have to install the program iw

sudo apt-get install iw

Then you can manually do

iw reg set GB

and you'll see in dmesg:

cfg80211: Regulatory domain changed to country: GB

To automate this process you can write a so called dispatcher script for network manager (according to [1] and [2]):

vim /etc/NetworkManager/dispatcher.d/01changeCRDA

and add

#!/bin/sh
INTERFACE=$1
ACTION=$2
CODE="GB" 

if [ "$ACTION" = "up" -a "$(echo $INTERFACE|grep wlan)" ];then
       iw reg set ${CODE}
fi