aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/cfg80211.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 90f9bfa3bfc2..dba7874d1963 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1059,6 +1059,17 @@ static inline void *wiphy_priv(struct wiphy *wiphy)
1059} 1059}
1060 1060
1061/** 1061/**
1062 * priv_to_wiphy - return the wiphy containing the priv
1063 *
1064 * @priv: a pointer previously returned by wiphy_priv
1065 */
1066static inline struct wiphy *priv_to_wiphy(void *priv)
1067{
1068 BUG_ON(!priv);
1069 return container_of(priv, struct wiphy, priv);
1070}
1071
1072/**
1062 * set_wiphy_dev - set device pointer for wiphy 1073 * set_wiphy_dev - set device pointer for wiphy
1063 * 1074 *
1064 * @wiphy: The wiphy whose device to bind 1075 * @wiphy: The wiphy whose device to bind