diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-11-25 14:30:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-21 18:38:54 -0500 |
commit | 12375ef933fa8271396ed0c1e318cb1bd2e2689d (patch) | |
tree | b05ccc4573cb8f0a1b89edeeae7e6c5805f75f67 /net/mac80211/driver-ops.h | |
parent | 47846c9b0c10808d9337d2e7d09361f3e0a0a71a (diff) |
mac80211: trace interface name
It's not all that useful to have the vif/sdata pointer,
we'd rather refer to the interfaces by their name.
Signed-off-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.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index a4002657dac5..727e4cf7b8a6 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h | |||
@@ -39,7 +39,7 @@ static inline int drv_add_interface(struct ieee80211_local *local, | |||
39 | struct ieee80211_if_init_conf *conf) | 39 | struct ieee80211_if_init_conf *conf) |
40 | { | 40 | { |
41 | int ret = local->ops->add_interface(&local->hw, conf); | 41 | int ret = local->ops->add_interface(&local->hw, conf); |
42 | trace_drv_add_interface(local, conf->vif, ret); | 42 | trace_drv_add_interface(local, vif_to_sdata(conf->vif), ret); |
43 | return ret; | 43 | return ret; |
44 | } | 44 | } |
45 | 45 | ||
@@ -47,7 +47,7 @@ static inline void drv_remove_interface(struct ieee80211_local *local, | |||
47 | struct ieee80211_if_init_conf *conf) | 47 | struct ieee80211_if_init_conf *conf) |
48 | { | 48 | { |
49 | local->ops->remove_interface(&local->hw, conf); | 49 | local->ops->remove_interface(&local->hw, conf); |
50 | trace_drv_remove_interface(local, conf->vif); | 50 | trace_drv_remove_interface(local, vif_to_sdata(conf->vif)); |
51 | } | 51 | } |
52 | 52 | ||
53 | static inline int drv_config(struct ieee80211_local *local, u32 changed) | 53 | static inline int drv_config(struct ieee80211_local *local, u32 changed) |
@@ -58,13 +58,13 @@ static inline int drv_config(struct ieee80211_local *local, u32 changed) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | static inline void drv_bss_info_changed(struct ieee80211_local *local, | 60 | static inline void drv_bss_info_changed(struct ieee80211_local *local, |
61 | struct ieee80211_vif *vif, | 61 | struct ieee80211_sub_if_data *sdata, |
62 | struct ieee80211_bss_conf *info, | 62 | struct ieee80211_bss_conf *info, |
63 | u32 changed) | 63 | u32 changed) |
64 | { | 64 | { |
65 | if (local->ops->bss_info_changed) | 65 | if (local->ops->bss_info_changed) |
66 | local->ops->bss_info_changed(&local->hw, vif, info, changed); | 66 | local->ops->bss_info_changed(&local->hw, &sdata->vif, info, changed); |
67 | trace_drv_bss_info_changed(local, vif, info, changed); | 67 | trace_drv_bss_info_changed(local, sdata, info, changed); |
68 | } | 68 | } |
69 | 69 | ||
70 | static inline u64 drv_prepare_multicast(struct ieee80211_local *local, | 70 | static inline u64 drv_prepare_multicast(struct ieee80211_local *local, |
@@ -106,12 +106,13 @@ static inline int drv_set_tim(struct ieee80211_local *local, | |||
106 | } | 106 | } |
107 | 107 | ||
108 | static inline int drv_set_key(struct ieee80211_local *local, | 108 | static inline int drv_set_key(struct ieee80211_local *local, |
109 | enum set_key_cmd cmd, struct ieee80211_vif *vif, | 109 | enum set_key_cmd cmd, |
110 | struct ieee80211_sub_if_data *sdata, | ||
110 | struct ieee80211_sta *sta, | 111 | struct ieee80211_sta *sta, |
111 | struct ieee80211_key_conf *key) | 112 | struct ieee80211_key_conf *key) |
112 | { | 113 | { |
113 | int ret = local->ops->set_key(&local->hw, cmd, vif, sta, key); | 114 | int ret = local->ops->set_key(&local->hw, cmd, &sdata->vif, sta, key); |
114 | trace_drv_set_key(local, cmd, vif, sta, key, ret); | 115 | trace_drv_set_key(local, cmd, sdata, sta, key, ret); |
115 | return ret; | 116 | return ret; |
116 | } | 117 | } |
117 | 118 | ||
@@ -179,13 +180,13 @@ static inline int drv_set_rts_threshold(struct ieee80211_local *local, | |||
179 | } | 180 | } |
180 | 181 | ||
181 | static inline void drv_sta_notify(struct ieee80211_local *local, | 182 | static inline void drv_sta_notify(struct ieee80211_local *local, |
182 | struct ieee80211_vif *vif, | 183 | struct ieee80211_sub_if_data *sdata, |
183 | enum sta_notify_cmd cmd, | 184 | enum sta_notify_cmd cmd, |
184 | struct ieee80211_sta *sta) | 185 | struct ieee80211_sta *sta) |
185 | { | 186 | { |
186 | if (local->ops->sta_notify) | 187 | if (local->ops->sta_notify) |
187 | local->ops->sta_notify(&local->hw, vif, cmd, sta); | 188 | local->ops->sta_notify(&local->hw, &sdata->vif, cmd, sta); |
188 | trace_drv_sta_notify(local, vif, cmd, sta); | 189 | trace_drv_sta_notify(local, sdata, cmd, sta); |
189 | } | 190 | } |
190 | 191 | ||
191 | static inline int drv_conf_tx(struct ieee80211_local *local, u16 queue, | 192 | static inline int drv_conf_tx(struct ieee80211_local *local, u16 queue, |
@@ -239,16 +240,16 @@ static inline int drv_tx_last_beacon(struct ieee80211_local *local) | |||
239 | } | 240 | } |
240 | 241 | ||
241 | static inline int drv_ampdu_action(struct ieee80211_local *local, | 242 | static inline int drv_ampdu_action(struct ieee80211_local *local, |
242 | struct ieee80211_vif *vif, | 243 | struct ieee80211_sub_if_data *sdata, |
243 | enum ieee80211_ampdu_mlme_action action, | 244 | enum ieee80211_ampdu_mlme_action action, |
244 | struct ieee80211_sta *sta, u16 tid, | 245 | struct ieee80211_sta *sta, u16 tid, |
245 | u16 *ssn) | 246 | u16 *ssn) |
246 | { | 247 | { |
247 | int ret = -EOPNOTSUPP; | 248 | int ret = -EOPNOTSUPP; |
248 | if (local->ops->ampdu_action) | 249 | if (local->ops->ampdu_action) |
249 | ret = local->ops->ampdu_action(&local->hw, vif, action, | 250 | ret = local->ops->ampdu_action(&local->hw, &sdata->vif, action, |
250 | sta, tid, ssn); | 251 | sta, tid, ssn); |
251 | trace_drv_ampdu_action(local, vif, action, sta, tid, ssn, ret); | 252 | trace_drv_ampdu_action(local, sdata, action, sta, tid, ssn, ret); |
252 | return ret; | 253 | return ret; |
253 | } | 254 | } |
254 | 255 | ||