Let's say a packet comes from node A interface ath0 of node B, and there is a route on node B for the packet to go to node C, route which use the same interface ath0. In this case, you might want to add a cost to hop over the same wireless interface.
Ok, good idea. I quickly made a patch: http://www.open-mesh.net/changeset/1276
Feel free to test it. :-)
Regards, Marek
But how would batman choose the next hop if at every node there are two interfaces available. The ideal ofcourse would be 11a->11b->11a->11b->11a on each hop.
Regards
Kartik