]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: add generic helper to check interface is running
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Thu, 20 Oct 2016 19:08:22 +0000 (20:08 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 27 Oct 2016 07:08:44 +0000 (09:08 +0200)
commit870ee86487661ff2dd9daee233fb1218051732a9
tree257a9c5d23be6099b557eb8a829908cb33758060
parent58c487b1fdb2f6fddb486512617ddbc33f1bcfb6
cfg80211: add generic helper to check interface is running

Add a helper using wdev to check if interface is running. This
deals with both non-netdev and netdev interfaces. In struct
wireless_dev replace 'p2p_started' and 'nan_started' by
'is_running' as those are mutually exclusive anyway, and unify
all the code to use wdev_running().

Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/core.c
net/wireless/nl80211.c