Better driver for BCM4322 802.11a/b/g/n in Ubuntu 10.10

In Ubuntu 10.10, Broadcom driver is old, therefore it's full of bugs, and totally unusable for current cards, like BCM4322. Upgrade it.

After several connection problems in Ubuntu 10.10 with the recommended STA driver (in restricted drivers), I decided to somehow solve it. The result: a working BCM4322, with "n" speed.

How: Remove dell_laptop and wl modules, if there present.

rmmod wl rmmod dell_laptop

Get the latest driver from http://www.broadcom.com/support/802.11/linux_sta.php%5B%5E1%5D - as I'm writing these lines, it's hybrid-portsrc_x86_64-v5_100_82_38.

To download and install, use the following lines:

#!/bin/bash
VERSION="hybrid-portsrc_x86_64-v5_100_82_38"

mkdir broadcom_sta_$VERSION
cd broadcom_sta_$VERSION
wget http://www.broadcom.com/docs/linux_sta/$VERSION.tar.gz
tar xf $VERSION.tar.gz
make

Install standard Ubuntu Broadcom driver first. This is a DKMS driver, meaning, it will automatically upgrade with every kernel update as well.

To replace the default driver follow the steps above. You'll find the default driver at

/lib/modules/`uname -r`/updates/dkms/wl.ko

To update, first remove the current driver:

rmmod wl

Then overwrite the /lib... file with the compiled, and run:

depmod -a
modprobe wl

(Oh, by the way: this entry was written by Peter Molnar, and originally posted on petermolnar dot net.)