Eddy Petrișor: wpa2-psk with aes on a broadcom wlan0 (2.6.24)
Update: I managed to find out why the wpa_action stuff was needed. Please ignore the lines written like One more update: it seems that the firmware needs to be in sync. I ended up using the wireless-2.6 kernel from the everything branch.
I just managed to get my wlan from my laptop to work with WPA2-PSK with AES with the free Broadcom driver (now named b43, formerly bcm43xx).
In order to do this I needed linux 2.6.24-1 from unstable and the b43 driver.
0b:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan mini-PCI (rev 01)
0b:00.0 0280: 14e4:4311 (rev 01)
bounty:/home/eddy# lsmod grep b43
b43 119976 0
rfkill 12816 3 rfkill_input,b43
mac80211 132236 1 b43
led_class 10120 1 b43
input_polldev 9872 1 b43
ssb 39428 2 b43,b44
pcmcia 45720 2 b43,ssb
pcmcia_core 46500 2 b43,pcmcia
firmware_class 15232 2 b43,pcmcia
This is the wpasupplicant.conf file that I used:bounty:/home/eddy# wpa_action wlan0 reload
wpa_action: reloading wpa_supplicant configuration file via HUP signal
bounty:/home/eddy# cat /etc/wpa_supplicant/wpasupplicant.conf grep -v '^\s*#' sed 's/psk=.*/psk=aaabbb___ENCRIPTED_SEE_wpa_password___cccddd/'
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network=
ssid="toblerone"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk=aaabbb___ENCRIPTED_SEE_wpa_password___cccddd
and this is the relevant interfaces area:auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpasupplicant.conf
wpa-ap-scan 2
This is what it looks like when is working:
And here's the result of a scan (relevant section):
bounty:/home/eddy# iwconfig wlan0
wlan0 IEEE 802.11g ESSID:"toblerone"
Mode:Managed Frequency:2.412 GHz Access Point: 00:1B:FC:45:33:70
Bit Rate=48 Mb/s Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Encryption key:1337-0000-C121-d73D-0207-RE41-0000-3210 [2]
Link Quality=98/100 Signal level=-36 dBm Noise level=-68 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Cell 02 - Address: 00:1B:FC:45:33:70
ESSID:"toblerone"
Mode:Master
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=93/100 Signal level=-42 dBm Noise level=-68 dBm
Encryption key:on
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:tsf=0000000072ff542d
and here is proof it works:bounty:/home/eddy# route -nWoooohooo! :-)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.77.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.77.254 0.0.0.0 UG 0 0 0 wlan0
bounty:/home/eddy# ping debian.org
PING debian.org (192.25.206.10) 56(84) bytes of data.
64 bytes from gluck.debian.org (192.25.206.10): icmp_seq=1 ttl=36 time=201 ms
64 bytes from gluck.debian.org (192.25.206.10): icmp_seq=2 ttl=36 time=199 ms
64 bytes from gluck.debian.org (192.25.206.10): icmp_seq=3 ttl=36 time=200 ms
--- debian.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 199.691/200.519/201.046/0.786 ms
Thanks to all people involved in b43 development and all the ones made this possible (Debian developers).
Posted from bed, via wlan.
Update: You need the firmware blob, which can be extracted from a Windows driver with bcm43xx-fwcutter (now called b43-fwcutter);
Update: it seems the b43 driver page (the entire linuxwireless.org site) went down sometime yesterday evening, since yesterday afternoon I was browsing through the site without any issues. (Note: I live in Europe, for reference)
The basic Debian debootstrap system is 180Mb or so. Embedded systems need a full GUI installation in 64Mb or less and a basic debootstrap-equivalent system of 10Mb or less.
After reading
I don't think the first trip ever made a mention in either of our blogs.
Funny how an exhausting trip tends to stem the care factor to write about
it afterwards...
Anyway, Sarah was in a fair bit of pain last night when she went to bed,
and despite taking 800mg of Ibuprofen, some amount of Oxycodone, and some
sleeping tablets, she was up again under 2 hours later, in agony.
The main concern was that the staph infection she'd apparently had in the
incision a few weeks prior hadn't been kicked fully by the antibiotics, and
was coming back.
So off we trotted to Stanford's ER, getting there around 1am. Fortunately it
was very quiet (not that it matters when you mention the magic words "chest
pain") and Sarah got straight in.
They did the usual battery of tests and decided to keep her in for
observation, so I trundled off home for some sleep at about 5am.
They told her she could go home at about 1:30pm. Apparently the problem was
muscle spasms, which can happen in some people after having heart surgery
(even this long after the surgery). The solution? Valium. The poor girl's
going to rattle soon with all these pills.
They did some blood work and there's no sign of the staph infection.
Whatever pain medication they gave Sarah intravenously today made her
extremely nauseous, and she was still concerned about the state of the
incision around the area that had been weeping previously, so we trekked back
in to Stanford this afternoon to see the cardiologist, who wasn't concerned
about the incision at all. In fact, he said the surgical doctor had been a
bit generous with pronouncing a staph infection in the incision two weeks
previously, saying that the swab they took at the time probably just picked
it up off Sarah's skin, where it's quite common to be found. So she may
never have had a staph infection in the first place.
A few days ago, I asked
after my 
Today, I orphaned
Serious business involving the vmsplice() exploit: The kernel is fixed, hopefully Debian security team will have a fix for production use soon. In the meantime,
Its translations aren't great, but would probably do in a pinch. They'll likely improve as Google improves its translation bots.
I also used it to to test out Google's code hosting, which is quite nice. The code is located here:
Today I've been mostly unwell. Although I have managed to write some minor new code, and watch a little bit of Doctor Who on DVD.
Recently several people have been ranting about Ruby on Rails. I like it, but I wouldn't use it for personal development in a hurry. Deployment is fiddly, and upgrades are annoying.
But one thing that I utterly condemn Rails for is helping to spread bad paging throughout the online world.
So, what is "bad paging" and why is it important? Well cool URLs don't change, right? "Bad paging" is any user-interface which presents you with a limited view upon a changing list of items which is non-bookmarkable.
Consider the following "list". Assume it represents your view of a collection of items numbering 100+. You may only view ten items at a time; clicking "next", or "previous", to navigate your viewport:
Great sunny winter time today over our area. Cold in the morning just as I like. Woke up early enough to have plenty of time in the morning.
That was the perfect day to try pushing off my running limits (currently a half-marathon in 2h30).
So, I ended up visiting Les Mesnuls, Mareil le Guyon, Bazoches sur Guyonne and all such nice names of my local area. This is