Updated TODO (markdown)
[librecmc/open-ath9k-htc-firmware.wiki.git] / Testing.md
1 He we collect testcases for this driver or firmware.
2
3 # TDLS
4 From Csaba Kiralys [mail](http://patchwork.ozlabs.org/patch/380659/):
5 > Here it comes. I try to give a detailed description, although I suppose
6 > you don't need most of it 
7 > I have used two laptops, two TP-Link TL-WN722N USB devices, and a
8 > Linksys WAP54g AP.
9
10 > # 0) stop conflicting services, clean up files
11 > service network-manager stop
12 > killall wpa_supplicant
13 > killall dhclient
14 > rm -rf /run/wpa_supplicant
15
16 > # 1) on both nodes, start wpa_supplicant and connect to the same AP.
17 > # Conf files attached
18 > hostap/wpa_supplicant/wpa_supplicant -D nl80211 -i wlan2 -c wpa_supplicant_wap54g_WPA2.conf
19
20 > # 2) on each node, configure IP addresses (or start dhclient)
21 > ifconfig wlan2 $IP1
22 > ifconfig wlan2 $IP2
23
24 > # 3) start pinging the other node
25 > ping $IP2
26
27 > # 4) start pinging the AP
28 > ping $IPAP
29
30 > # 5) get MAC of node2's Atheros card
31 > # get it on node2, or directly on node1 from the arp cache
32 > arp -n
33
34 > # 6) on node1, start wpa_cli
35 > hostap/wpa_supplicant/wpa_cli -i wlan2
36
37 > # 7) on node1, in wpa_cli, start the TDLS setup
38 > tdls_setup <MAC2>
39
40 > # 8) verify that TDLS works
41 > # - ping time will reduce (in my case it went from 1.6 ms to 1 ms)
42 > # - ping time to the AP should remain the same
43 > # - node2's MAC will appear in ath9k_htc debugfs
44 > ls /sys/kernel/debug/ieee80211/phy1/netdev:wlan2/stations
45 > # - look inside the debugfs folder for more details
46
47 > # 9) stress test
48 > ping -f $IP2
49
50 > # 10) disable encryption in the AP and repeat the same with the "open" config file
51
52 > # pitfalls and notes
53 > - APs could interfere in various ways with the test. Some models could
54 > set the TDLS prohibit flag. Others (like my Huawei E587) could
55 > work at the beginning but deauthenticate the nodes after 20-30 seconds.
56 > - I didn't check 802.11n
57 > - I have used the stock 3.16.0 kernel as the base, since 
58 > wireless-testing with tag master-2014-08-11 gave kernel panic
59 > during wlan scan, even without my patch (but this is for another mail)
60 > - use wpa_passphrase to generate the wpa_supplicant WPA2 config file
61
62 > Csaba