diff options
| author | Ilan Peer <ilan.peer@intel.com> | 2025-09-08 14:13:06 +0300 | 
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2025-09-19 11:26:23 +0200 | 
| commit | 04f17cfea2442ef2ed01da7ba1f686a58a50048e (patch) | |
| tree | 9d31a47b7e4fdf0cff206c3402acf9ce6b6a3b08 /net/mac80211/util.c | |
| parent | c7b5355b37a59c927b2374e9f783acd004d00960 (diff) | |
wifi: mac80211: Export an API to check if NAN is started
So it can be used by drivers to check if NAN Device interface
is started or not.
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250908140015.c69652f77eb6.Ie4f3d197e0706e742e3d97614fadc11b22adfbc6@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
| -rw-r--r-- | net/mac80211/util.c | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 9eb35e3b9e52..123842b841f2 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -4512,3 +4512,11 @@ void ieee80211_clear_tpe(struct ieee80211_parsed_tpe *tpe)  		       sizeof(tpe->psd_reg_client[i].power));  	}  } + +bool ieee80211_vif_nan_started(struct ieee80211_vif *vif) +{ +	struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); + +	return vif->type == NL80211_IFTYPE_NAN && sdata->u.nan.started; +} +EXPORT_SYMBOL_GPL(ieee80211_vif_nan_started); | 
