summaryrefslogtreecommitdiffstats
path: root/net/wireless/reg.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-05-03 15:52:04 +0200
committerJohannes Berg <johannes.berg@intel.com>2016-05-12 11:16:40 +0200
commit53873f134d285191ef6435882d55837093a36c53 (patch)
treea49f49d0f940a902f2fe0aa271d12d66c98c7a34 /net/wireless/reg.c
parentcfg80211: remove erroneous comment (diff)
downloadlinux-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/reg.c')
-rw-r--r--net/wireless/reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index e271dea6bc02..5dbac3749738 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1639,7 +1639,7 @@ static void reg_leave_invalid_chans(struct wiphy *wiphy)
ASSERT_RTNL();
- list_for_each_entry(wdev, &rdev->wdev_list, list)
+ list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list)
if (!reg_wdev_chan_valid(wiphy, wdev))
cfg80211_leave(rdev, wdev);
}