OpenWrt Forum Archive

Topic: adhoc madwifi tips

The content of this topic has been archived on 6 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I use kamikaze in a mesh network. Each node is configured in adhoc mode.
Broadcom hardware have no problem, while atheros card (meraki, routerboard + CM9) have a lot of problems.

These are my configuration tips


0) compile kamikaze with rate control setted to sample. Edit package/madwifi/Makefile
RATE_CONTROL:=sample

1) Set diversity to 0 in /etc/config/wireless (broadcast goes into one antenna)
2) Set fixed bssid on all nodes (to stop divergency)
3) rts and frag to off (in mesh mode rts has to be set but with madwifi is hard...)
4) set channel (random madwifi segmentation if omitted)

---> /etc/config/wireless
config wifi-device  wifi0
        option type atheros
        option channel 1
        option diversity 0
        option txantenna 1
        option rxantenna 1
        option agmode 11g

config wifi-iface
        option device wifi0
        option mode adhoc
        option ssid XXX
        option hidden 0
        option encryption wep
        option key XXXXXXXXXX
        option bssid AA:BB:CC:DD:EE:FF
        option txpower 18
        #option rts 250
        #option frag 256

5) in /etc/sysctl.conf (for "ath_mgtstart: discard, no xmit buf" problem)
vm.min_free_kbytes = 10000

6) for "ath_mgtstart: discard, no xmit buf" problem and ramping problem
$> iwpriv ath0 uapsd 0

7) to alleviate ramping problem (see http://madwifi.org/ticket/1154)
$> iwpriv ath0 bintval 1000

8) set fixed rate on wireless interface
$> iwconfig ath0 rate 12M

Thanks, that is going to be helpful.
I'm doing some researchs in the meshnet field...
Now, I've got some problems with the second radio of my access point netgear wg302... for the madwifi to operate on 5Ghz band I need to do some other particular settings?
Thanks.

The discussion might have continued from here.