You are not logged in.

#1 2012-03-11 15:28:47

clappboard
Member
Registered: 2011-11-26
Posts: 39

Connecting to a wifi network using wpa_supplicant, brcmsmac

Hi guys,
I've posted a couple of other topics related to this, and I've narrowed down the problem.  I've written a quick bash script to take care of the problem:

gksudo pkill wpa_supplicant
sudo pkill dhcpcd
sudo rmmod brcmsmac
sudo modprobe brcmsmac
sudo ip link set wlan0 up
sudo wpa_supplicant -B -i wlan0 -Dwext -c /etc/wpa_supplicant.conf
sleep 3
sudo dhcpcd wlan0

Could anyone provide some insight into this?  Maybe a cause, or even just a cleaner way to do it?  Another issue is that when I first boot up, the dhcpcd wlan0 command hangs at

dhcpcd[#]: version 5.5.4 starting
dhcpcd[#]: wlan0: waiting for carrier

and I have to either wait for it to timeout or ^C to kill it, then run the script again.
Thanks a lot, any help at all is welcome and appreciated smile


I also go by 'clappy.'

Offline

#2 2012-03-11 17:13:49

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Connecting to a wifi network using wpa_supplicant, brcmsmac

You should check whether you actually authenticated with WPA:

$ wpa_cli status
Selected interface 'intel'
bssid=xx:xx:xx:xx:xx:xx
ssid=Zeus 802.11n
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=10.0.0.5

Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB