Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #651: configcapture.sh

File configcapture.sh, 1.0 kB (added by eaton.lists@gmail.com, 13 years ago)

Script to reproduce this problem, or something like it.

Line 
1
2 # This script sometimes works, and sometimes doesn't.  The
3 # driver tends to scan several times before associating.
4
5 modprobe -r ath_pci
6 modprobe -r ath_rate_sample
7 modprobe -r wlan_scan_sta
8 modprobe -r wlan_wep
9 modprobe -r wlan
10 modprobe -r ath_hal
11
12 modprobe ath_pci
13
14 iwconfig eth1 mode monitor
15 iwconfig eth1 channel 11
16 ifconfig eth1 up
17
18 wlanconfig ath1 create wlandev wifi0 wlanmode monitor
19 iwconfig ath1 channel 11
20 ifconfig ath1 up
21
22 cp /var/log/kern.log orig.log
23 #athdebug +recv_desc +recv
24 #80211debug +state +assoc +auth +input +scan
25 80211debug +scan
26 athdebug +recv_desc +recv
27
28 tcpdump -s 0 -i ath1 -w ath1.cap &
29 tcpdump -s 0 -i eth1 -w eth1.cap &
30
31 ifconfig ath0 up
32 iwconfig ath0 key XXXXXXXXXXXXXXXXXXXXXXXXXX
33 iwconfig ath0 channel 11
34 iwconfig ath0 essid fubar
35 iwpriv ath0 mode 3
36 iwpriv ath0 authmode 2
37 iwconfig ath0 ap 00:14:BF:78:BD:47
38
39 sleep 20
40 kill %1
41 kill %2
42 wlanconfig ath1 destroy
43 athdebug 0
44 80211debug 0
45 iwconfig ath0
46 sleep 5
47
48 cp /var/log/kern.log new.log
49 comm -3 orig.log new.log > kern.log
50 rm -f orig.log new.log