On Thu, Aug 25, 2011 at 09:36:14AM +0800, Yeoh Chun-Yeow wrote:
Although batman-adv is a layer 2 routing that works across multiple access
technologies (not so sure about other technologies, because it mainly use
for WiFi), but it only make senses if we configure the wireless interface
operating in adhoc or adhocdemo mode. If we configure the wireless interface
as Infrastructure mode, all the traffic will go to the AP first, even if we
can direct communicate between the two STAs.
Correct me if I am wrong.
Ideally, you have BATMAN on the AP as well as the STA. So you never do
STA->AP->STA hops between BATMAN nodes, you only do a STA->AP BATMAN
hop followed by a AP->STA BATMAN hop. Performing two BATMAN hops means
BATMAN knows the transmit quality of each of the two wireless hop, not
the combined transmit quality of the STA->AP->STA path. So BATMAN
running on the AP can then decide if it makes sense to take a
There is code to enforce this, i.e. blocking STA->AP->STA transfers,
in the development tree and it has been push upstream to be included
in the mainline kernel.