Hi,
I've come to the end of my tethers with the linux driver for my Broadcom BC4311 wifi adapter on my laptop which is running Ubuntu Server 9.04.
I've installed ndiswrapper, a Windows driver and wpa_supplicant.
Here is my wpa_supplicant.conf file:-
Code:
network={
ssid="GTR"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=<my psk code>
}
which is stored in /etc.
If I run
Code:
sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
i get the following on the terminal
Code:
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1f:9f:d6:39:b7 (SSID='GTR' freq=2412 MHz)
Associated with 00:1f:9f:d6:39:b7
WPA: Key negotiation completed with 00:1f:9f:d6:39:b7 [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1f:9f:d6:39:b7 completed (auth) [id=0 id_str=]
and I can ping the server. If, on the other, hand I add the '-B' option to make it a daemon:-
Code:
sudo wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
or configure /etc/network/interface with a pre-up consisting of the same line (with the -B option) then I cannot ping the server!
I ran it as a daemon again, this time with the '-f' option to send it's output to a log file as follows:-
Code:
sudo wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -f/home/gareth/wpalog.txt
and the log file contained the following:-
Code:
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1f:9f:d6:39:b7 (SSID='GTR' freq=2412 MHz)
Associated with 00:1f:9f:d6:39:b7
WPA: Key negotiation completed with 00:1f:9f:d6:39:b7 [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1f:9f:d6:39:b7 completed (auth) [id=0 id_str=]
which is identical to what I received when I ran wpa_supplicant in the foreground!
Does anyone have any idea why I can ping this server when wpa_supplicant is running in the foreground but not when it's running as a daemon?
Many thanks in advance!
Bookmarks