Compat-wireless

From BackTrack Linux
Jump to: navigation, search

Compiling Compat Wireless Drivers with Injection Patches

The compat-wireless drivers are constantly being updated, and may provide functionality that the current stock kernel drivers in BackTrack do not.

This guide is for people who would like to try the compat-wireless drivers and apply all the needed patched required for wireless injection. Note that we use the 2010-11-07 compat-wireless release as an example, as it was tested well against our patches. You may try a more recent version of compat-wireless, however your mileage may vary. We will try to keep our patch base updated to the best of our abilities).

cd /usr/src/
wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-11-07.tar.bz2
tar jxpf compat-wireless-*
wget http://www.backtrack-linux.org/patches/wireless-patches-2.6.35.8.tar.gz
tar xpf wireless-patches-2.6.35.8.tar.gz
cd compat-wireless-*

Apply the wireless injection patches:

patch -p1 < ../wireless-patches/404-ath_regd_optional.patch
patch -p1 < ../wireless-patches/ar9170_regdomain_override.patch
patch -p1 < ../wireless-patches/ath.patch
patch -p1 < ../wireless-patches/ath5k_regdomain_override.patch
patch -p0 < ../wireless-patches/ath9k_injection_fix.patch 
patch -p1 < ../wireless-patches/channel-negative-one-maxim.patch
patch -p1 < ../wireless-patches/mac80211_2.6.32.2-wl_frag+ack_radiotap.patch
patch -p1 < ../wireless-patches/rtl8187-mac80211-injection-speed-2.6.30-rc3.patch
patch -p0 < ../wireless-patches/zd1211rw-inject+dbi-fix-2.6.26.patch
patch -p0 < ../wireless-patches/zd1211rw.patch 

At this point you can decide to compile the whole compat-wireless driver-set, or just a single driver. If you know which driver you need, the second option is the better one. If you do not enter a specific driver with the "driver select" script, all drivers will be compiled.

./scripts/driver-select {required driver} # use this command to select a single driver to compile, rather than the whole package.

Compile and install the drivers:

make
make install
make wlunload