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)
commit73c7da3dae1e7cd8febeab13767b2698b84dfa15
tree257a9c5d23be6099b557eb8a829908cb33758060
parent8f20542386c57bc5f40a09e38d2772d84c0b2afa
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