Gentoo Archives: gentoo-user

From: Dani Crisan <danicrisan82@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] wireless problem
Date: Wed, 19 Mar 2008 12:54:15
Message-Id: 517418.4449.qm@web45612.mail.sp1.yahoo.com
1 Hy again,
2
3 Here is the new /etc/conf.d/net:
4
5 pre-up(){
6 ifconfig wlan0 up
7 }
8
9 modules_wlan0=( "dhcp" "iwconfig" "wpa_supplicant")
10 essid_wlan0="any"
11 mode_wlan0="managed"
12 preferred_aps_wlan0="'baladei-wifi' 'dlink'"
13 assciate_order_wlan0="forcepreferedonly"
14 wpa_supplicant_wlan0="-Dwext -c /etc/wpa_supplicant/wpa_supplicant.conf"
15 config_wlan0=("dhcp")
16
17 When I issue /etc/init.d/net.wlan0 restart it still connects to dlink and from the log file it seems that it ignores baladei-wifi:
18
19 Mar 19 14:50:17 dani-laptop dhcpcd[8535]: wlan0: received SIGTERM, stopping
20 Mar 19 14:50:17 dani-laptop dhcpcd[8535]: wlan0: removing default route via 192.168.0.1 metric 2000
21 Mar 19 14:50:17 dani-laptop dhcpcd[8535]: wlan0: deleting IP address 192.168.0.101/24
22 Mar 19 14:50:17 dani-laptop dhcpcd[8535]: wlan0: exiting
23 Mar 19 14:50:18 dani-laptop ACPI: PCI interrupt for device 0000:0c:00.0 disabled
24 Mar 19 14:50:18 dani-laptop ACPI: PCI Interrupt 0000:0c:00.0[A] -> GSI 17 (level, low) -> IRQ 17
25 Mar 19 14:50:18 dani-laptop PM: Writing back config space on device 0000:0c:00.0 at offset 1 (was 100102, writing 100106)
26 Mar 19 14:50:18 dani-laptop ADDRCONF(NETDEV_UP): wlan0: link is not ready
27 Mar 19 14:50:18 dani-laptop wlan0: Initial auth_alg=0
28 Mar 19 14:50:18 dani-laptop wlan0: authenticate with AP 00:1b:11:fb:9d:00
29 Mar 19 14:50:18 dani-laptop wlan0: Initial auth_alg=0
30 Mar 19 14:50:18 dani-laptop wlan0: authenticate with AP 00:1b:11:fb:9d:00
31 Mar 19 14:50:18 dani-laptop wlan0: RX authentication from 00:1b:11:fb:9d:00 (alg=0 transaction=2 status=0)
32 Mar 19 14:50:18 dani-laptop wlan0: authenticated
33 Mar 19 14:50:18 dani-laptop wlan0: associate with AP 00:1b:11:fb:9d:00
34 Mar 19 14:50:18 dani-laptop wlan0: authentication frame received from 00:1b:11:fb:9d:00, but not in authenticate state - ignored
35 Mar 19 14:50:18 dani-laptop wlan0: RX AssocResp from 00:1b:11:fb:9d:00 (capab=0x421 status=0 aid=2)
36 Mar 19 14:50:18 dani-laptop wlan0: associated
37 Mar 19 14:50:18 dani-laptop ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
38 Mar 19 14:50:18 dani-laptop wlan0: Initial auth_alg=0
39 Mar 19 14:50:18 dani-laptop wlan0: authenticate with AP 00:1b:11:fb:9d:00
40 Mar 19 14:50:18 dani-laptop wlan0: Initial auth_alg=0
41 Mar 19 14:50:18 dani-laptop wlan0: authenticate with AP 00:1b:11:fb:9d:00
42 Mar 19 14:50:18 dani-laptop wlan0: RX authentication from 00:1b:11:fb:9d:00 (alg=0 transaction=2 status=0)
43 Mar 19 14:50:18 dani-laptop wlan0: authenticated
44 Mar 19 14:50:18 dani-laptop wlan0: associate with AP 00:1b:11:fb:9d:00
45 Mar 19 14:50:18 dani-laptop wlan0: authentication frame received from 00:1b:11:fb:9d:00, but not in authenticate state - ignored
46 Mar 19 14:50:18 dani-laptop wlan0: RX AssocResp from 00:1b:11:fb:9d:00 (capab=0x421 status=0 aid=1)
47 Mar 19 14:50:18 dani-laptop wlan0: associated
48 Mar 19 14:50:19 dani-laptop wlan0: Initial auth_alg=0
49 Mar 19 14:50:19 dani-laptop wlan0: authenticate with AP 00:1b:11:fb:9d:00
50 Mar 19 14:50:19 dani-laptop wlan0: RX authentication from 00:1b:11:fb:9d:00 (alg=0 transaction=2 status=0)
51 Mar 19 14:50:19 dani-laptop wlan0: authenticated
52 Mar 19 14:50:19 dani-laptop wlan0: associate with AP 00:1b:11:fb:9d:00
53 Mar 19 14:50:19 dani-laptop wlan0: RX ReassocResp from 00:1b:11:fb:9d:00 (capab=0x421 status=0 aid=2)
54 Mar 19 14:50:19 dani-laptop wlan0: associated
55
56
57 Any ideeas?
58
59
60 ----- Original Message ----
61 From: Neil Bothwick <neil@××××××××××.uk>
62 To: gentoo-user@l.g.o
63 Sent: Wednesday, March 19, 2008 2:22:11 PM
64 Subject: Re: [gentoo-user] wireless problem
65
66 On Wed, 19 Mar 2008 05:06:59 -0700 (PDT), Dani Crisan wrote:
67
68 > I made what you said and now it still connects to dlink but I'll read
69 > the wireless.example.
70
71 Please don't top-post, it makes conversations difficult to follow and
72 impossible to quote meaningfully.
73
74 preferred_aps means that it will try that aps first, but if it fails, it
75 will then try dlink. You can force it to only use a specific aps with
76 essid_wlan0="baladei-wifi" but I susopect your problem is that the
77 connection to your preferred aps is failing and dlink being used as a
78 fallback.
79
80 The system log should show details of the connection process, try "tail
81 -f /var/log/messages" before you do "/etc/init.d/wlan0 start".
82
83
84 --
85 Neil Bothwick
86
87 When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
88
89
90
91
92
93
94 ____________________________________________________________________________________
95 Be a better friend, newshound, and
96 know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Replies

Subject Author
Re: [gentoo-user] wireless problem Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] wireless problem Alexander Meinke <ameinke@××××××.de>