mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
batman-adv: tt: look up wifi state of incoming interface in helper
batadv_tt_local_add() only needs to know whether the client was seen on a wifi interface. But it kept the net_device reference of the incoming interface alive until its own cleanup section, together with a "net" and an "in_dev" variable which are of no interest to the rest of the function. Move the lookup to a small helper which acquires and releases the net_device reference itself. Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
parent
799152bcf6
commit
3273a5cd2d
1 changed files with 29 additions and 12 deletions
Loading…
Add table
Add a link
Reference in a new issue