Gentoo Archives: gentoo-user

From: Platoali <platoali@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] problem configuring wireless lan
Date: Fri, 08 Aug 2008 15:16:40
Message-Id: 200808081758.40017.Platoali@gmail.com
1 Hi,
2 I've a problem configuring my wireless interface. I usually connect to two
3 access points. One located at my home and another one at my work. The problem
4 is that I should change my /etc/conf.d/net every time to connect the
5 them.
6
7 here is my config:
8 ---------------------------------------------------------------
9 preup() {
10 if [[ ${IFACE} == "eth1" ]]; then
11 /sbin/ifconfig eth1 up
12 echo 0\
13 > /sys/devices/pci0000:00/0000:00:1c.1/0000:06:00.0/rf_kill
14 /sbin/iwconfig eth1 txpower on
15 /sbin/ifconfig eth1 up
16 sleep 3
17 fi
18 return 0
19 }
20
21 modules=("iwconfig" )
22 #essid_eth1="any"
23 essid_eth1="Home_ali"
24 preferred_aps_wlan1=( "Home_ali" "P-P" )
25 associate_order="preferredonly"
26 key_Home_ali="s:KeyKeyKey"
27 config_Home_ali=( "dhcp" )
28 config_P_P=( "192.168.2.6 netmask 255.255.240.0" )
29 routes_P_P=( "default via 192.168.1.10" )
30 dns_servers_P_P=( "127.0.0.1 4.2.2.4" )
31 --------------------------------------------------------------------
32
33 When I set essid_eth1 to "any", It can not detect the ESSID automatically and
34 connect to it, and I should edit the config file manually, and the strange
35 thing is when I specifically set my essid in the config it can successfully
36 connect to any of them. and I can manually scan the access points by iwlist:
37 -------------------------------------------------------------------
38 localhost ISP # iwconfig eth1 txpower on
39 localhost ISP # iwlist eth1 scan
40 eth1 Scan completed :
41 Cell 01 - Address: 00:30:4F:4F:E8:EA
42 ESSID:"Home_ali"
43 Protocol:IEEE 802.11bg
44 Mode:Master
45 Frequency:2.462 GHz (Channel 11)
46 Encryption key:on
47 Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
48 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
49 48 Mb/s; 54 Mb/s
50 Quality=79/100 Signal level=-55 dBm Noise level=-55 dBm
51 Extra: Last beacon: 1199ms ago
52 ------------------------------------------------------------------------
53 here is the error, when I start the interface by init.d script:
54 ------------------------------------------------------------------
55 localhost ~ # /etc/init.d/net.eth1 start
56 * Service net.eth1 starting
57 Error for wireless request "Set Tx Power" (8B27) :
58 GET failed on device eth1 ; Resource temporarily unavailable.
59 Failed to configure wireless for eth1
60 [ !! ]
61 * ERROR: net.eth1 failed to start
62 -----------------------------------------------------------------------
63
64 here is what I get from dmesg:
65 ------------------------------------------------------------------
66 ipw3945: Detected geography ABG (11 802.11bg channels, 13 802.11a channels)
67 ipw3945: Error sending SCAN_ABORT_CMD: time out after 500ms.
68 --------------------------------------------------------------------------
69
70 Does anyone have any clue about this? I'm using the latest driver form:
71 http://linuxwireless.org/en/users/Download.
72
73 Best regards
74 Platoali