diff options
author | Beni Lev <beni.lev@intel.com> | 2012-08-27 05:49:39 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-18 04:53:38 -0400 |
commit | 4ee3e063f10acf6fd17c0ee6f1d0a95726e74cb2 (patch) | |
tree | 66b8846df1311155856710cabe811739451566ed /net/wireless/chan.c | |
parent | 14e8a3c47e808772a5ba8118ef1f9a8d604dbbe5 (diff) |
cfg80211: add cfg80211 exported function tracing
Also add tracing to the API functions that drivers
(and mac80211) can call in cfg80211.
Signed-off-by: Beni Lev <beni.lev@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/chan.c')
-rw-r--r-- | net/wireless/chan.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index 71c362587965..48febd2160ba 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c | |||
@@ -53,6 +53,8 @@ bool cfg80211_can_beacon_sec_chan(struct wiphy *wiphy, | |||
53 | struct ieee80211_channel *sec_chan; | 53 | struct ieee80211_channel *sec_chan; |
54 | int diff; | 54 | int diff; |
55 | 55 | ||
56 | trace_cfg80211_can_beacon_sec_chan(wiphy, chan, channel_type); | ||
57 | |||
56 | switch (channel_type) { | 58 | switch (channel_type) { |
57 | case NL80211_CHAN_HT40PLUS: | 59 | case NL80211_CHAN_HT40PLUS: |
58 | diff = 20; | 60 | diff = 20; |
@@ -61,20 +63,25 @@ bool cfg80211_can_beacon_sec_chan(struct wiphy *wiphy, | |||
61 | diff = -20; | 63 | diff = -20; |
62 | break; | 64 | break; |
63 | default: | 65 | default: |
66 | trace_cfg80211_return_bool(true); | ||
64 | return true; | 67 | return true; |
65 | } | 68 | } |
66 | 69 | ||
67 | sec_chan = ieee80211_get_channel(wiphy, chan->center_freq + diff); | 70 | sec_chan = ieee80211_get_channel(wiphy, chan->center_freq + diff); |
68 | if (!sec_chan) | 71 | if (!sec_chan) { |
72 | trace_cfg80211_return_bool(false); | ||
69 | return false; | 73 | return false; |
74 | } | ||
70 | 75 | ||
71 | /* we'll need a DFS capability later */ | 76 | /* we'll need a DFS capability later */ |
72 | if (sec_chan->flags & (IEEE80211_CHAN_DISABLED | | 77 | if (sec_chan->flags & (IEEE80211_CHAN_DISABLED | |
73 | IEEE80211_CHAN_PASSIVE_SCAN | | 78 | IEEE80211_CHAN_PASSIVE_SCAN | |
74 | IEEE80211_CHAN_NO_IBSS | | 79 | IEEE80211_CHAN_NO_IBSS | |
75 | IEEE80211_CHAN_RADAR)) | 80 | IEEE80211_CHAN_RADAR)) { |
81 | trace_cfg80211_return_bool(false); | ||
76 | return false; | 82 | return false; |
77 | 83 | } | |
84 | trace_cfg80211_return_bool(true); | ||
78 | return true; | 85 | return true; |
79 | } | 86 | } |
80 | EXPORT_SYMBOL(cfg80211_can_beacon_sec_chan); | 87 | EXPORT_SYMBOL(cfg80211_can_beacon_sec_chan); |