diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-05-03 16:52:04 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-05-12 12:16:40 +0300 |
commit | 53873f134d285191ef6435882d55837093a36c53 (patch) | |
tree | a49f49d0f940a902f2fe0aa271d12d66c98c7a34 /net/wireless/chan.c | |
parent | 8b9b2f06998f33bdd1774a9860ec60e945977384 (diff) | |
download | linux-53873f134d285191ef6435882d55837093a36c53.tar.xz |
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/chan.c')
-rw-r--r-- | net/wireless/chan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index a6631fb319c1..da49c0b1fd32 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c @@ -739,7 +739,7 @@ static bool cfg80211_ir_permissive_chan(struct wiphy *wiphy, * and thus fail the GO instantiation, consider only the interfaces of * the current registered device. */ - list_for_each_entry(wdev, &rdev->wdev_list, list) { + list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { struct ieee80211_channel *other_chan = NULL; int r1, r2; |