Hey everyone,
I have a laptop with an Atheros AR9281 chipset and I am using BT4 beta. I would like to use the aircrack-ng suite with it. So to start I tried using the ath9k driver that comes with the the linux 2.6 kernel, but soon found out that it does not support injection.
Because of this I tried to install Madwifi-ng by following the instructions on this page:
aircrack-ng.org/doku.php?id=madwifi-ng
I followed the instructions as follows and here is the output:
Code:
root@bt:/# svn -r 3925 checkout svn.madwifi-project.org/madwifi/trunk/ madwifi-ng
A madwifi-ng/regression
A madwifi-ng/regression/ccmp
A madwifi-ng/regression/ccmp/test_ccmp.c
...
A madwifi-ng/patch-kernel/README
A madwifi-ng/BuildCaps.inc
U madwifi-ng
Fetching external item into 'madwifi-ng/tools/ath_info'
A madwifi-ng/tools/ath_info/ath_info.c
A madwifi-ng/tools/ath_info/Makefile
A madwifi-ng/tools/ath_info/README
A madwifi-ng/tools/ath_info/ath_info.8
A madwifi-ng/tools/ath_info/eeprom.h
U madwifi-ng/tools/ath_info
Checked out external at revision 3952.
Checked out revision 3925.
root@bt:/# cd madwifi-ng
root@bt:/madwifi-ng# wget patches.aircrack-ng.org/madwifi-ng-r3925.patch
--2009-03-05 12:45:38-- patches.aircrack-ng.org/madwifi-ng-r3925.patch
Resolving patches.aircrack-ng.org... 213.186.33.2
Connecting to patches.aircrack-ng.org|213.186.33.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1176 (1.1K) [text/plain]
Saving to: `madwifi-ng-r3925.patch'
100%[======================================>] 1,176 --.-K/s in 0s
2009-03-05 12:45:39 (108 MB/s) - `madwifi-ng-r3925.patch' saved [1176/1176]
root@bt:/madwifi-ng# patch -N -p 0 -i madwifi-ng-r3925.patch
patching file ath/if_ath.c
root@bt:/madwifi-ng# ./scripts/madwifi-unload
Unloading "ath_pci"
Unloading "wlan"
Unloading "ath_hal"
root@bt:/madwifi-ng# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.28.1/build SUBDIRS=/madwifi-ng modules
make[1]: Entering directory `/usr/src/linux-source-2.6.28.1'
CC [M] /madwifi-ng/ath/if_ath.o
CC [M] /madwifi-ng/ath/if_ath_radar.o
CC [M] /madwifi-ng/ath/if_ath_hal_extensions.o
...
LD [M] /madwifi-ng/net80211/wlan_scan_sta.o
LD [M] /madwifi-ng/net80211/wlan_scan_ap.o
Building modules, stage 2.
MODPOST 14 modules
CC /madwifi-ng/ath/ath_pci.mod.o
LD [M] /madwifi-ng/ath/ath_pci.ko
CC /madwifi-ng/ath_hal/ath_hal.mod.o
LD [M] /madwifi-ng/ath_hal/ath_hal.ko
...
CC /madwifi-ng/net80211/wlan_wep.mod.o
LD [M] /madwifi-ng/net80211/wlan_wep.ko
CC /madwifi-ng/net80211/wlan_xauth.mod.o
LD [M] /madwifi-ng/net80211/wlan_xauth.ko
make[1]: Leaving directory `/usr/src/linux-source-2.6.28.1'
make -C ./tools all || exit 1
make[1]: Entering directory `/madwifi-ng/tools'
for d in ath_info; do \
make -C $d || exit 1; \
done
make[2]: Entering directory `/madwifi-ng/tools/ath_info'
gcc -g -O2 -W -Wall -c ath_info.c
ath_info.c: In function 'main':
ath_info.c:2847: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
gcc -g -O2 -W -Wall -o ath_info ath_info.o
make[2]: Leaving directory `/madwifi-ng/tools/ath_info'
gcc -o athstats -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal -I../ath athstats.c
athstats.c: In function 'main':
athstats.c:289: warning: format not a string literal and no format arguments
athstats.c:291: warning: format not a string literal and no format arguments
athstats.c:311: warning: format not a string literal and no format arguments
athstats.c:313: warning: format not a string literal and no format arguments
athstats.c:348: warning: format not a string literal and no format arguments
gcc -o 80211stats -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal 80211stats.c
80211stats.c: In function 'main':
80211stats.c:287: warning: format not a string literal and no format arguments
gcc -o athkey -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athkey.c
gcc -o athchans -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athchans.c
gcc -o athctrl -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athctrl.c
gcc -o athdebug -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athdebug.c
gcc -o 80211debug -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal 80211debug.c
gcc -o wlanconfig -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal wlanconfig.c
wlanconfig.c: In function 'list_keys':
wlanconfig.c:779: warning: ignoring return value of 'system', declared with attribute warn_unused_result
wlanconfig.c: In function 'ieee80211_status':
wlanconfig.c:895: warning: ignoring return value of 'system', declared with attribute warn_unused_result
gcc -o wpakey -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal wpakey.c
make[1]: Leaving directory `/madwifi-ng/tools'
root@bt:/madwifi-ng# make install
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.28.1/build SUBDIRS=/madwifi-ng modules
make[1]: Entering directory `/usr/src/linux-source-2.6.28.1'
Building modules, stage 2.
MODPOST 14 modules
make[1]: Leaving directory `/usr/src/linux-source-2.6.28.1'
sh scripts/find-madwifi-modules.sh -r 2.6.28.1
for i in ath/ ath_hal/ ath_rate/ net80211/; do \
make -C $i install || exit 1; \
done
make[1]: Entering directory `/madwifi-ng/ath'
test -d //lib/modules/2.6.28.1/net || mkdir -p //lib/modules/2.6.28.1/net
install -m 0644 ath_pci.ko //lib/modules/2.6.28.1/net
make[1]: Leaving directory `/madwifi-ng/ath'
make[1]: Entering directory `/madwifi-ng/ath_hal'
test -d //lib/modules/2.6.28.1/net || mkdir -p //lib/modules/2.6.28.1/net
install -m 0644 ath_hal.ko //lib/modules/2.6.28.1/net
make[1]: Leaving directory `/madwifi-ng/ath_hal'
make[1]: Entering directory `/madwifi-ng/ath_rate'
for i in amrr/ onoe/ sample/ minstrel/; do \
make -C $i install || exit 1; \
done
make[2]: Entering directory `/madwifi-ng/ath_rate/amrr'
test -d //lib/modules/2.6.28.1/net || mkdir -p //lib/modules/2.6.28.1/net
install -m 0644 ath_rate_amrr.ko //lib/modules/2.6.28.1/net
make[2]: Leaving directory `/madwifi-ng/ath_rate/amrr'
make[2]: Entering directory `/madwifi-ng/ath_rate/onoe'
test -d //lib/modules/2.6.28.1/net || mkdir -p //lib/modules/2.6.28.1/net
install -m 0644 ath_rate_onoe.ko //lib/modules/2.6.28.1/net
make[2]: Leaving directory `/madwifi-ng/ath_rate/onoe'
make[2]: Entering directory `/madwifi-ng/ath_rate/sample'
test -d //lib/modules/2.6.28.1/net || mkdir -p //lib/modules/2.6.28.1/net
install -m 0644 ath_rate_sample.ko //lib/modules/2.6.28.1/net
make[2]: Leaving directory `/madwifi-ng/ath_rate/sample'
make[2]: Entering directory `/madwifi-ng/ath_rate/minstrel'
test -d //lib/modules/2.6.28.1/net || mkdir -p //lib/modules/2.6.28.1/net
install -m 0644 ath_rate_minstrel.ko //lib/modules/2.6.28.1/net
make[2]: Leaving directory `/madwifi-ng/ath_rate/minstrel'
make[1]: Leaving directory `/madwifi-ng/ath_rate'
make[1]: Entering directory `/madwifi-ng/net80211'
test -d //lib/modules/2.6.28.1/net || mkdir -p //lib/modules/2.6.28.1/net
for i in wlan.o wlan_wep.o wlan_tkip.o wlan_ccmp.o wlan_acl.o wlan_xauth.o wlan_scan_sta.o wlan_scan_ap.o; do \
f=`basename $i .o`; \
install -m 0644 $f.ko //lib/modules/2.6.28.1/net; \
done
make[1]: Leaving directory `/madwifi-ng/net80211'
(export KMODPATH=/lib/modules/2.6.28.1/net; /sbin/depmod -ae 2.6.28.1)
make -C ./tools all || exit 1
make[1]: Entering directory `/madwifi-ng/tools'
for d in ath_info; do \
make -C $d || exit 1; \
done
make[2]: Entering directory `/madwifi-ng/tools/ath_info'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/madwifi-ng/tools/ath_info'
make[1]: Leaving directory `/madwifi-ng/tools'
make -C ./tools install || exit 1
make[1]: Entering directory `/madwifi-ng/tools'
for d in ath_info; do \
make -C $d || exit 1; \
done
make[2]: Entering directory `/madwifi-ng/tools/ath_info'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/madwifi-ng/tools/ath_info'
install -d /usr/local/bin
for i in athstats 80211stats athkey athchans athctrl athdebug 80211debug wlanconfig wpakey; do \
install $i /usr/local/bin/$i; \
strip /usr/local/bin/$i; \
done
install -d /usr/local/man/man8
install -m 0644 man/*.8 /usr/local/man/man8
install ../scripts/madwifi-unload /usr/local/bin/madwifi-unload
for d in ath_info; do \
make -C $d install || exit 1; \
done
make[2]: Entering directory `/madwifi-ng/tools/ath_info'
install -d /usr/local/bin
install -m 755 ath_info /usr/local/bin
install -d /usr/local/share/man/man8
install -m 644 ath_info.8 /usr/local/share/man/man8
make[2]: Leaving directory `/madwifi-ng/tools/ath_info'
make[1]: Leaving directory `/madwifi-ng/tools'
root@bt:/madwifi-ng# depmod -ae
root@bt:/madwifi-ng# modprobe ath_pci
root@bt:/madwifi-ng# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
root@bt:/madwifi-ng#
As you can see I tried to load the module, but my card does not register.
So I looked at some of the troubleshooting tips, and I noticed the mini-PCI problem (Since my laptop has a switch for turning on/off the wireless card):
madwifi-project.org/wiki/UserDocs/MiniPCI
I tried using the RF kill feature, but that still did not register my card.
Code:
root@bt:/madwifi-ng#modprobe ath_pci rfkill=0
root@bt:/madwifi-ng# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
I have yet to try masking pin 13, but I was wondering if anybody had any idea as to what the problem might be.