1 |
On 11/3/2009 11:16 PM, Iain Buchanan wrote: |
2 |
> On Tue, 2009-11-03 at 21:52 -0500, Mike Edenfield wrote: |
3 |
|
4 |
>> When I attempt to use either of those |
5 |
>> utilities to get onto my wireless network, the NIC refuses to stay |
6 |
>> connected to the base station for more than a few seconds at a time. |
7 |
>> Instead, it continually disassociates and deauthenticates, only for |
8 |
>> nm/wicd to hop right back on. However, if I manually configure |
9 |
>> wpa_supplicant for a given SSID and start it via the init script |
10 |
>> directly, I don't have any such problems. |
11 |
> |
12 |
> Have you stopped your net.wlan0 script? Also remove it from the default |
13 |
> runlevel, and set "rc_hotplug="!net.wlan0 !net.eth0" in /etc/rc.conf (if |
14 |
> you're using openrc). |
15 |
|
16 |
I hadn't done that initially, but I did this time, and still get the |
17 |
same issue. I'm having trouble determining if the problem is |
18 |
NetworkManager telling the NIC to disassociate, or the NIC telling |
19 |
NetworkManager to disassociate. |
20 |
|
21 |
As long as NetworkManager is running, my dmesg output shows this |
22 |
happening about once every 15 seconds or so (I don't know what any of |
23 |
those status codes mean, or they may help troubleshoot the problem :) ) |
24 |
|
25 |
wlan0: authenticate with AP 00:1e:58:04:1e:ec |
26 |
wlan0: authenticated |
27 |
wlan0: associate with AP 00:1e:58:04:1e:ec |
28 |
wlan0: RX AssocResp from 00:1e:58:04:1e:ec (capab=0x411 status=12 aid=1) |
29 |
wlan0: AP denied association (code=12) |
30 |
wlan0: associate with AP 00:1e:58:04:1e:ec |
31 |
wlan0: RX AssocResp from 00:1e:58:04:1e:ec (capab=0x411 status=12 aid=1) |
32 |
wlan0: AP denied association (code=12) |
33 |
wlan0: associate with AP 00:1e:58:04:1e:ec |
34 |
wlan0: RX AssocResp from 00:1e:58:04:1e:ec (capab=0x411 status=12 aid=1) |
35 |
wlan0: AP denied association (code=12) |
36 |
wlan0: association with AP 00:1e:58:04:1e:ec timed out |
37 |
wlan0: authenticate with AP 00:1e:58:04:1e:ec |
38 |
wlan0: authenticated |
39 |
wlan0: associate with AP 00:1e:58:04:1e:ec |
40 |
wlan0: RX AssocResp from 00:1e:58:04:1e:ec (capab=0x411 status=0 aid=1) |
41 |
wlan0: associated |
42 |
wlan0: disassociated (Reason: 14) |
43 |
wlan0: deauthenticated (Reason: 6) |
44 |
|
45 |
The syslog output from NetworkManager shows basically the same cycle: |
46 |
|
47 |
Nov 04 14:12:11 [NetworkManager] <info> Activation (wlan0) successful, |
48 |
device activated._ |
49 |
Nov 04 14:12:11 [NetworkManager] <info> Activation (wlan0) Stage 5 of 5 |
50 |
(IP Configure Commit) complete._ |
51 |
Nov 04 14:12:38 [NetworkManager] <info> (wlan0): supplicant connection |
52 |
state: completed -> disconnected_ |
53 |
Nov 04 14:12:38 [NetworkManager] <info> (wlan0): supplicant connection |
54 |
state: disconnected -> scanning_ |
55 |
Nov 04 14:12:38 [NetworkManager] <info> (wlan0): supplicant connection |
56 |
state: scanning -> disconnected_ |
57 |
Nov 04 14:12:40 [NetworkManager] <info> (wlan0): supplicant connection |
58 |
state: disconnected -> associating_ |
59 |
Nov 04 14:12:41 [NetworkManager] <info> (wlan0): supplicant connection |
60 |
state: associating -> disconnected_ |
61 |
Nov 04 14:12:50 [NetworkManager] <info> (wlan0): supplicant connection |
62 |
state: disconnected -> scanning_ |
63 |
Nov 04 14:12:52 [NetworkManager] <info> (wlan0): supplicant connection |
64 |
state: scanning -> associating_ |
65 |
Nov 04 14:12:52 [NetworkManager] <info> (wlan0): supplicant connection |
66 |
state: associating -> disconnected_ |
67 |
Nov 04 14:12:53 [NetworkManager] <info> (wlan0): device state change: 8 |
68 |
-> 3 (reason 11)_ |
69 |
Nov 04 14:12:53 [NetworkManager] <info> (wlan0): deactivating device |
70 |
(reason: 11)._ |
71 |
|
72 |
As soon as I stop NetworkManager and start net.wlan0, it jumps onto the |
73 |
AP and stays there for good: |
74 |
|
75 |
wlan0: authenticate with AP 00:1e:58:04:1e:ec |
76 |
wlan0: authenticated |
77 |
wlan0: associate with AP 00:1e:58:04:1e:ec |
78 |
wlan0: RX AssocResp from 00:1e:58:04:1e:ec (capab=0x411 status=0 aid=2) |
79 |
wlan0: associated |
80 |
|
81 |
>> Additionally, I can't get either applet to actually save settings (like |
82 |
>> known networks, passwords, etc.) which means that I'm continually |
83 |
>> interrupted by a prompt for the wireless password. |
84 |
> |
85 |
> Do you have seahorse (gnome)? Depending on how it's setup, you should |
86 |
> only have to provide the master password once for nm to access all your |
87 |
> keys. |
88 |
|
89 |
I do have seahorse, and when I first boot up it asks me for the default |
90 |
keyring password and connects to the AP automatically. Every time after |
91 |
that, when the connection bounces, syslog shows: |
92 |
|
93 |
Nov 04 14:13:21 [NetworkManager] <info> Activation (wlan0/wireless): |
94 |
connection 'Auto Informagration' has security, and secrets exist. No |
95 |
new secrets needed._ |
96 |
|
97 |
but NetworkManager presents the WPA pass phrase dialog anyway. |
98 |
|
99 |
--Mike |