B.A.T.M.A.N Archive on lore.kernel.org
 help / color / mirror / Atom feed
* How to run batman-adv on interfaces in AP / Station mode?
@ 2019-07-11  3:44 Ricardo Cerrato
  2019-07-11  6:48 ` Sven Eckelmann
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Cerrato @ 2019-07-11  3:44 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hello all!

I recently configured a mesh with two nodes running Debian and
batman-adv and two wireless adapters TP-LINK TL-WN422G configured in
IBSS mode, and to allow non-mesh clients (like my cellphone) to use
the mesh I had to use another wireless adapter (same TL-WN422G)
configured in AP mode and bridged to the mesh interface (bat0).
Recently I found in the FAQ:

"Can batman-adv run on interfaces in AP / Station / etc mode ?
Q: Can BATMAN advanced run on interfaces in AP / Station mode?
A: Yes, because batman-adv doesn't know anything about stuff below the
ethernet interface. So you could also use it over layer 2 ethernet
tunnels, wifi ap, wifi sta, wifi adhoc, ethernet or even write a
virtual interface which prints everything on paper and scans the paper
on the remote machine (but you should be fast or increase the ogm
interval)."

I guess it is possible use the same adapter as AP and mesh client..
I my tests I found the AP mode and IBSS modes are mutually exclusive,
but I didn't find examples on how to create a mesh without IBSS...

Could you provide and example of configuration or some information
about how to do this?

I would like to create a mesh and allow non-mesh clients (like any
mobile) to connect and use a messenger service that will run over that
mesh and it would be great if every node of the mesh (using one
TL-WN422G adapter) can be also an AP for any client.

The adapters have the following supported modes and combinations:

Supported interface modes:
 * IBSS
 * managed
 * AP
 * AP/VLAN
 * monitor
 * mesh point
 * P2P-client
 * P2P-GO
 * outside context of a BSS

valid interface combinations:
 * #{ managed, P2P-client } <= 2, #{ AP, mesh point, P2P-GO } <= 2,
   total <= 2, #channels <= 1

I'm using Debian Stretch on the nodes

Thanks in advance!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-12  3:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-11  3:44 How to run batman-adv on interfaces in AP / Station mode? Ricardo Cerrato
2019-07-11  6:48 ` Sven Eckelmann
2019-07-12  3:38   ` Ricardo Cerrato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox