1 |
On Mon, 10. Mar, Sergey Kobzar spammed my inbox with |
2 |
<snip> |
3 |
> My kernel is Linux 2.6.24-gentoo-r3. |
4 |
> Unfortunately I can't emerge iwlwifi (but maybe it's not required?): |
5 |
Yes, with 2.6.24, iwlwifi is not required anymore. |
6 |
<snip> |
7 |
> |
8 |
> Also looks like it's impossible to get WPA-PSK working with iwlwifi |
9 |
> driver - I didn't find any success story in Google. |
10 |
Then you haven't read mine^^. I actually have it working beautifully with |
11 |
WPA-PSK and unencrypted. Here's my wpa_supplicant.conf and my /etc/conf.d/net |
12 |
(with passwords removed, of course^^): |
13 |
|
14 |
/etc/wpa_supplicant/wpa_supplicant.conf: |
15 |
|
16 |
ctrl_interface=/var/run/wpa_supplicant |
17 |
ctrl_interface_group=wheel |
18 |
update_config=0 |
19 |
fast_reauth=1 |
20 |
ap_scan=1 |
21 |
|
22 |
|
23 |
network={ |
24 |
ssid="WLAN1" |
25 |
psk="<key>" |
26 |
pairwise=TKIP |
27 |
group=TKIP |
28 |
priority=5 |
29 |
} |
30 |
|
31 |
network={ |
32 |
ssid="WLAN2" |
33 |
psk="<key>" |
34 |
pairwise=TKIP |
35 |
group=TKIP |
36 |
priority=500 |
37 |
} |
38 |
|
39 |
|
40 |
network={ |
41 |
ssid="lrz" |
42 |
key_mgmt=NONE |
43 |
priority=500 |
44 |
} |
45 |
|
46 |
network={ |
47 |
key_mgmt=NONE |
48 |
priority=0 |
49 |
} |
50 |
|
51 |
/etc/conf.d/net (with comments): |
52 |
|
53 |
|
54 |
modules=("wpa_supplicant") |
55 |
wpa_supplicant_wlan0="-Dwext" # This, you need |
56 |
|
57 |
#preferred_aps=( "WLAN1","WLAN2" ) Do not set this: wpa_supplicant chooses |
58 |
#the APs itself |
59 |
|
60 |
#Network configuration |
61 |
config_WLAN1=( "192.168.178.25 netmask 255.255.255.0 broadcast 192.168.178.255" ) |
62 |
config_WLAN2=( "192.168.178.25 netmask 255.255.255.0 broadcast 192.168.178.255" ); |
63 |
# |
64 |
routes_WLAN1=( "default via 192.168.178.1" ) |
65 |
routes_WLAN2=( "default via 192.168.178.1" ) |
66 |
# |
67 |
dns_servers_WLAN1=( "192.168.178.1" ) |
68 |
dns_servers_WLAN2=( "192.168.178.1" ) |
69 |
# |
70 |
gateways_WLAN1=( "192.168.178.1" ) |
71 |
gateways_WLAN2=( "192.168.178.1" ) |
72 |
|
73 |
Also, I have a handy little script which I will attach. It stops the net.wlan0 |
74 |
initscript, unloads the iwl module and reloads the module. The initscript |
75 |
automatically restarts. |
76 |
|
77 |
HTH, |
78 |
Jan |
79 |
-- |
80 |
thenybble.de/blog/ -- four bits at a time |