Copy the packetspammer
binary to /usr/bin on the Tessel, then run the following commands:
iw dev wlan0 interface add mon0 type monitor
ifconfig wlan0 down
ifconfig mon0 up
iw mon0 set channel 11
packetspammer -d0 mon0 > /dev/null
In order to switch between b/g/n
iw dev wlan0 interface add mon0 type monitor
ifconfig wlan0 down
ifconfig mon0 up
iw mon0 set channel 11
iw wlan0 set bitrates legacy-2.4 1 2 11 //把b/g/n说明写在这
packetspammer -d0 mon0 > /dev/null
###b
iw wlan0 set bitrates legacy-2.4 1 2 11
###g
iw wlan0 set bitrates legacy-2.4 6 12 24
###n
iw dev wlan0 set bitrates mcs-2.4 10
##change transmit power
ifconfig wlan0 down
iw reg set BO
iwconfig wlan0 channel 13
iwconfig wlan0 txpower 20
ifconfig wlan0 up
iwconfig