Anyone have another solution or i am doing something wrong? I think that ebtables does not work because my interface (wireless) is not on bridge mode, i cannot set it for bridge mode because i need create a mesh network (the wireless interface have to be in ad hoc mode).
If you look on the list, there are patches to make BATMAN network namespace aware. You can then put the instances in different namespaces, and use veth's to connect them together in the topology you want.
Andrew