diff options
author | Zhao, Gang <gamerh2o@gmail.com> | 2014-04-21 00:53:03 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-04-25 11:33:04 -0400 |
commit | f26cbf401be935eec13da6fca7088b50d797d78b (patch) | |
tree | de83a716467102d1b674805ad94879a779c1683f /net/wireless/scan.c | |
parent | 1b8ec87aa077c527c9e3525e16098ca7efbc853d (diff) |
cfg80211: change wiphy_to_dev function name
Name wiphy_to_rdev is more accurate to describe what the function
does, i.e., return a pointer pointing to struct
cfg80211_registered_device.
Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/scan.c')
-rw-r--r-- | net/wireless/scan.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 6d6f082b7bb8..0f5da18cc619 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
@@ -238,11 +238,11 @@ void __cfg80211_scan_done(struct work_struct *wk) | |||
238 | void cfg80211_scan_done(struct cfg80211_scan_request *request, bool aborted) | 238 | void cfg80211_scan_done(struct cfg80211_scan_request *request, bool aborted) |
239 | { | 239 | { |
240 | trace_cfg80211_scan_done(request, aborted); | 240 | trace_cfg80211_scan_done(request, aborted); |
241 | WARN_ON(request != wiphy_to_dev(request->wiphy)->scan_req); | 241 | WARN_ON(request != wiphy_to_rdev(request->wiphy)->scan_req); |
242 | 242 | ||
243 | request->aborted = aborted; | 243 | request->aborted = aborted; |
244 | request->notified = true; | 244 | request->notified = true; |
245 | queue_work(cfg80211_wq, &wiphy_to_dev(request->wiphy)->scan_done_wk); | 245 | queue_work(cfg80211_wq, &wiphy_to_rdev(request->wiphy)->scan_done_wk); |
246 | } | 246 | } |
247 | EXPORT_SYMBOL(cfg80211_scan_done); | 247 | EXPORT_SYMBOL(cfg80211_scan_done); |
248 | 248 | ||
@@ -278,15 +278,15 @@ void cfg80211_sched_scan_results(struct wiphy *wiphy) | |||
278 | { | 278 | { |
279 | trace_cfg80211_sched_scan_results(wiphy); | 279 | trace_cfg80211_sched_scan_results(wiphy); |
280 | /* ignore if we're not scanning */ | 280 | /* ignore if we're not scanning */ |
281 | if (wiphy_to_dev(wiphy)->sched_scan_req) | 281 | if (wiphy_to_rdev(wiphy)->sched_scan_req) |
282 | queue_work(cfg80211_wq, | 282 | queue_work(cfg80211_wq, |
283 | &wiphy_to_dev(wiphy)->sched_scan_results_wk); | 283 | &wiphy_to_rdev(wiphy)->sched_scan_results_wk); |
284 | } | 284 | } |
285 | EXPORT_SYMBOL(cfg80211_sched_scan_results); | 285 | EXPORT_SYMBOL(cfg80211_sched_scan_results); |
286 | 286 | ||
287 | void cfg80211_sched_scan_stopped(struct wiphy *wiphy) | 287 | void cfg80211_sched_scan_stopped(struct wiphy *wiphy) |
288 | { | 288 | { |
289 | struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); | 289 | struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); |
290 | 290 | ||
291 | trace_cfg80211_sched_scan_stopped(wiphy); | 291 | trace_cfg80211_sched_scan_stopped(wiphy); |
292 | 292 | ||
@@ -526,7 +526,7 @@ struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy, | |||
526 | const u8 *ssid, size_t ssid_len, | 526 | const u8 *ssid, size_t ssid_len, |
527 | u16 capa_mask, u16 capa_val) | 527 | u16 capa_mask, u16 capa_val) |
528 | { | 528 | { |
529 | struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); | 529 | struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); |
530 | struct cfg80211_internal_bss *bss, *res = NULL; | 530 | struct cfg80211_internal_bss *bss, *res = NULL; |
531 | unsigned long now = jiffies; | 531 | unsigned long now = jiffies; |
532 | 532 | ||
@@ -919,7 +919,7 @@ cfg80211_inform_bss_width(struct wiphy *wiphy, | |||
919 | rcu_assign_pointer(tmp.pub.beacon_ies, ies); | 919 | rcu_assign_pointer(tmp.pub.beacon_ies, ies); |
920 | rcu_assign_pointer(tmp.pub.ies, ies); | 920 | rcu_assign_pointer(tmp.pub.ies, ies); |
921 | 921 | ||
922 | res = cfg80211_bss_update(wiphy_to_dev(wiphy), &tmp, | 922 | res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, |
923 | rx_channel == channel); | 923 | rx_channel == channel); |
924 | if (!res) | 924 | if (!res) |
925 | return NULL; | 925 | return NULL; |
@@ -991,7 +991,7 @@ cfg80211_inform_bss_width_frame(struct wiphy *wiphy, | |||
991 | tmp.pub.beacon_interval = le16_to_cpu(mgmt->u.probe_resp.beacon_int); | 991 | tmp.pub.beacon_interval = le16_to_cpu(mgmt->u.probe_resp.beacon_int); |
992 | tmp.pub.capability = le16_to_cpu(mgmt->u.probe_resp.capab_info); | 992 | tmp.pub.capability = le16_to_cpu(mgmt->u.probe_resp.capab_info); |
993 | 993 | ||
994 | res = cfg80211_bss_update(wiphy_to_dev(wiphy), &tmp, | 994 | res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, |
995 | rx_channel == channel); | 995 | rx_channel == channel); |
996 | if (!res) | 996 | if (!res) |
997 | return NULL; | 997 | return NULL; |
@@ -1007,7 +1007,7 @@ EXPORT_SYMBOL(cfg80211_inform_bss_width_frame); | |||
1007 | 1007 | ||
1008 | void cfg80211_ref_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) | 1008 | void cfg80211_ref_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) |
1009 | { | 1009 | { |
1010 | struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); | 1010 | struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); |
1011 | struct cfg80211_internal_bss *bss; | 1011 | struct cfg80211_internal_bss *bss; |
1012 | 1012 | ||
1013 | if (!pub) | 1013 | if (!pub) |
@@ -1023,7 +1023,7 @@ EXPORT_SYMBOL(cfg80211_ref_bss); | |||
1023 | 1023 | ||
1024 | void cfg80211_put_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) | 1024 | void cfg80211_put_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) |
1025 | { | 1025 | { |
1026 | struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); | 1026 | struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); |
1027 | struct cfg80211_internal_bss *bss; | 1027 | struct cfg80211_internal_bss *bss; |
1028 | 1028 | ||
1029 | if (!pub) | 1029 | if (!pub) |
@@ -1039,7 +1039,7 @@ EXPORT_SYMBOL(cfg80211_put_bss); | |||
1039 | 1039 | ||
1040 | void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) | 1040 | void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) |
1041 | { | 1041 | { |
1042 | struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); | 1042 | struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); |
1043 | struct cfg80211_internal_bss *bss; | 1043 | struct cfg80211_internal_bss *bss; |
1044 | 1044 | ||
1045 | if (WARN_ON(!pub)) | 1045 | if (WARN_ON(!pub)) |
@@ -1069,7 +1069,7 @@ cfg80211_get_dev_from_ifindex(struct net *net, int ifindex) | |||
1069 | if (!dev) | 1069 | if (!dev) |
1070 | return ERR_PTR(-ENODEV); | 1070 | return ERR_PTR(-ENODEV); |
1071 | if (dev->ieee80211_ptr) | 1071 | if (dev->ieee80211_ptr) |
1072 | rdev = wiphy_to_dev(dev->ieee80211_ptr->wiphy); | 1072 | rdev = wiphy_to_rdev(dev->ieee80211_ptr->wiphy); |
1073 | else | 1073 | else |
1074 | rdev = ERR_PTR(-ENODEV); | 1074 | rdev = ERR_PTR(-ENODEV); |
1075 | dev_put(dev); | 1075 | dev_put(dev); |