Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] Intel(R) WiFi Link 5100 AGN - random de-authentication
Date: Wed, 07 May 2014 15:58:12
Message-Id: CAGOe-ezfXyrX_zNQXCEuX=9NiLoHG2S18Oaon6kKQwPmn17J9Q@mail.gmail.com
1 I am trying to get Gentoo running on an Acer Aspire 3935 and it is
2 mostly working
3 except for the wireless, which seems to have ... Centrino inside! :@
4
5 (Apologies for the long message, but I thought I'll post all I know in
6 one go, so as to minimise a prolonged Q&A session)
7
8 I have compiled on a 3.12.13-gentoo kernel:
9
10 CONFIG_IWLWIFI=m
11 CONFIG_IWLDVM=m
12 CONFIG_IWLWIFI_OPMODE_MODULAR=y
13
14
15 My /etc/conf.d/net section says:
16
17 modules="wpa_supplicant"
18 wpa_supplicant_wlp4s0="-Dwext"
19 config_wlp4s0="dhcp"
20 dhcpcd_wlp4s0="-t 45"
21 metric_wlp4s0=20
22
23
24 My wpa_supplicant.conf has this section:
25
26 network={
27 ssid="My_AP"
28 bssid=00:A0:C8:1F:16:A2
29 proto=RSN
30 key_mgmt=WPA-PSK
31 pairwise=CCMP
32 auth_alg=OPEN
33 group=CCMP
34 psk="secret_passphrase"
35 priority=5
36 }
37
38 Same configuration and AP works fine with other laptops, which do not
39 have the same wireless chipset.
40
41
42 With this laptop, running the netifrc script does not bring the card
43 up. The firmware (in kernel) is loaded as dmesg shows:
44 =================================
45 $ dmesg | grep -i wifi
46 [ 9.451850] Intel(R) Wireless WiFi driver for Linux, in-tree:
47 [ 9.452022] iwlwifi 0000:04:00.0: can't disable ASPM; OS doesn't
48 have ASPM control
49 [ 9.452184] iwlwifi 0000:04:00.0: irq 47 for MSI/MSI-X
50 [ 10.229544] iwlwifi 0000:04:00.0: loaded firmware version 8.83.5.1
51 build 33692 op_mode iwldvm
52 [ 10.256874] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUG disabled
53 [ 10.256885] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
54 [ 10.256892] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled
55 [ 10.256899] iwlwifi 0000:04:00.0: Detected Intel(R) WiFi Link 5100
56 AGN, REV=0x54
57 [ 10.257068] iwlwifi 0000:04:00.0: L1 Enabled; Disabling L0S
58 [ 30.826602] iwlwifi 0000:04:00.0: L1 Enabled; Disabling L0S
59 [ 30.829610] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0
60 [ 30.923329] iwlwifi 0000:04:00.0: L1 Enabled; Disabling L0S
61 [ 30.926328] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0
62 [ 490.545527] iwlwifi 0000:04:00.0: L1 Enabled; Disabling L0S
63 [ 490.548542] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0
64 [ 510.899848] iwlwifi 0000:04:00.0: L1 Enabled; Disabling L0S
65 [ 510.902936] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0
66 [ 514.377859] iwlwifi 0000:04:00.0 wlp4s0: disabling HT as WMM/QoS is
67 not supported by the AP
68 [ 514.377869] iwlwifi 0000:04:00.0 wlp4s0: disabling VHT as WMM/QoS
69 is not supported by the AP
70 =================================
71
72 but no link becomes available:
73
74 # /etc/init.d/net.wlp4s0 restart
75 * Bringing up interface wlp4s0
76 * Starting wpa_supplicant on wlp4s0 ...
77 Successfully initialized wpa_supplicant
78 ioctl[SIOCSIWPMKSA]: Invalid argument
79 ioctl[SIOCSIWMODE]: Invalid argument
80 ioctl[SIOCGIWRANGE]: Invalid argument
81 ioctl[SIOCGIWMODE]: Invalid argument
82 ioctl[SIOCSIWAP]: Invalid argument
83 ioctl[SIOCSIWESSID]: Invalid argument
84 ioctl[SIOCSIWENCODEEXT]: Invalid argument
85 ioctl[SIOCSIWENCODEEXT]: Invalid argument
86 ioctl[SIOCSIWENCODEEXT]: Invalid argument
87 ioctl[SIOCSIWENCODEEXT]: Invalid argument
88 ioctl[SIOCSIWPMKSA]: Invalid argument [ ok ]
89 * Starting wpa_cli on wlp4s0 ... [ ok ]
90 * Backgrounding ... ...
91 * WARNING: net.wlp4s0 has started, but is inactive
92
93
94 The logs show:
95 ==============================
96 May 07 15:56:43 [kernel] [ 1623.589327] Intel(R) Wireless WiFi driver
97 for Linux, in-tree:
98 May 07 15:56:43 [kernel] [ 1623.589337] Copyright(c) 2003-2013 Intel Corporation
99 May 07 15:56:43 [kernel] [ 1623.589609] iwlwifi 0000:04:00.0: can't
100 disable ASPM; OS doesn't have ASPM control
101 May 07 15:56:43 [kernel] [ 1623.590070] iwlwifi 0000:04:00.0: irq 47
102 for MSI/MSI-X
103 May 07 15:56:43 [kernel] [ 1623.591547] iwlwifi 0000:04:00.0: loaded
104 firmware version 8.83.5.1 build 33692 op_mode iwldvm
105 May 07 15:56:43 [kernel] [ 1623.596768] iwlwifi 0000:04:00.0:
106 CONFIG_IWLWIFI_DEBUG disabled
107 May 07 15:56:43 [kernel] [ 1623.596781] iwlwifi 0000:04:00.0:
108 CONFIG_IWLWIFI_DEBUGFS disabled
109 May 07 15:56:43 [kernel] [ 1623.596788] iwlwifi 0000:04:00.0:
110 CONFIG_IWLWIFI_DEVICE_TRACING disabled
111 May 07 15:56:43 [kernel] [ 1623.596795] iwlwifi 0000:04:00.0: Detected
112 Intel(R) WiFi Link 5100 AGN, REV=0x54
113 May 07 15:56:43 [kernel] [ 1623.597194] iwlwifi 0000:04:00.0: L1
114 Enabled; Disabling L0S
115 May 07 15:56:43 [kernel] [ 1623.624050] ieee80211 phy4: Selected rate
116 control algorithm 'iwl-agn-rs'
117 May 07 15:56:43 [kernel] [ 1623.781022] iwlwifi 0000:04:00.0: L1
118 Enabled; Disabling L0S
119 May 07 15:56:43 [kernel] [ 1623.784065] iwlwifi 0000:04:00.0: Radio
120 type=0x1-0x2-0x0
121 May 07 15:56:43 [kernel] [ 1623.879476] iwlwifi 0000:04:00.0: L1
122 Enabled; Disabling L0S
123 May 07 15:56:43 [kernel] [ 1623.882488] iwlwifi 0000:04:00.0: Radio
124 type=0x1-0x2-0x0
125 May 07 15:56:43 [kernel] [ 1623.905646] IPv6: ADDRCONF(NETDEV_UP):
126 wlp4s0: link is not ready
127 ==============================
128
129
130 Trying wpa_cli just shows:
131 ===============
132 Selected interface 'wlp4s0'
133
134 Interactive mode
135
136 <4>Failed to initiate AP scan
137 <4>Failed to initiate AP scan
138 <4>Failed to initiate AP scan
139 [snip ...]
140 ===============
141
142
143 Another way I tried was without starting the netifrc scripts and
144 instead using connman (supposedly a front end for wpa_supplicant).
145 Surprisingly, now I get a connection, but alas, it won't last. Trying
146 passing different parameters to the module I managed to get it to
147 connect and spend around 7 minutes online at a time (after that time
148 it will de/re-authenticate), if I modprobe it like this:
149
150 # modprobe -v iwlwifi power_save=0 power_level=3 11n_disable=1
151 insmod /lib/modules/3.12.13-gentoo/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko
152 power_save=0 power_level=3 11n_disable=1
153
154 Then it will de-authenticate with (Reason: 1) and re-authenticate
155 straight after. This is an example from the logs:
156 =======================================
157 May 07 16:02:48 [kernel] [ 1989.232888] wlp4s0: authenticate with
158 00:A0:C8:1F:16:A2
159 May 07 16:02:48 [kernel] [ 1989.237831] wlp4s0: send auth to
160 00:A0:C8:1F:16:A2 (try 1/3)
161 May 07 16:02:48 [kernel] [ 1989.251354] wlp4s0: authenticated
162 May 07 16:02:48 [kernel] [ 1989.251675] iwlwifi 0000:04:00.0 wlp4s0:
163 disabling HT as WMM/QoS is not supported by the AP
164 May 07 16:02:48 [kernel] [ 1989.251684] iwlwifi 0000:04:00.0 wlp4s0:
165 disabling VHT as WMM/QoS is not supported by the AP
166 May 07 16:02:48 [kernel] [ 1989.252038] wlp4s0: associate with
167 00:A0:C8:1F:16:A2 (try 1/3)
168 May 07 16:02:48 [kernel] [ 1989.254371] wlp4s0: RX AssocResp from
169 00:A0:C8:1F:16 (capab=0x431 status=0 aid=1)
170 May 07 16:02:48 [kernel] [ 1989.259053] wlp4s0: associated
171 May 07 16:02:48 [kernel] [ 1989.259106] IPv6: ADDRCONF(NETDEV_CHANGE):
172 wlp4s0: link becomes readyMay 07 16:10:15 [kernel] [ 2436.358251]
173 wlp4s0: deauthenticated from 00:A0:C8:1F:16 (Reason: 1)
174 May 07 16:10:15 [kernel] [ 2436.369580] cfg80211: Calling CRDA to
175 update world regulatory domain
176 May 07 16:10:16 [kernel] [ 2436.728045] IPv6: ADDRCONF(NETDEV_UP):
177 wlp4s0: link is not ready
178 May 07 16:10:16 [kernel] [ 2436.760276] cfg80211: World regulatory
179 domain updated:
180 May 07 16:10:16 [kernel] [ 2436.760286] cfg80211: (start_freq -
181 end_freq @ bandwidth), (max_antenna_gain, max_eirp)
182 May 07 16:10:16 [kernel] [ 2436.760294] cfg80211: (2402000 KHz -
183 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
184 May 07 16:10:16 [kernel] [ 2436.760300] cfg80211: (2457000 KHz -
185 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
186 May 07 16:10:16 [kernel] [ 2436.760306] cfg80211: (2474000 KHz -
187 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
188 May 07 16:10:16 [kernel] [ 2436.760312] cfg80211: (5170000 KHz -
189 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
190 May 07 16:10:16 [kernel] [ 2436.760317] cfg80211: (5735000 KHz -
191 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
192 May 07 16:10:19 [kernel] [ 2439.459796] wlp4s0: authenticate with
193 00:A0:C8:1F:16:A2
194 May 07 16:10:19 [kernel] [ 2439.462795] wlp4s0: send auth to
195 00:A0:C8:1F:16:A2 (try 1/3)
196 May 07 16:10:19 [kernel] [ 2439.465260] wlp4s0: authenticated
197 May 07 16:10:19 [kernel] [ 2439.465489] iwlwifi 0000:04:00.0 wlp4s0:
198 disabling HT as WMM/QoS is not supported by the AP
199 May 07 16:10:19 [kernel] [ 2439.465499] iwlwifi 0000:04:00.0 wlp4s0:
200 disabling VHT as WMM/QoS is not supported by the AP
201 May 07 16:10:19 [kernel] [ 2439.466352] wlp4s0: associate with
202 00:A0:C8:1F:16:A2 (try 1/3)
203 May 07 16:10:19 [kernel] [ 2439.468830] wlp4s0: RX AssocResp from
204 00:A0:C8:1F:16:A2 (capab=0x431 status=0 aid=1)
205 May 07 16:10:19 [kernel] [ 2439.477564] wlp4s0: associated
206 May 07 16:10:19 [kernel] [ 2439.477619] IPv6: ADDRCONF(NETDEV_CHANGE):
207 wlp4s0: link becomes ready
208 May 07 16:18:50 [kernel] [ 2950.472542] wlp4s0: deauthenticated from
209 00:A0:C8:1F:16:A2 (Reason: 1)
210 May 07 16:18:50 [kernel] [ 2950.485737] cfg80211: Calling CRDA to
211 update world regulatory domain
212 May 07 16:18:50 [kernel] [ 2950.494516] cfg80211: World regulatory
213 domain updated:
214 May 07 16:18:50 [kernel] [ 2950.494526] cfg80211: (start_freq -
215 end_freq @ bandwidth), (max_antenna_gain, max_eirp)
216 May 07 16:18:50 [kernel] [ 2950.494533] cfg80211: (2402000 KHz -
217 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
218 May 07 16:18:50 [kernel] [ 2950.494539] cfg80211: (2457000 KHz -
219 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
220 May 07 16:18:50 [kernel] [ 2950.494545] cfg80211: (2474000 KHz -
221 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
222 May 07 16:18:50 [kernel] [ 2950.494551] cfg80211: (5170000 KHz -
223 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
224 May 07 16:18:50 [kernel] [ 2950.494557] cfg80211: (5735000 KHz -
225 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
226 May 07 16:18:50 [kernel] [ 2950.821948] IPv6: ADDRCONF(NETDEV_UP):
227 wlp4s0: link is not ready
228 May 07 16:18:53 [kernel] [ 2953.715508] wlp4s0: authenticate with
229 00:A0:C8:1F:16:A2
230 May 07 16:18:53 [kernel] [ 2953.718074] wlp4s0: send auth to
231 00:A0:C8:1F:16:A2 (try 1/3)
232 May 07 16:18:53 [kernel] [ 2953.720585] wlp4s0: authenticated
233 May 07 16:18:53 [kernel] [ 2953.724693] iwlwifi 0000:04:00.0 wlp4s0:
234 disabling HT as WMM/QoS is not supported by the AP
235 May 07 16:18:53 [kernel] [ 2953.724706] iwlwifi 0000:04:00.0 wlp4s0:
236 disabling VHT as WMM/QoS is not supported by the AP
237 May 07 16:18:53 [kernel] [ 2953.726072] wlp4s0: associate with
238 00:A0:C8:1F:16:A2 (try 1/3)
239 May 07 16:18:53 [kernel] [ 2953.728414] wlp4s0: RX AssocResp from
240 00:A0:C8:1F:16:A2 (capab=0x431 status=0 aid=1)
241 May 07 16:18:53 [kernel] [ 2953.741267] wlp4s0: associated
242 May 07 16:18:53 [kernel] [ 2953.741342] IPv6: ADDRCONF(NETDEV_CHANGE):
243 wlp4s0: link becomes ready
244 ====================================================
245
246 and so on. If I modprobe it with "11n_disable=1", it will
247 de-authenticate but will not re-authenticate on its own. The connman
248 status then shows "connman crashed". If leave power_level=3 to 1,
249 which is the default, then it'll drop out sooner and not
250 re-authenticate.
251
252 Anyway I look at this it smells as a driver problem, but I do not
253 understand why connman works albeit imperfectly, while the netifrc
254 script does not.
255
256 Do you have any experience with this wireless chipset? Anything else
257 I should try?
258
259 PS. I have also tried linux-firmware and linux-iwlwifi, but I
260 couldn't get to connect at all.
261
262 --
263 Regards,
264 Mick

Replies