Introduction
This page is intended for describing tests that will help validating IBSS mode operation with the madwifi driver, especially beacon generation under various scenarios.
Test 1 : One node test
A single node is started. A monitor mode is used to log all 802.11 traffic. The following commands are used to create the adhoc interface:
modprobe ath_pci autocreate=none wlanconfig wlan0 create wlandev wifi0 wlanmode adhoc iwconfig wlan0 essid test channel 2 ifconfig wlan0 up
Expected result : beacons should be generated every 102.4ms and TSF should be incremented continuously, starting at a small value.
Test 2 : One node test, ifconfig down/up
Following the previous test, the interface is brought down and up again. The following commands are used:
ifconfig wlan0 down ifconfig wlan0 up
Expected result : beacons should be generated every 102.4ms and TSF should be incremented continuously, starting at a small value.
Test 3 : Two nodes test
A first node A is started. 2 minutes later, a second node B is started.
Expected behaviour : beacons should be generated every 102.4ms by either node A or node B and TSF & BSSID should be synchronized to node A.
Test 4 : Two nodes test, ifconfig down/up on node B
Following the previous test, the interface on node B is brought down and up again. The following commands are used:
ifconfig wlan0 down ifconfig wlan0 up
Expected behaviour : beacons should be generated every 102.4ms by either node A or node B and TSF & BSSID should be synchronized to node A.
Test 5 : Two nodes test, ifconfig down/up on node A
Following the previous test, the interface on node A is brought down and up again. The following commands are used:
ifconfig wlan0 down ifconfig wlan0 up
Expected behaviour : beacons should be generated every 102.4ms by either node A or node B and TSF & BSSID should be synchronized to node B.
Test 6 : Real IBSS merge test
Node A is started first and then node B in a way so that none of the node received beacons from the other node (antennas removed, txpower reduced, distance increased). Only node A is monitored. Now, change the environment so that they hear each other (put antennas again, txpower increased, distance reduced).
Expected behaviour : beacons should be generated every 102.4ms by either node A or node B and TSF & BSSID should be synchronized to node A.
