This page will show you how to get Madwifi-ng drivers to work on a Macbook Pro with AirPort Extreme That uses the Atheros chipset. This is only for people who want to enable injection and monitor mode support. If you do not need injection or monitor mode then just use madwifi drivers there is no need for you to patch them.

Step 1

Get The Tools needed to build the madwifi-ng drivers:

sudo apt-get install build-essential subversion automake autoconf

Step 2

Get The madwifi driver source and the patch for injection:

svn -r 3737 checkout http://svn.madwifi.org/madwifi/trunk/ madwifi-ng

wget http://patches.aircrack-ng.org/madwifi-ng-r3386v3.patch

Step 3

Patching the driver source:

cd madwifi-ng

patch -Np1 -i ../madwifi-ng-r3386v3.patch

When you run this it will say Hunk 2 failed this is normal.

Step 4

Compiling and uploading the drivers:

make

sudo make install

Step 5

Tweaking the install:

sudo sed -i~ 's/^exit 0/modprobe ath_pci\nexit 0/' /etc/rc.local

sudo sed -i~ 's/^exit 0/modprobe wlan_scan_sta\nexit 0/' /etc/rc.local

sudo sed -i~ 's/^exit 0/iwpriv ath0 bgscan 0\nexit 0/' /etc/rc.local

Finally, the MadWifi driver will prevent you from resuming after suspend-to-ram. To fix this, edit /etc/default/acpi-support and add the ath_pci driver to the MODULES variable, like so:

# ...
MODULES="ath_pci"

# ...

Now the Drivers should work just Reboot.

Madwifi-ng_on_Macbook_Pro (last edited 2008-06-27 10:15:31 by localhost)