diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2016-05-03 16:52:04 +0300 |
|---|---|---|
| committer | Lior David <liord@codeaurora.org> | 2016-11-18 01:20:15 +0200 |
| commit | ed8559eaeb2d950c0ac616cf0b69832186b07fea (patch) | |
| tree | 364171db617d342ed39d3aaf452b2b7f11992359 /include | |
| parent | 1e1700765225e4aa31d076f78c9937bd93509083 (diff) | |
cfg80211: make wdev_list accessible to drivers
There's no harm in having drivers read the list, since they can
use RCU protection or RTNL locking; allow this to not require
each and every driver to also implement its own bookkeeping.
CRs-Fixed: 1087922
Change-Id: I2f38b8ba1ddbe6041a4189f5d9b72c982f0fb367
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Git-commit: 53873f134d285191ef6435882d55837093a36c53
[liord@codeaurora.org: fix conflicts]
Signed-off-by: Lior David <liord@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/cfg80211.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index b89c9c2f7f6e..ab25e888a7c8 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -3219,6 +3219,9 @@ struct wiphy_iftype_ext_capab { * @vht_capa_mod_mask: Specify what VHT capabilities can be over-ridden. * If null, then none can be over-ridden. * + * @wdev_list: the list of associated (virtual) interfaces; this list must + * not be modified by the driver, but can be read with RTNL/RCU protection. + * * @max_acl_mac_addrs: Maximum number of MAC addresses that the device * supports for ACL. * @@ -3363,6 +3366,8 @@ struct wiphy { const struct ieee80211_ht_cap *ht_capa_mod_mask; const struct ieee80211_vht_cap *vht_capa_mod_mask; + struct list_head wdev_list; + /* the network namespace this phy lives in currently */ possible_net_t _net; |
