aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-11-25 14:30:31 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-21 18:38:54 -0500
commit12375ef933fa8271396ed0c1e318cb1bd2e2689d (patch)
treeb05ccc4573cb8f0a1b89edeeae7e6c5805f75f67
parent47846c9b0c10808d9337d2e7d09361f3e0a0a71a (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>
-rw-r--r--net/mac80211/agg-rx.c6
-rw-r--r--net/mac80211/agg-tx.c7
-rw-r--r--net/mac80211/driver-ops.h29
-rw-r--r--net/mac80211/driver-trace.h38
-rw-r--r--net/mac80211/key.c4
-rw-r--r--net/mac80211/main.c3
-rw-r--r--net/mac80211/pm.c2
-rw-r--r--net/mac80211/rx.c2
-rw-r--r--net/mac80211/sta_info.c6
-rw-r--r--net/mac80211/util.c2
10 files changed, 49 insertions, 50 deletions
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c
index 37ecdeddd5ac..a978e666ed6f 100644
--- a/net/mac80211/agg-rx.c
+++ b/net/mac80211/agg-rx.c
@@ -41,8 +41,7 @@ void __ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid,
41 sta->sta.addr, tid); 41 sta->sta.addr, tid);
42#endif /* CONFIG_MAC80211_HT_DEBUG */ 42#endif /* CONFIG_MAC80211_HT_DEBUG */
43 43
44 if (drv_ampdu_action(local, &sta->sdata->vif, 44 if (drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_STOP,
45 IEEE80211_AMPDU_RX_STOP,
46 &sta->sta, tid, NULL)) 45 &sta->sta, tid, NULL))
47 printk(KERN_DEBUG "HW problem - can not stop rx " 46 printk(KERN_DEBUG "HW problem - can not stop rx "
48 "aggregation for tid %d\n", tid); 47 "aggregation for tid %d\n", tid);
@@ -280,8 +279,7 @@ void ieee80211_process_addba_request(struct ieee80211_local *local,
280 goto end; 279 goto end;
281 } 280 }
282 281
283 ret = drv_ampdu_action(local, &sta->sdata->vif, 282 ret = drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_START,
284 IEEE80211_AMPDU_RX_START,
285 &sta->sta, tid, &start_seq_num); 283 &sta->sta, tid, &start_seq_num);
286#ifdef CONFIG_MAC80211_HT_DEBUG 284#ifdef CONFIG_MAC80211_HT_DEBUG
287 printk(KERN_DEBUG "Rx A-MPDU request on tid %d result %d\n", tid, ret); 285 printk(KERN_DEBUG "Rx A-MPDU request on tid %d result %d\n", tid, ret);
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
index 209be60564ce..ceda36618d3c 100644
--- a/net/mac80211/agg-tx.c
+++ b/net/mac80211/agg-tx.c
@@ -144,7 +144,7 @@ int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,
144 *state = HT_AGG_STATE_REQ_STOP_BA_MSK | 144 *state = HT_AGG_STATE_REQ_STOP_BA_MSK |
145 (initiator << HT_AGG_STATE_INITIATOR_SHIFT); 145 (initiator << HT_AGG_STATE_INITIATOR_SHIFT);
146 146
147 ret = drv_ampdu_action(local, &sta->sdata->vif, 147 ret = drv_ampdu_action(local, sta->sdata,
148 IEEE80211_AMPDU_TX_STOP, 148 IEEE80211_AMPDU_TX_STOP,
149 &sta->sta, tid, NULL); 149 &sta->sta, tid, NULL);
150 150
@@ -303,8 +303,7 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid)
303 303
304 start_seq_num = sta->tid_seq[tid]; 304 start_seq_num = sta->tid_seq[tid];
305 305
306 ret = drv_ampdu_action(local, &sdata->vif, 306 ret = drv_ampdu_action(local, sdata, IEEE80211_AMPDU_TX_START,
307 IEEE80211_AMPDU_TX_START,
308 pubsta, tid, &start_seq_num); 307 pubsta, tid, &start_seq_num);
309 308
310 if (ret) { 309 if (ret) {
@@ -420,7 +419,7 @@ static void ieee80211_agg_tx_operational(struct ieee80211_local *local,
420 ieee80211_agg_splice_finish(local, sta, tid); 419 ieee80211_agg_splice_finish(local, sta, tid);
421 spin_unlock(&local->ampdu_lock); 420 spin_unlock(&local->ampdu_lock);
422 421
423 drv_ampdu_action(local, &sta->sdata->vif, 422 drv_ampdu_action(local, sta->sdata,
424 IEEE80211_AMPDU_TX_OPERATIONAL, 423 IEEE80211_AMPDU_TX_OPERATIONAL,
425 &sta->sta, tid, NULL); 424 &sta->sta, tid, NULL);
426} 425}
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
53static inline int drv_config(struct ieee80211_local *local, u32 changed) 53static 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
60static inline void drv_bss_info_changed(struct ieee80211_local *local, 60static 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
70static inline u64 drv_prepare_multicast(struct ieee80211_local *local, 70static 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
108static inline int drv_set_key(struct ieee80211_local *local, 108static 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
181static inline void drv_sta_notify(struct ieee80211_local *local, 182static 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
191static inline int drv_conf_tx(struct ieee80211_local *local, u16 queue, 192static 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
241static inline int drv_ampdu_action(struct ieee80211_local *local, 242static 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
diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h
index 7b155b947209..ee2d19a25ce1 100644
--- a/net/mac80211/driver-trace.h
+++ b/net/mac80211/driver-trace.h
@@ -25,10 +25,12 @@ static inline void trace_ ## name(proto) {}
25#define STA_PR_FMT " sta:%pM" 25#define STA_PR_FMT " sta:%pM"
26#define STA_PR_ARG __entry->sta_addr 26#define STA_PR_ARG __entry->sta_addr
27 27
28#define VIF_ENTRY __field(enum nl80211_iftype, vif_type) __field(void *, vif) 28#define VIF_ENTRY __field(enum nl80211_iftype, vif_type) __field(void *, sdata) \
29#define VIF_ASSIGN __entry->vif_type = vif ? vif->type : 0; __entry->vif = vif 29 __string(vif_name, sdata->dev ? sdata->dev->name : "<nodev>")
30#define VIF_PR_FMT " vif:%p(%d)" 30#define VIF_ASSIGN __entry->vif_type = sdata->vif.type; __entry->sdata = sdata; \
31#define VIF_PR_ARG __entry->vif, __entry->vif_type 31 __assign_str(vif_name, sdata->dev ? sdata->dev->name : "<nodev>")
32#define VIF_PR_FMT " vif:%s(%d)"
33#define VIF_PR_ARG __get_str(vif_name), __entry->vif_type
32 34
33TRACE_EVENT(drv_start, 35TRACE_EVENT(drv_start,
34 TP_PROTO(struct ieee80211_local *local, int ret), 36 TP_PROTO(struct ieee80211_local *local, int ret),
@@ -70,10 +72,10 @@ TRACE_EVENT(drv_stop,
70 72
71TRACE_EVENT(drv_add_interface, 73TRACE_EVENT(drv_add_interface,
72 TP_PROTO(struct ieee80211_local *local, 74 TP_PROTO(struct ieee80211_local *local,
73 struct ieee80211_vif *vif, 75 struct ieee80211_sub_if_data *sdata,
74 int ret), 76 int ret),
75 77
76 TP_ARGS(local, vif, ret), 78 TP_ARGS(local, sdata, ret),
77 79
78 TP_STRUCT__entry( 80 TP_STRUCT__entry(
79 LOCAL_ENTRY 81 LOCAL_ENTRY
@@ -85,7 +87,7 @@ TRACE_EVENT(drv_add_interface,
85 TP_fast_assign( 87 TP_fast_assign(
86 LOCAL_ASSIGN; 88 LOCAL_ASSIGN;
87 VIF_ASSIGN; 89 VIF_ASSIGN;
88 memcpy(__entry->addr, vif->addr, 6); 90 memcpy(__entry->addr, sdata->vif.addr, 6);
89 __entry->ret = ret; 91 __entry->ret = ret;
90 ), 92 ),
91 93
@@ -96,9 +98,9 @@ TRACE_EVENT(drv_add_interface,
96); 98);
97 99
98TRACE_EVENT(drv_remove_interface, 100TRACE_EVENT(drv_remove_interface,
99 TP_PROTO(struct ieee80211_local *local, struct ieee80211_vif *vif), 101 TP_PROTO(struct ieee80211_local *local, struct ieee80211_sub_if_data *sdata),
100 102
101 TP_ARGS(local, vif), 103 TP_ARGS(local, sdata),
102 104
103 TP_STRUCT__entry( 105 TP_STRUCT__entry(
104 LOCAL_ENTRY 106 LOCAL_ENTRY
@@ -109,7 +111,7 @@ TRACE_EVENT(drv_remove_interface,
109 TP_fast_assign( 111 TP_fast_assign(
110 LOCAL_ASSIGN; 112 LOCAL_ASSIGN;
111 VIF_ASSIGN; 113 VIF_ASSIGN;
112 memcpy(__entry->addr, vif->addr, 6); 114 memcpy(__entry->addr, sdata->vif.addr, 6);
113 ), 115 ),
114 116
115 TP_printk( 117 TP_printk(
@@ -163,11 +165,11 @@ TRACE_EVENT(drv_config,
163 165
164TRACE_EVENT(drv_bss_info_changed, 166TRACE_EVENT(drv_bss_info_changed,
165 TP_PROTO(struct ieee80211_local *local, 167 TP_PROTO(struct ieee80211_local *local,
166 struct ieee80211_vif *vif, 168 struct ieee80211_sub_if_data *sdata,
167 struct ieee80211_bss_conf *info, 169 struct ieee80211_bss_conf *info,
168 u32 changed), 170 u32 changed),
169 171
170 TP_ARGS(local, vif, info, changed), 172 TP_ARGS(local, sdata, info, changed),
171 173
172 TP_STRUCT__entry( 174 TP_STRUCT__entry(
173 LOCAL_ENTRY 175 LOCAL_ENTRY
@@ -291,11 +293,11 @@ TRACE_EVENT(drv_set_tim,
291 293
292TRACE_EVENT(drv_set_key, 294TRACE_EVENT(drv_set_key,
293 TP_PROTO(struct ieee80211_local *local, 295 TP_PROTO(struct ieee80211_local *local,
294 enum set_key_cmd cmd, struct ieee80211_vif *vif, 296 enum set_key_cmd cmd, struct ieee80211_sub_if_data *sdata,
295 struct ieee80211_sta *sta, 297 struct ieee80211_sta *sta,
296 struct ieee80211_key_conf *key, int ret), 298 struct ieee80211_key_conf *key, int ret),
297 299
298 TP_ARGS(local, cmd, vif, sta, key, ret), 300 TP_ARGS(local, cmd, sdata, sta, key, ret),
299 301
300 TP_STRUCT__entry( 302 TP_STRUCT__entry(
301 LOCAL_ENTRY 303 LOCAL_ENTRY
@@ -489,11 +491,11 @@ TRACE_EVENT(drv_set_rts_threshold,
489 491
490TRACE_EVENT(drv_sta_notify, 492TRACE_EVENT(drv_sta_notify,
491 TP_PROTO(struct ieee80211_local *local, 493 TP_PROTO(struct ieee80211_local *local,
492 struct ieee80211_vif *vif, 494 struct ieee80211_sub_if_data *sdata,
493 enum sta_notify_cmd cmd, 495 enum sta_notify_cmd cmd,
494 struct ieee80211_sta *sta), 496 struct ieee80211_sta *sta),
495 497
496 TP_ARGS(local, vif, cmd, sta), 498 TP_ARGS(local, sdata, cmd, sta),
497 499
498 TP_STRUCT__entry( 500 TP_STRUCT__entry(
499 LOCAL_ENTRY 501 LOCAL_ENTRY
@@ -654,12 +656,12 @@ TRACE_EVENT(drv_tx_last_beacon,
654 656
655TRACE_EVENT(drv_ampdu_action, 657TRACE_EVENT(drv_ampdu_action,
656 TP_PROTO(struct ieee80211_local *local, 658 TP_PROTO(struct ieee80211_local *local,
657 struct ieee80211_vif *vif, 659 struct ieee80211_sub_if_data *sdata,
658 enum ieee80211_ampdu_mlme_action action, 660 enum ieee80211_ampdu_mlme_action action,
659 struct ieee80211_sta *sta, u16 tid, 661 struct ieee80211_sta *sta, u16 tid,
660 u16 *ssn, int ret), 662 u16 *ssn, int ret),
661 663
662 TP_ARGS(local, vif, action, sta, tid, ssn, ret), 664 TP_ARGS(local, sdata, action, sta, tid, ssn, ret),
663 665
664 TP_STRUCT__entry( 666 TP_STRUCT__entry(
665 LOCAL_ENTRY 667 LOCAL_ENTRY
diff --git a/net/mac80211/key.c b/net/mac80211/key.c
index ac1a777674f6..32ee6d0ee34d 100644
--- a/net/mac80211/key.c
+++ b/net/mac80211/key.c
@@ -139,7 +139,7 @@ static void ieee80211_key_enable_hw_accel(struct ieee80211_key *key)
139 struct ieee80211_sub_if_data, 139 struct ieee80211_sub_if_data,
140 u.ap); 140 u.ap);
141 141
142 ret = drv_set_key(key->local, SET_KEY, &sdata->vif, sta, &key->conf); 142 ret = drv_set_key(key->local, SET_KEY, sdata, sta, &key->conf);
143 143
144 if (!ret) { 144 if (!ret) {
145 spin_lock_bh(&todo_lock); 145 spin_lock_bh(&todo_lock);
@@ -181,7 +181,7 @@ static void ieee80211_key_disable_hw_accel(struct ieee80211_key *key)
181 struct ieee80211_sub_if_data, 181 struct ieee80211_sub_if_data,
182 u.ap); 182 u.ap);
183 183
184 ret = drv_set_key(key->local, DISABLE_KEY, &sdata->vif, 184 ret = drv_set_key(key->local, DISABLE_KEY, sdata,
185 sta, &key->conf); 185 sta, &key->conf);
186 186
187 if (ret) 187 if (ret)
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index dbf05b4dd003..98320a94c270 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -222,8 +222,7 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
222 } 222 }
223 } 223 }
224 224
225 drv_bss_info_changed(local, &sdata->vif, 225 drv_bss_info_changed(local, sdata, &sdata->vif.bss_conf, changed);
226 &sdata->vif.bss_conf, changed);
227} 226}
228 227
229u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata) 228u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata)
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c
index 05ccaadb6a0e..05e161c3cbc5 100644
--- a/net/mac80211/pm.c
+++ b/net/mac80211/pm.c
@@ -65,7 +65,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw)
65 struct ieee80211_sub_if_data, 65 struct ieee80211_sub_if_data,
66 u.ap); 66 u.ap);
67 67
68 drv_sta_notify(local, &sdata->vif, STA_NOTIFY_REMOVE, 68 drv_sta_notify(local, sdata, STA_NOTIFY_REMOVE,
69 &sta->sta); 69 &sta->sta);
70 } 70 }
71 71
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index d0136e3da487..ebab696def5b 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -1021,7 +1021,7 @@ static void ap_sta_ps_start(struct sta_info *sta)
1021 1021
1022 atomic_inc(&sdata->bss->num_sta_ps); 1022 atomic_inc(&sdata->bss->num_sta_ps);
1023 set_sta_flags(sta, WLAN_STA_PS_STA); 1023 set_sta_flags(sta, WLAN_STA_PS_STA);
1024 drv_sta_notify(local, &sdata->vif, STA_NOTIFY_SLEEP, &sta->sta); 1024 drv_sta_notify(local, sdata, STA_NOTIFY_SLEEP, &sta->sta);
1025#ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG 1025#ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG
1026 printk(KERN_DEBUG "%s: STA %pM aid %d enters power save mode\n", 1026 printk(KERN_DEBUG "%s: STA %pM aid %d enters power save mode\n",
1027 sdata->name, sta->sta.addr, sta->sta.aid); 1027 sdata->name, sta->sta.addr, sta->sta.aid);
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index 294f1b8b1545..d1a77e79d7a9 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -397,7 +397,7 @@ int sta_info_insert(struct sta_info *sta)
397 struct ieee80211_sub_if_data, 397 struct ieee80211_sub_if_data,
398 u.ap); 398 u.ap);
399 399
400 drv_sta_notify(local, &sdata->vif, STA_NOTIFY_ADD, &sta->sta); 400 drv_sta_notify(local, sdata, STA_NOTIFY_ADD, &sta->sta);
401 sdata = sta->sdata; 401 sdata = sta->sdata;
402 } 402 }
403 403
@@ -537,7 +537,7 @@ static void __sta_info_unlink(struct sta_info **sta)
537 struct ieee80211_sub_if_data, 537 struct ieee80211_sub_if_data,
538 u.ap); 538 u.ap);
539 539
540 drv_sta_notify(local, &sdata->vif, STA_NOTIFY_REMOVE, 540 drv_sta_notify(local, sdata, STA_NOTIFY_REMOVE,
541 &(*sta)->sta); 541 &(*sta)->sta);
542 sdata = (*sta)->sdata; 542 sdata = (*sta)->sdata;
543 } 543 }
@@ -876,7 +876,7 @@ void ieee80211_sta_ps_deliver_wakeup(struct sta_info *sta)
876 struct ieee80211_local *local = sdata->local; 876 struct ieee80211_local *local = sdata->local;
877 int sent, buffered; 877 int sent, buffered;
878 878
879 drv_sta_notify(local, &sdata->vif, STA_NOTIFY_AWAKE, &sta->sta); 879 drv_sta_notify(local, sdata, STA_NOTIFY_AWAKE, &sta->sta);
880 880
881 if (!skb_queue_empty(&sta->ps_tx_buf)) 881 if (!skb_queue_empty(&sta->ps_tx_buf))
882 sta_info_clear_tim_bit(sta); 882 sta_info_clear_tim_bit(sta);
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index d45760eae6c7..d54dbe8e09ba 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1066,7 +1066,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
1066 struct ieee80211_sub_if_data, 1066 struct ieee80211_sub_if_data,
1067 u.ap); 1067 u.ap);
1068 1068
1069 drv_sta_notify(local, &sdata->vif, STA_NOTIFY_ADD, 1069 drv_sta_notify(local, sdata, STA_NOTIFY_ADD,
1070 &sta->sta); 1070 &sta->sta);
1071 } 1071 }
1072 spin_unlock_irqrestore(&local->sta_lock, flags); 1072 spin_unlock_irqrestore(&local->sta_lock, flags);