]> git.karo-electronics.de Git - karo-tx-linux.git/commit
batman-adv: additional checks for virtual interfaces on top of WiFi
authorMarek Lindner <mareklindner@neomailbox.ch>
Fri, 30 Sep 2016 13:21:04 +0000 (15:21 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 8 Nov 2016 18:02:38 +0000 (19:02 +0100)
commit5ed4a460a1d359e1e9e7f54f6c78dfa9d1586b4b
tree9b98f285285ac6a1292fc7296658cc4785a84bd1
parent10b1bbb46c6c8e571458a9a8913514dbebbaf20c
batman-adv: additional checks for virtual interfaces on top of WiFi

In a few situations batman-adv tries to determine whether a given interface
is a WiFi interface to enable specific WiFi optimizations. If the interface
batman-adv has been configured with is a virtual interface (e.g. VLAN) it
would not be properly detected as WiFi interface and thus not benefit from
the special WiFi treatment.
This patch changes that by peeking under the hood whenever a virtual
interface is in play.

Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
[sven.eckelmann@open-mesh.com: integrate in wifi_flags caching, retrieve
 namespace of link interface]
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/hard-interface.c
net/batman-adv/types.h