Wifi fails to connect

Mageia inherited the poor WiFi support from Mandriva and it hasn't improved. In fact with Mg2 the situation has got worse. I first raised this on the bug list for MDV 2007 and it STILL hasn't been fixed. Actually the problem largely went away, not entirely, in MDV 2010.1 but was back for 2010.2!
The first issue is drakconnect. Whatever you enter for security it always seems to fall back to WEP. Very occasionally it does display the settings you used before but very rarely.
Then there's drakroam. There doesn't seem to be anyway of adding a hidden network. Sometimes you'll see a hex address but this may or may not be the hidden network you're after. Hex addresses don't really mean very much. So you resort to drakconnect and thereby overwrite your main network.
If you do manage to setup your hidden network it then appears in drakroam but in Mg2 you still can't connect. With Mg2 all my usual strategies have stopped working which is going to be a issue for me as I don't always want to be tied to 2 metres from my router!
Makes no difference using Network Centre or Setup A New Network Interface in DrakConf. Network Center creates two files in /etc/sysconfig/network-scripts/wireless.d, 00:0f:b5:15:5d:aa and abcdefg, they both have identical contents.
I am happy to collect any diagnostics and try anything that won't damage my machine! in order to resolve this. After all, it's now 2012 and just because Vista couldn't handle hidden networks is no reason for Mageia not to as well!!
As I said in 2007, this problem does not exist in Ubuntu, Fedora, SUSE nor OS-X. It is not my router, we have several computers with flavours of Linux and OS-X and only the MDV and Mg ones have this issue.
My router configuration is hidden SSID, G only, channel 5 and WPA-PSK
Pleeeaasse someone help. I don't want to use another distribution, I love MDK / MDV / Mg and don't want to switch. I've lived with this issue for five years now and I'm reaching the end of the tether.
Driver ath5k
Chipset Atheros
I'm beginning to think that WiFi under Linux only works by luck! Googling for "disassociating from by local choice (reason=3)" reveals yet another swathe of issues around WiFi and they've been happening for years. It seems to affect loads of distributions with just as many solutions proposed; add aliases to modprobe.conf, set the radio kill switch to off - how?!, use a different kernel, Network Manager is rubbish and always has been! change encryption, change channel, unhide SSID, use ndiswrapper, don't use ndiswrapper! It doesn't seem to matter which WiFi chipset either. The only thing missing seems to be a solution! Sad it's gone on for so long.
Should I try the kernel from MDV 2010.1?
The first issue is drakconnect. Whatever you enter for security it always seems to fall back to WEP. Very occasionally it does display the settings you used before but very rarely.
Then there's drakroam. There doesn't seem to be anyway of adding a hidden network. Sometimes you'll see a hex address but this may or may not be the hidden network you're after. Hex addresses don't really mean very much. So you resort to drakconnect and thereby overwrite your main network.
If you do manage to setup your hidden network it then appears in drakroam but in Mg2 you still can't connect. With Mg2 all my usual strategies have stopped working which is going to be a issue for me as I don't always want to be tied to 2 metres from my router!
Makes no difference using Network Centre or Setup A New Network Interface in DrakConf. Network Center creates two files in /etc/sysconfig/network-scripts/wireless.d, 00:0f:b5:15:5d:aa and abcdefg, they both have identical contents.
I am happy to collect any diagnostics and try anything that won't damage my machine! in order to resolve this. After all, it's now 2012 and just because Vista couldn't handle hidden networks is no reason for Mageia not to as well!!
As I said in 2007, this problem does not exist in Ubuntu, Fedora, SUSE nor OS-X. It is not my router, we have several computers with flavours of Linux and OS-X and only the MDV and Mg ones have this issue.
My router configuration is hidden SSID, G only, channel 5 and WPA-PSK
Pleeeaasse someone help. I don't want to use another distribution, I love MDK / MDV / Mg and don't want to switch. I've lived with this issue for five years now and I'm reaching the end of the tether.
- Code: Select all
iwconfig
lo no wireless extensions.
wlan0 IEEE 802.11abg ESSID:off/any
Mode:Managed Frequency:2.432 GHz Access Point: Not-Associated
Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
irda0 no wireless extensions.
eth0 no wireless extensions.
- Code: Select all
ps -ef | grep -v grep | grep -i net
root 10 2 0 23:04 ? 00:00:00 [netns]
root 1201 1 0 23:05 ? 00:00:00 /usr/sbin/NetworkManager --no-daemon
owen 4443 3873 0 23:08 ? 00:00:05 /usr/bin/perl /usr/bin/net_applet
- Code: Select all
ifconfig
eth0 Link encap:Ethernet HWaddr 00:09:6B:50:1A:B9
inet6 addr: fe80::209:6bff:fe50:1ab9/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:3180 errors:0 dropped:0 overruns:0 frame:0
TX packets:2495 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3314537 (3.1 MiB) TX bytes:383242 (374.2 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23831 (23.2 KiB) TX bytes:23831 (23.2 KiB)
wlan0 Link encap:Ethernet HWaddr 00:05:5D:9F:C2:06
inet6 addr: fe80::205:5dff:fe9f:c206/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:726 (726.0 b) TX bytes:835 (835.0 b)
- Code: Select all
iwevent
Waiting for Wireless Events from interfaces...
23:17:38.774972 wlan0 Scan request completed
23:17:46.806765 wlan0 Scan request completed
23:17:54.474850 wlan0 Set Mode:Managed
23:17:54.529110 wlan0 Set Encryption key:off
23:17:54.544976 wlan0 Set Encryption key:****-****-****-****-****-****-**
23:17:54.555314 wlan0 Set ESSID:"abcdefg"
23:17:54.716551 wlan0 Set Mode:Managed
23:17:54.717495 wlan0 Set ESSID:off/any
23:17:57.581804 wlan0 Scan request completed
23:17:57.582275 wlan0 Set ESSID:off/any
23:17:57.582941 wlan0 Set Mode:Managed
23:17:57.602778 wlan0 Set Frequency:2.432 GHz (Channel 5)
23:17:57.603302 wlan0 Set ESSID:"abcdefg"
23:17:57.608880 wlan0 Association Response IEs:010882848B968C1298243204B048606C
23:17:57.608965 wlan0 New Access Point/Cell address:00:0F:B5:15:5D:AA
23:17:57.626879 wlan0 New Access Point/Cell address:Not-Associated
23:18:00.756655 wlan0 Scan request completed
23:18:00.761192 wlan0 Set ESSID:off/any
23:18:00.762302 wlan0 Set Mode:Managed
23:18:00.763266 wlan0 Set Frequency:2.432 GHz (Channel 5)
23:18:00.768101 wlan0 Set ESSID:"abcdefg"
23:18:00.773800 wlan0 Association Response IEs:010882848B968C1298243204B048606C
23:18:00.773874 wlan0 New Access Point/Cell address:00:0F:B5:15:5D:AA
23:18:00.777637 wlan0 New Access Point/Cell address:Not-Associated
23:18:03.906775 wlan0 Scan request completed
23:18:03.908076 wlan0 Set ESSID:off/any
23:18:03.908646 wlan0 Set Mode:Managed
23:18:03.908899 wlan0 Set Frequency:2.432 GHz (Channel 5)
23:18:03.913526 wlan0 Set ESSID:"abcdefg"
23:18:03.919191 wlan0 Association Response IEs:010882848B968C1298243204B048606C
23:18:03.919264 wlan0 New Access Point/Cell address:00:0F:B5:15:5D:AA
23:18:03.948017 wlan0 New Access Point/Cell address:Not-Associated
23:18:07.078646 wlan0 Scan request completed
23:18:07.080101 wlan0 Set ESSID:off/any
23:18:07.080770 wlan0 Set Mode:Managed
23:18:07.081628 wlan0 Set Frequency:2.432 GHz (Channel 5)
23:18:07.084099 wlan0 Set ESSID:"abcdefg"
23:18:07.089606 wlan0 Association Response IEs:010882848B968C1298243204B048606C
23:18:07.089678 wlan0 New Access Point/Cell address:00:0F:B5:15:5D:AA
23:18:07.109611 wlan0 New Access Point/Cell address:Not-Associated
23:18:10.250755 wlan0 Scan request completed
23:18:18.282755 wlan0 Scan request completed
23:18:22.121765 wlan0 Scan request completed
23:18:30.151781 wlan0 Scan request completed
23:18:38.180637 wlan0 Scan request completed
- Code: Select all
lsmod | grep ath
ath5k 170218 0
ath 19390 1 ath5k
mac80211 384735 1 ath5k
cfg80211 169030 3 mac80211,ath,ath5k
- Code: Select all
lspci -vv -nn -q -Q
09:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR5212/AR5213 Wireless Network Adapter [168c:0013] (rev 01)
Subsystem: D-Link System Inc Device [1186:3a07]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 11
Region 0: Memory at d8000000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=2 PME-
Kernel driver in use: ath5k
Driver ath5k
Chipset Atheros
- Code: Select all
tail daemons/errors.log
Jun 8 00:09:27 localhost /etc/sysconfig/network-scripts/ifup-eth: ath5k device wlan0 does not seem to be present, delaying initialization.
- Code: Select all
tail daemons/info.log
Jun 8 00:14:38 localhost ifplugd(wlan0)[4729]: ifplugd 0.28 initializing.
Jun 8 00:14:38 localhost ifplugd(wlan0)[4729]: Using interface wlan0/00:05:5D:9F:C2:06 with driver <ath5k> (version: 3.3.6-desktop-2.mga2)
Jun 8 00:14:38 localhost ifplugd(wlan0)[4729]: Using detection mode: SIOCETHTOOL
Jun 8 00:14:38 localhost ifplugd(wlan0)[4729]: Initialization complete, link beat not detected.
Jun 8 00:14:42 localhost avahi-daemon[1183]: Registering new address record for fe80::205:5dff:fe9f:c206 on wlan0.*.
Jun 8 00:20:36 localhost avahi-daemon[1183]: Withdrawing address record for fe80::205:5dff:fe9f:c206 on wlan0.
Jun 8 00:20:36 localhost avahi-daemon[1183]: Withdrawing workstation service for wlan0.
Jun 8 00:20:37 localhost ifplugd(wlan0)[4729]: Failed to detect plug status of wlan0
Jun 8 00:20:37 localhost ifplugd(wlan0)[4729]: Exiting.
- Code: Select all
tail kernel/errors.log
Jun 8 00:20:37 localhost kernel: [ 727.347664] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-wlan0 instead
Jun 8 00:20:37 localhost kernel: [ 727.441477] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-wlan0 instead
Jun 8 00:20:37 localhost kernel: [ 727.458486] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-wlan0 instead
Jun 8 00:20:37 localhost kernel: [ 727.475456] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-wlan0 instead
Jun 8 00:20:37 localhost kernel: [ 727.490721] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-wlan0 instead
Jun 8 00:20:37 localhost kernel: [ 727.507676] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-wlan0 instead
Jun 8 00:20:37 localhost kernel: [ 727.622505] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-wlan0 instead
Jun 8 00:20:37 localhost kernel: [ 727.627885] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-wlan0 instead
Jun 8 00:20:37 localhost kernel: [ 727.635638] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-wlan0 instead
- Code: Select all
tail -n 60 kernel/info.log
Jun 8 00:14:47 localhost kernel: [ 378.257374] wlan0: authenticate with 00:0f:b5:15:5d:aa (try 1)
Jun 8 00:14:47 localhost kernel: [ 378.258643] wlan0: authenticated
Jun 8 00:14:47 localhost kernel: [ 378.258775] wlan0: associate with 00:0f:b5:15:5d:aa (try 1)
Jun 8 00:14:47 localhost kernel: [ 378.261195] wlan0: RX AssocResp from 00:0f:b5:15:5d:aa (capab=0x431 status=0 aid=1)
Jun 8 00:14:47 localhost kernel: [ 378.261205] wlan0: associated
Jun 8 00:14:47 localhost kernel: [ 378.261215] wlan0: moving STA 00:0f:b5:15:5d:aa to state 1
Jun 8 00:14:47 localhost kernel: [ 378.261221] wlan0: moving STA 00:0f:b5:15:5d:aa to state 2
Jun 8 00:14:47 localhost kernel: [ 378.261228] wlan0: moving STA 00:0f:b5:15:5d:aa to state 3
Jun 8 00:14:47 localhost kernel: [ 378.277345] wlan0: disassociating from 00:0f:b5:15:5d:aa by local choice (reason=3)
Jun 8 00:14:47 localhost kernel: [ 378.277476] wlan0: deauthenticating from 00:0f:b5:15:5d:aa by local choice (reason=3)
Jun 8 00:14:47 localhost kernel: [ 378.284430] wlan0: moving STA 00:0f:b5:15:5d:aa to state 2
Jun 8 00:14:47 localhost kernel: [ 378.284440] wlan0: moving STA 00:0f:b5:15:5d:aa to state 1
Jun 8 00:14:47 localhost kernel: [ 378.284447] wlan0: moving STA 00:0f:b5:15:5d:aa to state 0
Jun 8 00:14:47 localhost kernel: [ 378.284492] cfg80211: Calling CRDA to update world regulatory domain
Jun 8 00:14:47 localhost kernel: [ 378.304704] cfg80211: World regulatory domain updated:
Jun 8 00:14:47 localhost kernel: [ 378.304715] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun 8 00:14:47 localhost kernel: [ 378.304725] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jun 8 00:14:47 localhost kernel: [ 378.304734] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jun 8 00:14:47 localhost kernel: [ 378.304742] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jun 8 00:14:47 localhost kernel: [ 378.304751] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jun 8 00:14:47 localhost kernel: [ 378.304759] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
I'm beginning to think that WiFi under Linux only works by luck! Googling for "disassociating from by local choice (reason=3)" reveals yet another swathe of issues around WiFi and they've been happening for years. It seems to affect loads of distributions with just as many solutions proposed; add aliases to modprobe.conf, set the radio kill switch to off - how?!, use a different kernel, Network Manager is rubbish and always has been! change encryption, change channel, unhide SSID, use ndiswrapper, don't use ndiswrapper! It doesn't seem to matter which WiFi chipset either. The only thing missing seems to be a solution! Sad it's gone on for so long.
Should I try the kernel from MDV 2010.1?