Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ath5k and wpa_supplicant
Date: Fri, 05 Jun 2009 14:06:14
Message-Id: 358eca8f0906050706n374ed4fdx31e72d6da9592aa7@mail.gmail.com
In Reply to: Re: [gentoo-user] ath5k and wpa_supplicant by Paul Hartman
1 2009/6/3 Paul Hartman <paul.hartman+gentoo@×××××.com>:
2 > On Tue, Jun 2, 2009 at 7:24 AM, Mick <michaelkintzios@×××××.com> wrote:
3 >> I'm afraid that although my card is now recognised as wlan0, both
4 >> wpa_cli and gui insist on trying to connect to ath0, unless I specify
5 >> -iwlan0 at the terminal.  I don't have (knowingly) specified ath0 in
6 >> any other configuration file ... where else could wpa_supplicant pick
7 >> this from?
8 >
9 > On my system I've got ath5k for wifi, too. It uses wpa_supplicant and
10 > my device is wlan0 and all works well enough. I switched 2 machines
11 > from madwifi to ath5k and only had to make 4 changes to my
12 > configuration:
13 >
14 > 1. Edit /etc/modprobe.d/blacklist and add this line:
15 > blacklist ath_pci
16
17 I didn't have to do that.
18
19 > 2. In /etc/conf.d/net I have changed this line:
20 > wpa_supplicant_ath0="-Dmadwifi"
21 >
22 > to this:
23 > wpa_supplicant_wlan0="-Dwext"
24
25 Yep, done that.
26
27 > 3. In /etc/udev/rules.d/70-persistent-net.rules I deleted the old
28 > entry for my wireless card and let it re-create, which came out as:
29 > # PCI device 0x168c:0x001c (ath5k_pci)
30 > SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
31 > ATTR{address}=="00:15:af:15:e3:3e", ATTR{type}=="1", KERNEL=="wlan*",
32 > NAME="wlan0"
33
34 I deleted the old rule in there.
35
36 > 4. Rename /etc/init.d/net.ath0 symlink to /etc/init.d/net.wlan0 and
37 > make sure it is in the "default" runlevel.
38
39 Aha! Hadn't done that until now and I also deleted /var/run/wpa_supplicant/ath0
40
41 This has fixed it! wpa_cli and wpa_gui now find my card. Thank you
42 all for your help.
43
44 PS. I noticed that unlike madwifi the in-kernel driver does not work
45 particularly well with iwlist:
46
47 # iwlist wlan0 ap
48 wlan0 Interface doesn't have a list of Peers/Access-Points
49
50 # iwlist wlan0 rate
51 wlan0 unknown bit-rate information.
52 Current Bit Rate=24 Mb/s
53
54 wpa_cli thought shows the full list of APs.
55 --
56 Regards,
57 Mick