## create two parent wlan devices wtap0, wtap1
goto tools/tools/wtap/wtap, and follow the commands below (may need the priority of super user) :
```
./wtap c 0
./wtap c 1
```
## create two child wlan devices (vap) wlan0, wlan1 in IBSS mode (with the same SSID)
Follow the commands below (may need the priority of super user) :
```
ifconfig wlan0 create wlandev wtap0 wlanmode hostap ssid test
ifconfig wlan1 create wlandev wtap1 wlanmode sta ssid test
ifconfig wlan2 create wlandev wtap2 wlanmode monitor
```
## use visibility tool to enable communications between wlan0, wlan1 and wlan2
goto tools/tools/wtap/vis_map, and follow the commands below (may need the priority of super user) :
```
./vis_map o
./vis_map a 0 1
./vis_map a 0 2
./vis_map a 1 0
./vis_map a 1 2
./vis_map a 2 0
./vis_map a 2 1
```
## bring up all interfaces
```
ifconfig wlan0 up
ifconfig wlan1 up
ifconfig wlan2 up
```
## perform tcpdump(1)
Perform tcpdump(1) with interface wlan2 (monitor), and check whether it can see all the packets flow between wlan0 (hostap) and wlan1 (sta). And check radiotap headers also.
```
tcpdump -i wlan2 -y IEEE802_11_RADIO
```