CentOS users might have problems with WLAN on their laptops especially with BCM4311 802.11b/g WLAN chipsets. These can be solved by installing proprietary Linux driver by Broadcom.
- Laptop: Dell Vostro 1400
- Operating systems tested: CentOS 5.3, 5.4 (32 bit)
- WLAN device: Dell Wireless 1390 WLAN Mini-Card
- WLAN chipset: BCM4311 802.11b/g WLAN
By default CentOS installs WLAN hardware and associates it with internal b43 module. It fails to work with this network card (even WLAN LED won’t light up), so we need an original driver supplied by the hardware vendor. Luckily, Broadcom provides such.
Let’s download a package for appropriate architecture (in my case it’s 32 bit). Due to licencing issues CentOS community can not make a RPM package for your convenience, so we’ll have to compile and load driver ourselves. Let’s start.
Create a directory tree broadcom/driver under your home directory (e. g. ~/broadcom/driver) and unpack downloaded archive. You should then see these files and directories:
lib/ src/ Makefile
Great. We have our driver source ready. Now we must prepare our OS. By default CentOS doesn’t install Kernel development package, headers and required compiliers. We setup them running:
yum install kernel-headers kernel-devel gcc
Let’s cd into our directory where we unpacked driver source:
And compile WLAN driver as Kernel module:
make -C /lib/modules/`uname -r`/build M=`pwd`
NOTE! Start here after Kernel upgrade
Copy compilied module to appropriate Kernel’s directory (this has to be done after each Kernel update):
cp wl.ko /lib/modules/`uname -r`/kernel/net/wireless/
Now we need to disable native CentOS WLAN driver called b43 running on eth1 device by default:
In case you ever tried legacy driver or ndiswrapper, make sure you remove them too:
rmmod bcm43xx; rmmod b43legacy; rmmod ndiswrapper
Blacklist them by adding these lines to /etc/modprobe.d/blacklist ar the bottom:
# get rid of the default kernel drivers blacklist b43 blacklist bcm43xx
Open /etc/modprobe.conf, find:
alias eth1 bcm43xx
And replace with:
alias eth1 wl
In the end add:
alias ieee80211_crypt_tkip ieee80211_crypt_tkip
depmod -a modprobe ieee80211_crypt_tkip; modprobe wl
Reboot system. Driver ready (LED should light up), now we need NetworkManager to deal with WLANs. First of all, disable network, because it manages network connections on CentOS by default:
chkconfig network off
Instead of network we use NetworkManager which has it’s own tools to deal with WPA encryption, so wpa_supplicant must be disabled:
chkconfig wpa_supplicant off
Make sure NetworkManager is enabled on startup:
chkconfig NetworkManager on
And start it now:
service NetworkManager start
Reboot your system. Enjoy fast WLAN!
This guide also available on CentOS wiki.