1 #ifndef __MAC80211_DRIVER_OPS
2 #define __MAC80211_DRIVER_OPS
4 #include <net/mac80211.h>
5 #include "ieee80211_i.h"
6 #include "driver-trace.h"
8 static inline void check_sdata_in_driver(struct ieee80211_sub_if_data
*sdata
)
10 WARN(!(sdata
->flags
& IEEE80211_SDATA_IN_DRIVER
),
11 "%s: Failed check-sdata-in-driver check, flags: 0x%x\n",
12 sdata
->dev
->name
, sdata
->flags
);
15 static inline struct ieee80211_sub_if_data
*
16 get_bss_sdata(struct ieee80211_sub_if_data
*sdata
)
18 if (sdata
->vif
.type
== NL80211_IFTYPE_AP_VLAN
)
19 sdata
= container_of(sdata
->bss
, struct ieee80211_sub_if_data
,
25 static inline void drv_tx(struct ieee80211_local
*local
, struct sk_buff
*skb
)
27 local
->ops
->tx(&local
->hw
, skb
);
30 static inline void drv_tx_frags(struct ieee80211_local
*local
,
31 struct ieee80211_vif
*vif
,
32 struct ieee80211_sta
*sta
,
33 struct sk_buff_head
*skbs
)
35 local
->ops
->tx_frags(&local
->hw
, vif
, sta
, skbs
);
38 static inline void drv_get_et_strings(struct ieee80211_sub_if_data
*sdata
,
41 struct ieee80211_local
*local
= sdata
->local
;
42 if (local
->ops
->get_et_strings
) {
43 trace_drv_get_et_strings(local
, sset
);
44 local
->ops
->get_et_strings(&local
->hw
, &sdata
->vif
, sset
, data
);
45 trace_drv_return_void(local
);
49 static inline void drv_get_et_stats(struct ieee80211_sub_if_data
*sdata
,
50 struct ethtool_stats
*stats
,
53 struct ieee80211_local
*local
= sdata
->local
;
54 if (local
->ops
->get_et_stats
) {
55 trace_drv_get_et_stats(local
);
56 local
->ops
->get_et_stats(&local
->hw
, &sdata
->vif
, stats
, data
);
57 trace_drv_return_void(local
);
61 static inline int drv_get_et_sset_count(struct ieee80211_sub_if_data
*sdata
,
64 struct ieee80211_local
*local
= sdata
->local
;
66 if (local
->ops
->get_et_sset_count
) {
67 trace_drv_get_et_sset_count(local
, sset
);
68 rv
= local
->ops
->get_et_sset_count(&local
->hw
, &sdata
->vif
,
70 trace_drv_return_int(local
, rv
);
75 static inline int drv_start(struct ieee80211_local
*local
)
81 trace_drv_start(local
);
82 local
->started
= true;
84 ret
= local
->ops
->start(&local
->hw
);
85 trace_drv_return_int(local
, ret
);
89 static inline void drv_stop(struct ieee80211_local
*local
)
93 trace_drv_stop(local
);
94 local
->ops
->stop(&local
->hw
);
95 trace_drv_return_void(local
);
97 /* sync away all work on the tasklet before clearing started */
98 tasklet_disable(&local
->tasklet
);
99 tasklet_enable(&local
->tasklet
);
103 local
->started
= false;
107 static inline int drv_suspend(struct ieee80211_local
*local
,
108 struct cfg80211_wowlan
*wowlan
)
114 trace_drv_suspend(local
);
115 ret
= local
->ops
->suspend(&local
->hw
, wowlan
);
116 trace_drv_return_int(local
, ret
);
120 static inline int drv_resume(struct ieee80211_local
*local
)
126 trace_drv_resume(local
);
127 ret
= local
->ops
->resume(&local
->hw
);
128 trace_drv_return_int(local
, ret
);
132 static inline void drv_set_wakeup(struct ieee80211_local
*local
,
137 if (!local
->ops
->set_wakeup
)
140 trace_drv_set_wakeup(local
, enabled
);
141 local
->ops
->set_wakeup(&local
->hw
, enabled
);
142 trace_drv_return_void(local
);
146 static inline int drv_add_interface(struct ieee80211_local
*local
,
147 struct ieee80211_sub_if_data
*sdata
)
153 if (WARN_ON(sdata
->vif
.type
== NL80211_IFTYPE_AP_VLAN
||
154 (sdata
->vif
.type
== NL80211_IFTYPE_MONITOR
&&
155 !(local
->hw
.flags
& IEEE80211_HW_WANT_MONITOR_VIF
))))
158 trace_drv_add_interface(local
, sdata
);
159 ret
= local
->ops
->add_interface(&local
->hw
, &sdata
->vif
);
160 trace_drv_return_int(local
, ret
);
163 sdata
->flags
|= IEEE80211_SDATA_IN_DRIVER
;
168 static inline int drv_change_interface(struct ieee80211_local
*local
,
169 struct ieee80211_sub_if_data
*sdata
,
170 enum nl80211_iftype type
, bool p2p
)
176 check_sdata_in_driver(sdata
);
178 trace_drv_change_interface(local
, sdata
, type
, p2p
);
179 ret
= local
->ops
->change_interface(&local
->hw
, &sdata
->vif
, type
, p2p
);
180 trace_drv_return_int(local
, ret
);
184 static inline void drv_remove_interface(struct ieee80211_local
*local
,
185 struct ieee80211_sub_if_data
*sdata
)
189 check_sdata_in_driver(sdata
);
191 trace_drv_remove_interface(local
, sdata
);
192 local
->ops
->remove_interface(&local
->hw
, &sdata
->vif
);
193 sdata
->flags
&= ~IEEE80211_SDATA_IN_DRIVER
;
194 trace_drv_return_void(local
);
197 static inline int drv_config(struct ieee80211_local
*local
, u32 changed
)
203 trace_drv_config(local
, changed
);
204 ret
= local
->ops
->config(&local
->hw
, changed
);
205 trace_drv_return_int(local
, ret
);
209 static inline void drv_bss_info_changed(struct ieee80211_local
*local
,
210 struct ieee80211_sub_if_data
*sdata
,
211 struct ieee80211_bss_conf
*info
,
216 check_sdata_in_driver(sdata
);
218 trace_drv_bss_info_changed(local
, sdata
, info
, changed
);
219 if (local
->ops
->bss_info_changed
)
220 local
->ops
->bss_info_changed(&local
->hw
, &sdata
->vif
, info
, changed
);
221 trace_drv_return_void(local
);
224 static inline u64
drv_prepare_multicast(struct ieee80211_local
*local
,
225 struct netdev_hw_addr_list
*mc_list
)
229 trace_drv_prepare_multicast(local
, mc_list
->count
);
231 if (local
->ops
->prepare_multicast
)
232 ret
= local
->ops
->prepare_multicast(&local
->hw
, mc_list
);
234 trace_drv_return_u64(local
, ret
);
239 static inline void drv_configure_filter(struct ieee80211_local
*local
,
240 unsigned int changed_flags
,
241 unsigned int *total_flags
,
246 trace_drv_configure_filter(local
, changed_flags
, total_flags
,
248 local
->ops
->configure_filter(&local
->hw
, changed_flags
, total_flags
,
250 trace_drv_return_void(local
);
253 static inline int drv_set_tim(struct ieee80211_local
*local
,
254 struct ieee80211_sta
*sta
, bool set
)
257 trace_drv_set_tim(local
, sta
, set
);
258 if (local
->ops
->set_tim
)
259 ret
= local
->ops
->set_tim(&local
->hw
, sta
, set
);
260 trace_drv_return_int(local
, ret
);
264 static inline int drv_set_key(struct ieee80211_local
*local
,
265 enum set_key_cmd cmd
,
266 struct ieee80211_sub_if_data
*sdata
,
267 struct ieee80211_sta
*sta
,
268 struct ieee80211_key_conf
*key
)
274 sdata
= get_bss_sdata(sdata
);
275 check_sdata_in_driver(sdata
);
277 trace_drv_set_key(local
, cmd
, sdata
, sta
, key
);
278 ret
= local
->ops
->set_key(&local
->hw
, cmd
, &sdata
->vif
, sta
, key
);
279 trace_drv_return_int(local
, ret
);
283 static inline void drv_update_tkip_key(struct ieee80211_local
*local
,
284 struct ieee80211_sub_if_data
*sdata
,
285 struct ieee80211_key_conf
*conf
,
286 struct sta_info
*sta
, u32 iv32
,
289 struct ieee80211_sta
*ista
= NULL
;
294 sdata
= get_bss_sdata(sdata
);
295 check_sdata_in_driver(sdata
);
297 trace_drv_update_tkip_key(local
, sdata
, conf
, ista
, iv32
);
298 if (local
->ops
->update_tkip_key
)
299 local
->ops
->update_tkip_key(&local
->hw
, &sdata
->vif
, conf
,
300 ista
, iv32
, phase1key
);
301 trace_drv_return_void(local
);
304 static inline int drv_hw_scan(struct ieee80211_local
*local
,
305 struct ieee80211_sub_if_data
*sdata
,
306 struct cfg80211_scan_request
*req
)
312 check_sdata_in_driver(sdata
);
314 trace_drv_hw_scan(local
, sdata
);
315 ret
= local
->ops
->hw_scan(&local
->hw
, &sdata
->vif
, req
);
316 trace_drv_return_int(local
, ret
);
320 static inline void drv_cancel_hw_scan(struct ieee80211_local
*local
,
321 struct ieee80211_sub_if_data
*sdata
)
325 check_sdata_in_driver(sdata
);
327 trace_drv_cancel_hw_scan(local
, sdata
);
328 local
->ops
->cancel_hw_scan(&local
->hw
, &sdata
->vif
);
329 trace_drv_return_void(local
);
333 drv_sched_scan_start(struct ieee80211_local
*local
,
334 struct ieee80211_sub_if_data
*sdata
,
335 struct cfg80211_sched_scan_request
*req
,
336 struct ieee80211_sched_scan_ies
*ies
)
342 check_sdata_in_driver(sdata
);
344 trace_drv_sched_scan_start(local
, sdata
);
345 ret
= local
->ops
->sched_scan_start(&local
->hw
, &sdata
->vif
,
347 trace_drv_return_int(local
, ret
);
351 static inline void drv_sched_scan_stop(struct ieee80211_local
*local
,
352 struct ieee80211_sub_if_data
*sdata
)
356 check_sdata_in_driver(sdata
);
358 trace_drv_sched_scan_stop(local
, sdata
);
359 local
->ops
->sched_scan_stop(&local
->hw
, &sdata
->vif
);
360 trace_drv_return_void(local
);
363 static inline void drv_sw_scan_start(struct ieee80211_local
*local
)
367 trace_drv_sw_scan_start(local
);
368 if (local
->ops
->sw_scan_start
)
369 local
->ops
->sw_scan_start(&local
->hw
);
370 trace_drv_return_void(local
);
373 static inline void drv_sw_scan_complete(struct ieee80211_local
*local
)
377 trace_drv_sw_scan_complete(local
);
378 if (local
->ops
->sw_scan_complete
)
379 local
->ops
->sw_scan_complete(&local
->hw
);
380 trace_drv_return_void(local
);
383 static inline int drv_get_stats(struct ieee80211_local
*local
,
384 struct ieee80211_low_level_stats
*stats
)
386 int ret
= -EOPNOTSUPP
;
390 if (local
->ops
->get_stats
)
391 ret
= local
->ops
->get_stats(&local
->hw
, stats
);
392 trace_drv_get_stats(local
, stats
, ret
);
397 static inline void drv_get_tkip_seq(struct ieee80211_local
*local
,
398 u8 hw_key_idx
, u32
*iv32
, u16
*iv16
)
400 if (local
->ops
->get_tkip_seq
)
401 local
->ops
->get_tkip_seq(&local
->hw
, hw_key_idx
, iv32
, iv16
);
402 trace_drv_get_tkip_seq(local
, hw_key_idx
, iv32
, iv16
);
405 static inline int drv_set_frag_threshold(struct ieee80211_local
*local
,
412 trace_drv_set_frag_threshold(local
, value
);
413 if (local
->ops
->set_frag_threshold
)
414 ret
= local
->ops
->set_frag_threshold(&local
->hw
, value
);
415 trace_drv_return_int(local
, ret
);
419 static inline int drv_set_rts_threshold(struct ieee80211_local
*local
,
426 trace_drv_set_rts_threshold(local
, value
);
427 if (local
->ops
->set_rts_threshold
)
428 ret
= local
->ops
->set_rts_threshold(&local
->hw
, value
);
429 trace_drv_return_int(local
, ret
);
433 static inline int drv_set_coverage_class(struct ieee80211_local
*local
,
439 trace_drv_set_coverage_class(local
, value
);
440 if (local
->ops
->set_coverage_class
)
441 local
->ops
->set_coverage_class(&local
->hw
, value
);
445 trace_drv_return_int(local
, ret
);
449 static inline void drv_sta_notify(struct ieee80211_local
*local
,
450 struct ieee80211_sub_if_data
*sdata
,
451 enum sta_notify_cmd cmd
,
452 struct ieee80211_sta
*sta
)
454 sdata
= get_bss_sdata(sdata
);
455 check_sdata_in_driver(sdata
);
457 trace_drv_sta_notify(local
, sdata
, cmd
, sta
);
458 if (local
->ops
->sta_notify
)
459 local
->ops
->sta_notify(&local
->hw
, &sdata
->vif
, cmd
, sta
);
460 trace_drv_return_void(local
);
463 static inline int drv_sta_add(struct ieee80211_local
*local
,
464 struct ieee80211_sub_if_data
*sdata
,
465 struct ieee80211_sta
*sta
)
471 sdata
= get_bss_sdata(sdata
);
472 check_sdata_in_driver(sdata
);
474 trace_drv_sta_add(local
, sdata
, sta
);
475 if (local
->ops
->sta_add
)
476 ret
= local
->ops
->sta_add(&local
->hw
, &sdata
->vif
, sta
);
478 trace_drv_return_int(local
, ret
);
483 static inline void drv_sta_remove(struct ieee80211_local
*local
,
484 struct ieee80211_sub_if_data
*sdata
,
485 struct ieee80211_sta
*sta
)
489 sdata
= get_bss_sdata(sdata
);
490 check_sdata_in_driver(sdata
);
492 trace_drv_sta_remove(local
, sdata
, sta
);
493 if (local
->ops
->sta_remove
)
494 local
->ops
->sta_remove(&local
->hw
, &sdata
->vif
, sta
);
496 trace_drv_return_void(local
);
499 static inline __must_check
500 int drv_sta_state(struct ieee80211_local
*local
,
501 struct ieee80211_sub_if_data
*sdata
,
502 struct sta_info
*sta
,
503 enum ieee80211_sta_state old_state
,
504 enum ieee80211_sta_state new_state
)
510 sdata
= get_bss_sdata(sdata
);
511 check_sdata_in_driver(sdata
);
513 trace_drv_sta_state(local
, sdata
, &sta
->sta
, old_state
, new_state
);
514 if (local
->ops
->sta_state
) {
515 ret
= local
->ops
->sta_state(&local
->hw
, &sdata
->vif
, &sta
->sta
,
516 old_state
, new_state
);
517 } else if (old_state
== IEEE80211_STA_AUTH
&&
518 new_state
== IEEE80211_STA_ASSOC
) {
519 ret
= drv_sta_add(local
, sdata
, &sta
->sta
);
521 sta
->uploaded
= true;
522 } else if (old_state
== IEEE80211_STA_ASSOC
&&
523 new_state
== IEEE80211_STA_AUTH
) {
524 drv_sta_remove(local
, sdata
, &sta
->sta
);
526 trace_drv_return_int(local
, ret
);
530 static inline void drv_sta_rc_update(struct ieee80211_local
*local
,
531 struct ieee80211_sub_if_data
*sdata
,
532 struct ieee80211_sta
*sta
, u32 changed
)
534 sdata
= get_bss_sdata(sdata
);
535 check_sdata_in_driver(sdata
);
537 trace_drv_sta_rc_update(local
, sdata
, sta
, changed
);
538 if (local
->ops
->sta_rc_update
)
539 local
->ops
->sta_rc_update(&local
->hw
, &sdata
->vif
,
542 trace_drv_return_void(local
);
545 static inline int drv_conf_tx(struct ieee80211_local
*local
,
546 struct ieee80211_sub_if_data
*sdata
, u16 ac
,
547 const struct ieee80211_tx_queue_params
*params
)
549 int ret
= -EOPNOTSUPP
;
553 check_sdata_in_driver(sdata
);
555 trace_drv_conf_tx(local
, sdata
, ac
, params
);
556 if (local
->ops
->conf_tx
)
557 ret
= local
->ops
->conf_tx(&local
->hw
, &sdata
->vif
,
559 trace_drv_return_int(local
, ret
);
563 static inline u64
drv_get_tsf(struct ieee80211_local
*local
,
564 struct ieee80211_sub_if_data
*sdata
)
570 check_sdata_in_driver(sdata
);
572 trace_drv_get_tsf(local
, sdata
);
573 if (local
->ops
->get_tsf
)
574 ret
= local
->ops
->get_tsf(&local
->hw
, &sdata
->vif
);
575 trace_drv_return_u64(local
, ret
);
579 static inline void drv_set_tsf(struct ieee80211_local
*local
,
580 struct ieee80211_sub_if_data
*sdata
,
585 check_sdata_in_driver(sdata
);
587 trace_drv_set_tsf(local
, sdata
, tsf
);
588 if (local
->ops
->set_tsf
)
589 local
->ops
->set_tsf(&local
->hw
, &sdata
->vif
, tsf
);
590 trace_drv_return_void(local
);
593 static inline void drv_reset_tsf(struct ieee80211_local
*local
,
594 struct ieee80211_sub_if_data
*sdata
)
598 check_sdata_in_driver(sdata
);
600 trace_drv_reset_tsf(local
, sdata
);
601 if (local
->ops
->reset_tsf
)
602 local
->ops
->reset_tsf(&local
->hw
, &sdata
->vif
);
603 trace_drv_return_void(local
);
606 static inline int drv_tx_last_beacon(struct ieee80211_local
*local
)
608 int ret
= 0; /* default unsuported op for less congestion */
612 trace_drv_tx_last_beacon(local
);
613 if (local
->ops
->tx_last_beacon
)
614 ret
= local
->ops
->tx_last_beacon(&local
->hw
);
615 trace_drv_return_int(local
, ret
);
619 static inline int drv_ampdu_action(struct ieee80211_local
*local
,
620 struct ieee80211_sub_if_data
*sdata
,
621 enum ieee80211_ampdu_mlme_action action
,
622 struct ieee80211_sta
*sta
, u16 tid
,
623 u16
*ssn
, u8 buf_size
)
625 int ret
= -EOPNOTSUPP
;
629 sdata
= get_bss_sdata(sdata
);
630 check_sdata_in_driver(sdata
);
632 trace_drv_ampdu_action(local
, sdata
, action
, sta
, tid
, ssn
, buf_size
);
634 if (local
->ops
->ampdu_action
)
635 ret
= local
->ops
->ampdu_action(&local
->hw
, &sdata
->vif
, action
,
636 sta
, tid
, ssn
, buf_size
);
638 trace_drv_return_int(local
, ret
);
643 static inline int drv_get_survey(struct ieee80211_local
*local
, int idx
,
644 struct survey_info
*survey
)
646 int ret
= -EOPNOTSUPP
;
648 trace_drv_get_survey(local
, idx
, survey
);
650 if (local
->ops
->get_survey
)
651 ret
= local
->ops
->get_survey(&local
->hw
, idx
, survey
);
653 trace_drv_return_int(local
, ret
);
658 static inline void drv_rfkill_poll(struct ieee80211_local
*local
)
662 if (local
->ops
->rfkill_poll
)
663 local
->ops
->rfkill_poll(&local
->hw
);
666 static inline void drv_flush(struct ieee80211_local
*local
, bool drop
)
670 trace_drv_flush(local
, drop
);
671 if (local
->ops
->flush
)
672 local
->ops
->flush(&local
->hw
, drop
);
673 trace_drv_return_void(local
);
676 static inline void drv_channel_switch(struct ieee80211_local
*local
,
677 struct ieee80211_channel_switch
*ch_switch
)
681 trace_drv_channel_switch(local
, ch_switch
);
682 local
->ops
->channel_switch(&local
->hw
, ch_switch
);
683 trace_drv_return_void(local
);
687 static inline int drv_set_antenna(struct ieee80211_local
*local
,
688 u32 tx_ant
, u32 rx_ant
)
690 int ret
= -EOPNOTSUPP
;
692 if (local
->ops
->set_antenna
)
693 ret
= local
->ops
->set_antenna(&local
->hw
, tx_ant
, rx_ant
);
694 trace_drv_set_antenna(local
, tx_ant
, rx_ant
, ret
);
698 static inline int drv_get_antenna(struct ieee80211_local
*local
,
699 u32
*tx_ant
, u32
*rx_ant
)
701 int ret
= -EOPNOTSUPP
;
703 if (local
->ops
->get_antenna
)
704 ret
= local
->ops
->get_antenna(&local
->hw
, tx_ant
, rx_ant
);
705 trace_drv_get_antenna(local
, *tx_ant
, *rx_ant
, ret
);
709 static inline int drv_remain_on_channel(struct ieee80211_local
*local
,
710 struct ieee80211_channel
*chan
,
711 enum nl80211_channel_type chantype
,
712 unsigned int duration
)
718 trace_drv_remain_on_channel(local
, chan
, chantype
, duration
);
719 ret
= local
->ops
->remain_on_channel(&local
->hw
, chan
, chantype
,
721 trace_drv_return_int(local
, ret
);
726 static inline int drv_cancel_remain_on_channel(struct ieee80211_local
*local
)
732 trace_drv_cancel_remain_on_channel(local
);
733 ret
= local
->ops
->cancel_remain_on_channel(&local
->hw
);
734 trace_drv_return_int(local
, ret
);
739 static inline int drv_set_ringparam(struct ieee80211_local
*local
,
746 trace_drv_set_ringparam(local
, tx
, rx
);
747 if (local
->ops
->set_ringparam
)
748 ret
= local
->ops
->set_ringparam(&local
->hw
, tx
, rx
);
749 trace_drv_return_int(local
, ret
);
754 static inline void drv_get_ringparam(struct ieee80211_local
*local
,
755 u32
*tx
, u32
*tx_max
, u32
*rx
, u32
*rx_max
)
759 trace_drv_get_ringparam(local
, tx
, tx_max
, rx
, rx_max
);
760 if (local
->ops
->get_ringparam
)
761 local
->ops
->get_ringparam(&local
->hw
, tx
, tx_max
, rx
, rx_max
);
762 trace_drv_return_void(local
);
765 static inline bool drv_tx_frames_pending(struct ieee80211_local
*local
)
771 trace_drv_tx_frames_pending(local
);
772 if (local
->ops
->tx_frames_pending
)
773 ret
= local
->ops
->tx_frames_pending(&local
->hw
);
774 trace_drv_return_bool(local
, ret
);
779 static inline int drv_set_bitrate_mask(struct ieee80211_local
*local
,
780 struct ieee80211_sub_if_data
*sdata
,
781 const struct cfg80211_bitrate_mask
*mask
)
783 int ret
= -EOPNOTSUPP
;
787 check_sdata_in_driver(sdata
);
789 trace_drv_set_bitrate_mask(local
, sdata
, mask
);
790 if (local
->ops
->set_bitrate_mask
)
791 ret
= local
->ops
->set_bitrate_mask(&local
->hw
,
793 trace_drv_return_int(local
, ret
);
798 static inline void drv_set_rekey_data(struct ieee80211_local
*local
,
799 struct ieee80211_sub_if_data
*sdata
,
800 struct cfg80211_gtk_rekey_data
*data
)
802 check_sdata_in_driver(sdata
);
804 trace_drv_set_rekey_data(local
, sdata
, data
);
805 if (local
->ops
->set_rekey_data
)
806 local
->ops
->set_rekey_data(&local
->hw
, &sdata
->vif
, data
);
807 trace_drv_return_void(local
);
810 static inline void drv_rssi_callback(struct ieee80211_local
*local
,
811 const enum ieee80211_rssi_event event
)
813 trace_drv_rssi_callback(local
, event
);
814 if (local
->ops
->rssi_callback
)
815 local
->ops
->rssi_callback(&local
->hw
, event
);
816 trace_drv_return_void(local
);
820 drv_release_buffered_frames(struct ieee80211_local
*local
,
821 struct sta_info
*sta
, u16 tids
, int num_frames
,
822 enum ieee80211_frame_release_type reason
,
825 trace_drv_release_buffered_frames(local
, &sta
->sta
, tids
, num_frames
,
827 if (local
->ops
->release_buffered_frames
)
828 local
->ops
->release_buffered_frames(&local
->hw
, &sta
->sta
, tids
,
831 trace_drv_return_void(local
);
835 drv_allow_buffered_frames(struct ieee80211_local
*local
,
836 struct sta_info
*sta
, u16 tids
, int num_frames
,
837 enum ieee80211_frame_release_type reason
,
840 trace_drv_allow_buffered_frames(local
, &sta
->sta
, tids
, num_frames
,
842 if (local
->ops
->allow_buffered_frames
)
843 local
->ops
->allow_buffered_frames(&local
->hw
, &sta
->sta
,
844 tids
, num_frames
, reason
,
846 trace_drv_return_void(local
);
848 #endif /* __MAC80211_DRIVER_OPS */