Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ilan Peer and committed by
Johannes Berg
04f17cfe c7b5355b

+14
+6
include/net/mac80211.h
··· 7838 7838 int n_vifs, 7839 7839 enum ieee80211_chanctx_switch_mode mode); 7840 7840 7841 + /** 7842 + * ieee80211_vif_nan_started - Return whether a NAN vif is started 7843 + * @vif: the vif 7844 + * Return: %true iff the vif is a NAN interface and NAN is started 7845 + */ 7846 + bool ieee80211_vif_nan_started(struct ieee80211_vif *vif); 7841 7847 #endif /* MAC80211_H */
+8
net/mac80211/util.c
··· 4512 4512 sizeof(tpe->psd_reg_client[i].power)); 4513 4513 } 4514 4514 } 4515 + 4516 + bool ieee80211_vif_nan_started(struct ieee80211_vif *vif) 4517 + { 4518 + struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); 4519 + 4520 + return vif->type == NL80211_IFTYPE_NAN && sdata->u.nan.started; 4521 + } 4522 + EXPORT_SYMBOL_GPL(ieee80211_vif_nan_started);