• Sven Eckelmann's avatar
    batman-adv: Cache the type of wifi device for each hardif · 10b1bbb4
    Sven Eckelmann authored
    batman-adv is requiring the type of wifi device in different contexts. Some
    of them can take the rtnl semaphore and some of them already have the
    semaphore taken. But even others don't allow that the semaphore will be
    taken.
    
    The data has to be retrieved when the hardif is added to batman-adv because
    some of the wifi information for an hardif will only be available with rtnl
    lock. It can then be cached in the batadv_hard_iface and the functions
    is_wifi_netdev and is_cfg80211_netdev can just compare the correct bits
    without imposing extra locking requirements.
    Signed-off-by: default avatarSven Eckelmann <sven.eckelmann@open-mesh.com>
    Signed-off-by: default avatarSimon Wunderlich <sw@simonwunderlich.de>
    10b1bbb4
translation-table.c 128 KB