diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-05-03 15:52:04 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-05-12 11:16:40 +0200 |
commit | 53873f134d285191ef6435882d55837093a36c53 (patch) | |
tree | a49f49d0f940a902f2fe0aa271d12d66c98c7a34 /net/wireless/util.c | |
parent | cfg80211: remove erroneous comment (diff) | |
download | linux-53873f134d285191ef6435882d55837093a36c53.tar.xz linux-53873f134d285191ef6435882d55837093a36c53.zip |
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 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index 7cfabd6e83c6..219bd197039e 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -986,7 +986,7 @@ void cfg80211_process_rdev_events(struct cfg80211_registered_device *rdev) ASSERT_RTNL(); - list_for_each_entry(wdev, &rdev->wdev_list, list) + list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) cfg80211_process_wdev_events(wdev); } @@ -1560,7 +1560,7 @@ int cfg80211_validate_beacon_int(struct cfg80211_registered_device *rdev, if (!beacon_int) return -EINVAL; - list_for_each_entry(wdev, &rdev->wdev_list, list) { + list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { if (!wdev->beacon_interval) continue; if (wdev->beacon_interval != beacon_int) { |