diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-06 21:56:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:32 -0400 |
commit | 4d0c8aead32ecdbe1310ad473b3637991f560865 (patch) | |
tree | 6d7bbfc1676e5cf4d21dd61fc5ace1c041622c2c /net/wireless/scan.c | |
parent | c1e6fb1aad0d4d4f032d46b6bab093a41c6c82bf (diff) |
cfg80211: properly name driver locking
Currently we call that cfg80211_put_dev(), but that is
misleading. With the new convention of using 'rdev' for
registered_device variables, also call that function
cfg80211_unlock_rdev().
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/scan.c')
-rw-r--r-- | net/wireless/scan.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 925399462a79..1625faf1de57 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
@@ -28,8 +28,6 @@ void cfg80211_scan_done(struct cfg80211_scan_request *request, bool aborted) | |||
28 | if (!dev) | 28 | if (!dev) |
29 | goto out; | 29 | goto out; |
30 | 30 | ||
31 | WARN_ON(request != wiphy_to_dev(request->wiphy)->scan_req); | ||
32 | |||
33 | /* | 31 | /* |
34 | * This must be before sending the other events! | 32 | * This must be before sending the other events! |
35 | * Otherwise, wpa_supplicant gets completely confused with | 33 | * Otherwise, wpa_supplicant gets completely confused with |
@@ -636,7 +634,7 @@ int cfg80211_wext_siwscan(struct net_device *dev, | |||
636 | } else | 634 | } else |
637 | nl80211_send_scan_start(rdev, dev); | 635 | nl80211_send_scan_start(rdev, dev); |
638 | out: | 636 | out: |
639 | cfg80211_put_dev(rdev); | 637 | cfg80211_unlock_rdev(rdev); |
640 | return err; | 638 | return err; |
641 | } | 639 | } |
642 | EXPORT_SYMBOL_GPL(cfg80211_wext_siwscan); | 640 | EXPORT_SYMBOL_GPL(cfg80211_wext_siwscan); |
@@ -945,7 +943,7 @@ int cfg80211_wext_giwscan(struct net_device *dev, | |||
945 | } | 943 | } |
946 | 944 | ||
947 | out: | 945 | out: |
948 | cfg80211_put_dev(rdev); | 946 | cfg80211_unlock_rdev(rdev); |
949 | return res; | 947 | return res; |
950 | } | 948 | } |
951 | EXPORT_SYMBOL_GPL(cfg80211_wext_giwscan); | 949 | EXPORT_SYMBOL_GPL(cfg80211_wext_giwscan); |