On Saturday 07 May 2016 16:08:35 contact wrote:
Hello,
I just got openwrt 15.05.1 with batman-adv 2016.1 on 3 picostation HP, this time a selected before the build of openwrt batman V option, I can see it when it ask for available routing algo ,
root@OpenWrt:/etc/init.d# cat /sys/kernel/debug/batman_adv/routing_algos Available routing algorithms:
- BATMAN_IV
- BATMAN_V
but when I do :
echo BATMAN_V > /sys/module/batman_adv/parameters/routing_algo
It does nothing, still on BATMAN_IV during session and on reboot ?
This module parameter only controls what routing algorithm is chosen when a new batman-adv interface is created. So if you already have created it then changing the parameter doesn't do anything to the already existing batman-adv interface. Also rebooting a device will reset it either to the default or to the one you've explicitly specified during the loading of the modules.
But you seem to use OpenWrt. It allows to specify the routing_algo in /etc/config/network and should be applied right before the batman-adv interface is created. You just have to make sure that you don't specify conflicting things. An example of a simple configuration is:
config interface 'batnet' option mtu '1532' option proto 'batadv' option mesh 'bat0' option routing_algo 'BATMAN_V'
The wireless configuration would then normally reference this batnet network:
config wifi-iface 'wmesh' option device 'radio0' option ifname 'adhoc0' option network 'batnet' option mode 'adhoc' option ssid 'mesh' option 'mcast_rate' '18000' option bssid '02:CA:FE:CA:CA:40'
This information was taken from Batman-adv-openwrt-config wiki page [1]
Kind regards, Sven
[1] https://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config