Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] ath5k and wpa_supplicant
Date: Mon, 01 Jun 2009 14:46:18
Message-Id: 358eca8f0906010746j134d4cd3wf1248021cd6ac687@mail.gmail.com
1 Hi All,
2
3 Until gentoo-sources-2.6.29-r5 came out I was able to use my ath5 card
4 with wpa_supplicant. My /etc/conf.d/net contained:
5 =============================================
6 modules=( "wpa_supplicant" )
7 wpa_supplicant_ath0="-Dmadwifi"
8 =============================================
9
10 All went swimmingly well until I tried to re-emerge wpa_supplicant
11 after I compiled my new kernel - an error message warned that
12 CONFIG_KMOD was missing ...
13 =============================================
14 * Found sources for kernel version:
15 * 2.6.29-gentoo-r5
16 * Checking for suitable kernel configuration options...
17 * requires CONFIG_KMOD to be set to y or m
18 * Please check to make sure these options are set correctly.
19 * Failure to do so may cause unexpected problems.
20 * Once you have satisfied these options, please try merging
21 * this package again.
22 =============================================
23
24 I searched for KMOD in vane - couldn't find it in the new kernel
25 .config. So I concluded that it may be curtains for wpa_supplicant.
26 I enabled ath5k in the kernel as a module, commented out all the
27 wpa_supplicant entries in my /etc/conf.d/net and rebooted. When I
28 plugged in my ath5 cardbus it seems that the device is recognised, the
29 module loaded, but it cannot associate:
30 =============================================
31 * Found 00:1D:A2:86:D1:00 (managed, encrypted)
32 * Found 00:1D:A2:86:D1:80 (managed, encrypted)
33 * Found 00:1D:A2:86:D4:C0 (managed, encrypted)
34 * Found "blah-blah" at 00:1D:A2:86:CF:01 (managed)
35 * Found 00:1D:A2:86:CF:00 (managed, encrypted)
36 * Connecting to "blah-blah" in managed mode (WEP Disabled) ...
37 [ !! ]
38 * Couldn't associate with any access points on wlan1
39 * Failed to configure wireless for wlan1 [ !! ]
40 =============================================
41
42 However, running the following commands manually gets me online
43 without any problems:
44 =============================================
45 # modprobe -v ath5k
46 insmod /lib/modules/2.6.29-gentoo-r5/kernel/drivers/net/wireless/ath5k/ath5k.ko
47 # ip link set wlan1 up
48 # iwconfig wlan1 essid any
49 # dhcpcd wlan1 up
50 wlan1: dhcpcd 4.0.13 starting
51 wlan1: broadcasting for a lease
52 wlan1: offered 10.211.38.232 from 1.1.1.1
53 wlan1: acknowledged 10.211.38.232 from 1.1.1.1
54 wlan1: checking 10.211.38.232 is available on attached networks
55 wlan1: leased 10.211.38.232 for 86400 seconds
56 =============================================
57
58 I am a bit rusty will all this as I did not have to configure it for
59 years. If I am not doing anything wrong, any idea what I should enter
60 in my /etc/conf.d/net to allow the device to come up automatically
61 when plugged in?
62 --
63 Regards,
64 Mick

Replies

Subject Author
Re: [gentoo-user] ath5k and wpa_supplicant Michael Niggli <m.niggli@×××××.com>