batman-adv: refactor wifi interface detection
authorMarek Lindner <mareklindner@neomailbox.ch>
Fri, 30 Sep 2016 13:21:02 +0000 (15:21 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 8 Nov 2016 18:02:37 +0000 (19:02 +0100)
commitf44a3ae9a2811cfd5321e0f72c02bc270410db64
treeab5bbaa3a44d898e9ede17cc38dadc056c789a98
parent88ffc7d0e2cdcd3d8ba603d51b81a65712899c6c
batman-adv: refactor wifi interface detection

The ELP protocol requires cfg80211 to auto-detect the WiFi througput
to a given neighbor. Use batadv_is_cfg80211_netdev() to determine
whether or not an interface is eligible.

Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bat_v_elp.c
net/batman-adv/hard-interface.c
net/batman-adv/hard-interface.h