diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-05-03 09:52:04 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-05-12 05:16:40 -0400 |
commit | 53873f134d285191ef6435882d55837093a36c53 (patch) | |
tree | a49f49d0f940a902f2fe0aa271d12d66c98c7a34 /include/net | |
parent | 8b9b2f06998f33bdd1774a9860ec60e945977384 (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.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
-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 5f6e98ad21a2..63921672bed0 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -3189,6 +3189,9 @@ struct wiphy_vendor_command { | |||
3189 | * @vht_capa_mod_mask: Specify what VHT capabilities can be over-ridden. | 3189 | * @vht_capa_mod_mask: Specify what VHT capabilities can be over-ridden. |
3190 | * If null, then none can be over-ridden. | 3190 | * If null, then none can be over-ridden. |
3191 | * | 3191 | * |
3192 | * @wdev_list: the list of associated (virtual) interfaces; this list must | ||
3193 | * not be modified by the driver, but can be read with RTNL/RCU protection. | ||
3194 | * | ||
3192 | * @max_acl_mac_addrs: Maximum number of MAC addresses that the device | 3195 | * @max_acl_mac_addrs: Maximum number of MAC addresses that the device |
3193 | * supports for ACL. | 3196 | * supports for ACL. |
3194 | * | 3197 | * |
@@ -3328,6 +3331,8 @@ struct wiphy { | |||
3328 | const struct ieee80211_ht_cap *ht_capa_mod_mask; | 3331 | const struct ieee80211_ht_cap *ht_capa_mod_mask; |
3329 | const struct ieee80211_vht_cap *vht_capa_mod_mask; | 3332 | const struct ieee80211_vht_cap *vht_capa_mod_mask; |
3330 | 3333 | ||
3334 | struct list_head wdev_list; | ||
3335 | |||
3331 | /* the network namespace this phy lives in currently */ | 3336 | /* the network namespace this phy lives in currently */ |
3332 | possible_net_t _net; | 3337 | possible_net_t _net; |
3333 | 3338 | ||