On Mon, 10. Mar, Sergey Kobzar spammed my inbox with 
<snip>
> My kernel is Linux 2.6.24-gentoo-r3.
> Unfortunately I can't emerge iwlwifi (but maybe it's not required?):
Yes, with 2.6.24, iwlwifi is not required anymore.
<snip>
> 
> Also looks like it's impossible to get WPA-PSK working with iwlwifi
> driver - I didn't find any success story in Google.
Then you haven't read mine^^. I actually have it working beautifully with
WPA-PSK and unencrypted. Here's my wpa_supplicant.conf and my /etc/conf.d/net
(with passwords removed, of course^^):

/etc/wpa_supplicant/wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=0
fast_reauth=1
ap_scan=1


network={
    ssid="WLAN1"
    psk="<key>"
    pairwise=TKIP
    group=TKIP
    priority=5
}

network={
    ssid="WLAN2"
    psk="<key>"
    pairwise=TKIP
    group=TKIP
    priority=500
}


network={
    ssid="lrz"
    key_mgmt=NONE
    priority=500
}

network={
    key_mgmt=NONE
    priority=0
}

/etc/conf.d/net (with comments):


modules=("wpa_supplicant")
wpa_supplicant_wlan0="-Dwext" # This, you need

#preferred_aps=( "WLAN1","WLAN2" ) Do not set this: wpa_supplicant chooses
#the APs itself

#Network configuration
config_WLAN1=( "192.168.178.25 netmask 255.255.255.0 broadcast 192.168.178.255" 
)
config_WLAN2=( "192.168.178.25 netmask 255.255.255.0 broadcast 192.168.178.255" 
);
#
routes_WLAN1=( "default via 192.168.178.1" )
routes_WLAN2=( "default via 192.168.178.1" )
#
dns_servers_WLAN1=( "192.168.178.1" )
dns_servers_WLAN2=( "192.168.178.1" )
#
gateways_WLAN1=( "192.168.178.1" )
gateways_WLAN2=( "192.168.178.1" )

Also, I have a handy little script which I will attach. It stops the net.wlan0
initscript, unloads the iwl module and reloads the module. The initscript
automatically restarts.

HTH,
Jan
-- 
thenybble.de/blog/ -- four bits at a time
#!/bin/bash

/etc/init.d/net.wlan0 stop
rmmod iwl3945
modprobe iwl3945

Attachment: pgpxOQGpqxSuB.pgp
Description: PGP signature

Reply via email to