aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/driver-ops.h
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-06-29 14:51:23 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-29 14:51:23 -0400
commitc466d4efb86bb5aa327d6e43f62781a9faabfdae (patch)
tree16b2727b93adcc34b5b638975f00b4501b3062b2 /net/mac80211/driver-ops.h
parentmac80211: remove unnecessary check in ieee80211_dump_survey (diff)
downloadlinux-dev-c466d4efb86bb5aa327d6e43f62781a9faabfdae.tar.xz
linux-dev-c466d4efb86bb5aa327d6e43f62781a9faabfdae.zip
mac80211: add basic tracing to drv_get_survey
Reported-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r--net/mac80211/driver-ops.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index c33317320eee..14123dce544b 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -375,9 +375,14 @@ static inline int drv_get_survey(struct ieee80211_local *local, int idx,
struct survey_info *survey)
{
int ret = -EOPNOTSUPP;
+
+ trace_drv_get_survey(local, idx, survey);
+
if (local->ops->get_survey)
ret = local->ops->get_survey(&local->hw, idx, survey);
- /* trace_drv_get_survey(local, idx, survey, ret); */
+
+ trace_drv_return_int(local, ret);
+
return ret;
}