Lines Matching full:local
31 static inline void drv_tx(struct ieee80211_local *local, in drv_tx() argument
35 local->ops->tx(&local->hw, control, skb); in drv_tx()
38 static inline void drv_sync_rx_queues(struct ieee80211_local *local, in drv_sync_rx_queues() argument
41 if (local->ops->sync_rx_queues) { in drv_sync_rx_queues()
42 trace_drv_sync_rx_queues(local, sta->sdata, &sta->sta); in drv_sync_rx_queues()
43 local->ops->sync_rx_queues(&local->hw); in drv_sync_rx_queues()
44 trace_drv_return_void(local); in drv_sync_rx_queues()
51 struct ieee80211_local *local = sdata->local; in drv_get_et_strings() local
52 if (local->ops->get_et_strings) { in drv_get_et_strings()
53 trace_drv_get_et_strings(local, sset); in drv_get_et_strings()
54 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); in drv_get_et_strings()
55 trace_drv_return_void(local); in drv_get_et_strings()
63 struct ieee80211_local *local = sdata->local; in drv_get_et_stats() local
64 if (local->ops->get_et_stats) { in drv_get_et_stats()
65 trace_drv_get_et_stats(local); in drv_get_et_stats()
66 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); in drv_get_et_stats()
67 trace_drv_return_void(local); in drv_get_et_stats()
74 struct ieee80211_local *local = sdata->local; in drv_get_et_sset_count() local
76 if (local->ops->get_et_sset_count) { in drv_get_et_sset_count()
77 trace_drv_get_et_sset_count(local, sset); in drv_get_et_sset_count()
78 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, in drv_get_et_sset_count()
80 trace_drv_return_int(local, rv); in drv_get_et_sset_count()
85 int drv_start(struct ieee80211_local *local);
86 void drv_stop(struct ieee80211_local *local);
89 static inline int drv_suspend(struct ieee80211_local *local, in drv_suspend() argument
96 trace_drv_suspend(local); in drv_suspend()
97 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
98 trace_drv_return_int(local, ret); in drv_suspend()
102 static inline int drv_resume(struct ieee80211_local *local) in drv_resume() argument
108 trace_drv_resume(local); in drv_resume()
109 ret = local->ops->resume(&local->hw); in drv_resume()
110 trace_drv_return_int(local, ret); in drv_resume()
114 static inline void drv_set_wakeup(struct ieee80211_local *local, in drv_set_wakeup() argument
119 if (!local->ops->set_wakeup) in drv_set_wakeup()
122 trace_drv_set_wakeup(local, enabled); in drv_set_wakeup()
123 local->ops->set_wakeup(&local->hw, enabled); in drv_set_wakeup()
124 trace_drv_return_void(local); in drv_set_wakeup()
128 int drv_add_interface(struct ieee80211_local *local,
131 int drv_change_interface(struct ieee80211_local *local,
135 void drv_remove_interface(struct ieee80211_local *local,
138 static inline int drv_config(struct ieee80211_local *local, u32 changed) in drv_config() argument
144 trace_drv_config(local, changed); in drv_config()
145 ret = local->ops->config(&local->hw, changed); in drv_config()
146 trace_drv_return_int(local, ret); in drv_config()
150 static inline void drv_vif_cfg_changed(struct ieee80211_local *local, in drv_vif_cfg_changed() argument
159 trace_drv_vif_cfg_changed(local, sdata, changed); in drv_vif_cfg_changed()
160 if (local->ops->vif_cfg_changed) in drv_vif_cfg_changed()
161 local->ops->vif_cfg_changed(&local->hw, &sdata->vif, changed); in drv_vif_cfg_changed()
162 else if (local->ops->bss_info_changed) in drv_vif_cfg_changed()
163 local->ops->bss_info_changed(&local->hw, &sdata->vif, in drv_vif_cfg_changed()
165 trace_drv_return_void(local); in drv_vif_cfg_changed()
168 void drv_link_info_changed(struct ieee80211_local *local,
173 static inline u64 drv_prepare_multicast(struct ieee80211_local *local, in drv_prepare_multicast() argument
178 trace_drv_prepare_multicast(local, mc_list->count); in drv_prepare_multicast()
180 if (local->ops->prepare_multicast) in drv_prepare_multicast()
181 ret = local->ops->prepare_multicast(&local->hw, mc_list); in drv_prepare_multicast()
183 trace_drv_return_u64(local, ret); in drv_prepare_multicast()
188 static inline void drv_configure_filter(struct ieee80211_local *local, in drv_configure_filter() argument
195 trace_drv_configure_filter(local, changed_flags, total_flags, in drv_configure_filter()
197 local->ops->configure_filter(&local->hw, changed_flags, total_flags, in drv_configure_filter()
199 trace_drv_return_void(local); in drv_configure_filter()
202 static inline void drv_config_iface_filter(struct ieee80211_local *local, in drv_config_iface_filter() argument
209 trace_drv_config_iface_filter(local, sdata, filter_flags, in drv_config_iface_filter()
211 if (local->ops->config_iface_filter) in drv_config_iface_filter()
212 local->ops->config_iface_filter(&local->hw, &sdata->vif, in drv_config_iface_filter()
215 trace_drv_return_void(local); in drv_config_iface_filter()
218 static inline int drv_set_tim(struct ieee80211_local *local, in drv_set_tim() argument
222 trace_drv_set_tim(local, sta, set); in drv_set_tim()
223 if (local->ops->set_tim) in drv_set_tim()
224 ret = local->ops->set_tim(&local->hw, sta, set); in drv_set_tim()
225 trace_drv_return_int(local, ret); in drv_set_tim()
229 int drv_set_key(struct ieee80211_local *local,
235 static inline void drv_update_tkip_key(struct ieee80211_local *local, in drv_update_tkip_key() argument
250 trace_drv_update_tkip_key(local, sdata, conf, ista, iv32); in drv_update_tkip_key()
251 if (local->ops->update_tkip_key) in drv_update_tkip_key()
252 local->ops->update_tkip_key(&local->hw, &sdata->vif, conf, in drv_update_tkip_key()
254 trace_drv_return_void(local); in drv_update_tkip_key()
257 static inline int drv_hw_scan(struct ieee80211_local *local, in drv_hw_scan() argument
268 trace_drv_hw_scan(local, sdata); in drv_hw_scan()
269 ret = local->ops->hw_scan(&local->hw, &sdata->vif, req); in drv_hw_scan()
270 trace_drv_return_int(local, ret); in drv_hw_scan()
274 static inline void drv_cancel_hw_scan(struct ieee80211_local *local, in drv_cancel_hw_scan() argument
282 trace_drv_cancel_hw_scan(local, sdata); in drv_cancel_hw_scan()
283 local->ops->cancel_hw_scan(&local->hw, &sdata->vif); in drv_cancel_hw_scan()
284 trace_drv_return_void(local); in drv_cancel_hw_scan()
288 drv_sched_scan_start(struct ieee80211_local *local, in drv_sched_scan_start() argument
300 trace_drv_sched_scan_start(local, sdata); in drv_sched_scan_start()
301 ret = local->ops->sched_scan_start(&local->hw, &sdata->vif, in drv_sched_scan_start()
303 trace_drv_return_int(local, ret); in drv_sched_scan_start()
307 static inline int drv_sched_scan_stop(struct ieee80211_local *local, in drv_sched_scan_stop() argument
317 trace_drv_sched_scan_stop(local, sdata); in drv_sched_scan_stop()
318 ret = local->ops->sched_scan_stop(&local->hw, &sdata->vif); in drv_sched_scan_stop()
319 trace_drv_return_int(local, ret); in drv_sched_scan_stop()
324 static inline void drv_sw_scan_start(struct ieee80211_local *local, in drv_sw_scan_start() argument
330 trace_drv_sw_scan_start(local, sdata, mac_addr); in drv_sw_scan_start()
331 if (local->ops->sw_scan_start) in drv_sw_scan_start()
332 local->ops->sw_scan_start(&local->hw, &sdata->vif, mac_addr); in drv_sw_scan_start()
333 trace_drv_return_void(local); in drv_sw_scan_start()
336 static inline void drv_sw_scan_complete(struct ieee80211_local *local, in drv_sw_scan_complete() argument
341 trace_drv_sw_scan_complete(local, sdata); in drv_sw_scan_complete()
342 if (local->ops->sw_scan_complete) in drv_sw_scan_complete()
343 local->ops->sw_scan_complete(&local->hw, &sdata->vif); in drv_sw_scan_complete()
344 trace_drv_return_void(local); in drv_sw_scan_complete()
347 static inline int drv_get_stats(struct ieee80211_local *local, in drv_get_stats() argument
354 if (local->ops->get_stats) in drv_get_stats()
355 ret = local->ops->get_stats(&local->hw, stats); in drv_get_stats()
356 trace_drv_get_stats(local, stats, ret); in drv_get_stats()
361 static inline void drv_get_key_seq(struct ieee80211_local *local, in drv_get_key_seq() argument
365 if (local->ops->get_key_seq) in drv_get_key_seq()
366 local->ops->get_key_seq(&local->hw, &key->conf, seq); in drv_get_key_seq()
367 trace_drv_get_key_seq(local, &key->conf); in drv_get_key_seq()
370 static inline int drv_set_frag_threshold(struct ieee80211_local *local, in drv_set_frag_threshold() argument
377 trace_drv_set_frag_threshold(local, value); in drv_set_frag_threshold()
378 if (local->ops->set_frag_threshold) in drv_set_frag_threshold()
379 ret = local->ops->set_frag_threshold(&local->hw, value); in drv_set_frag_threshold()
380 trace_drv_return_int(local, ret); in drv_set_frag_threshold()
384 static inline int drv_set_rts_threshold(struct ieee80211_local *local, in drv_set_rts_threshold() argument
391 trace_drv_set_rts_threshold(local, value); in drv_set_rts_threshold()
392 if (local->ops->set_rts_threshold) in drv_set_rts_threshold()
393 ret = local->ops->set_rts_threshold(&local->hw, value); in drv_set_rts_threshold()
394 trace_drv_return_int(local, ret); in drv_set_rts_threshold()
398 static inline int drv_set_coverage_class(struct ieee80211_local *local, in drv_set_coverage_class() argument
404 trace_drv_set_coverage_class(local, value); in drv_set_coverage_class()
405 if (local->ops->set_coverage_class) in drv_set_coverage_class()
406 local->ops->set_coverage_class(&local->hw, value); in drv_set_coverage_class()
410 trace_drv_return_int(local, ret); in drv_set_coverage_class()
414 static inline void drv_sta_notify(struct ieee80211_local *local, in drv_sta_notify() argument
423 trace_drv_sta_notify(local, sdata, cmd, sta); in drv_sta_notify()
424 if (local->ops->sta_notify) in drv_sta_notify()
425 local->ops->sta_notify(&local->hw, &sdata->vif, cmd, sta); in drv_sta_notify()
426 trace_drv_return_void(local); in drv_sta_notify()
429 static inline int drv_sta_add(struct ieee80211_local *local, in drv_sta_add() argument
441 trace_drv_sta_add(local, sdata, sta); in drv_sta_add()
442 if (local->ops->sta_add) in drv_sta_add()
443 ret = local->ops->sta_add(&local->hw, &sdata->vif, sta); in drv_sta_add()
445 trace_drv_return_int(local, ret); in drv_sta_add()
450 static inline void drv_sta_remove(struct ieee80211_local *local, in drv_sta_remove() argument
460 trace_drv_sta_remove(local, sdata, sta); in drv_sta_remove()
461 if (local->ops->sta_remove) in drv_sta_remove()
462 local->ops->sta_remove(&local->hw, &sdata->vif, sta); in drv_sta_remove()
464 trace_drv_return_void(local); in drv_sta_remove()
468 static inline void drv_sta_add_debugfs(struct ieee80211_local *local, in drv_sta_add_debugfs() argument
479 if (local->ops->sta_add_debugfs) in drv_sta_add_debugfs()
480 local->ops->sta_add_debugfs(&local->hw, &sdata->vif, in drv_sta_add_debugfs()
485 static inline void drv_sta_pre_rcu_remove(struct ieee80211_local *local, in drv_sta_pre_rcu_remove() argument
495 trace_drv_sta_pre_rcu_remove(local, sdata, &sta->sta); in drv_sta_pre_rcu_remove()
496 if (local->ops->sta_pre_rcu_remove) in drv_sta_pre_rcu_remove()
497 local->ops->sta_pre_rcu_remove(&local->hw, &sdata->vif, in drv_sta_pre_rcu_remove()
499 trace_drv_return_void(local); in drv_sta_pre_rcu_remove()
503 int drv_sta_state(struct ieee80211_local *local,
510 int drv_sta_set_txpwr(struct ieee80211_local *local,
514 void drv_sta_rc_update(struct ieee80211_local *local,
518 static inline void drv_sta_rate_tbl_update(struct ieee80211_local *local, in drv_sta_rate_tbl_update() argument
526 trace_drv_sta_rate_tbl_update(local, sdata, sta); in drv_sta_rate_tbl_update()
527 if (local->ops->sta_rate_tbl_update) in drv_sta_rate_tbl_update()
528 local->ops->sta_rate_tbl_update(&local->hw, &sdata->vif, sta); in drv_sta_rate_tbl_update()
530 trace_drv_return_void(local); in drv_sta_rate_tbl_update()
533 static inline void drv_sta_statistics(struct ieee80211_local *local, in drv_sta_statistics() argument
542 trace_drv_sta_statistics(local, sdata, sta); in drv_sta_statistics()
543 if (local->ops->sta_statistics) in drv_sta_statistics()
544 local->ops->sta_statistics(&local->hw, &sdata->vif, sta, sinfo); in drv_sta_statistics()
545 trace_drv_return_void(local); in drv_sta_statistics()
548 int drv_conf_tx(struct ieee80211_local *local,
552 u64 drv_get_tsf(struct ieee80211_local *local,
554 void drv_set_tsf(struct ieee80211_local *local,
557 void drv_offset_tsf(struct ieee80211_local *local,
560 void drv_reset_tsf(struct ieee80211_local *local,
563 static inline int drv_tx_last_beacon(struct ieee80211_local *local) in drv_tx_last_beacon() argument
569 trace_drv_tx_last_beacon(local); in drv_tx_last_beacon()
570 if (local->ops->tx_last_beacon) in drv_tx_last_beacon()
571 ret = local->ops->tx_last_beacon(&local->hw); in drv_tx_last_beacon()
572 trace_drv_return_int(local, ret); in drv_tx_last_beacon()
576 int drv_ampdu_action(struct ieee80211_local *local,
580 static inline int drv_get_survey(struct ieee80211_local *local, int idx, in drv_get_survey() argument
585 trace_drv_get_survey(local, idx, survey); in drv_get_survey()
587 if (local->ops->get_survey) in drv_get_survey()
588 ret = local->ops->get_survey(&local->hw, idx, survey); in drv_get_survey()
590 trace_drv_return_int(local, ret); in drv_get_survey()
595 static inline void drv_rfkill_poll(struct ieee80211_local *local) in drv_rfkill_poll() argument
599 if (local->ops->rfkill_poll) in drv_rfkill_poll()
600 local->ops->rfkill_poll(&local->hw); in drv_rfkill_poll()
603 static inline void drv_flush(struct ieee80211_local *local, in drv_flush() argument
614 trace_drv_flush(local, queues, drop); in drv_flush()
615 if (local->ops->flush) in drv_flush()
616 local->ops->flush(&local->hw, vif, queues, drop); in drv_flush()
617 trace_drv_return_void(local); in drv_flush()
620 static inline void drv_channel_switch(struct ieee80211_local *local, in drv_channel_switch() argument
626 trace_drv_channel_switch(local, sdata, ch_switch); in drv_channel_switch()
627 local->ops->channel_switch(&local->hw, &sdata->vif, ch_switch); in drv_channel_switch()
628 trace_drv_return_void(local); in drv_channel_switch()
632 static inline int drv_set_antenna(struct ieee80211_local *local, in drv_set_antenna() argument
637 if (local->ops->set_antenna) in drv_set_antenna()
638 ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); in drv_set_antenna()
639 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna()
643 static inline int drv_get_antenna(struct ieee80211_local *local, in drv_get_antenna() argument
648 if (local->ops->get_antenna) in drv_get_antenna()
649 ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); in drv_get_antenna()
650 trace_drv_get_antenna(local, *tx_ant, *rx_ant, ret); in drv_get_antenna()
654 static inline int drv_remain_on_channel(struct ieee80211_local *local, in drv_remain_on_channel() argument
664 trace_drv_remain_on_channel(local, sdata, chan, duration, type); in drv_remain_on_channel()
665 ret = local->ops->remain_on_channel(&local->hw, &sdata->vif, in drv_remain_on_channel()
667 trace_drv_return_int(local, ret); in drv_remain_on_channel()
673 drv_cancel_remain_on_channel(struct ieee80211_local *local, in drv_cancel_remain_on_channel() argument
680 trace_drv_cancel_remain_on_channel(local, sdata); in drv_cancel_remain_on_channel()
681 ret = local->ops->cancel_remain_on_channel(&local->hw, &sdata->vif); in drv_cancel_remain_on_channel()
682 trace_drv_return_int(local, ret); in drv_cancel_remain_on_channel()
687 static inline int drv_set_ringparam(struct ieee80211_local *local, in drv_set_ringparam() argument
694 trace_drv_set_ringparam(local, tx, rx); in drv_set_ringparam()
695 if (local->ops->set_ringparam) in drv_set_ringparam()
696 ret = local->ops->set_ringparam(&local->hw, tx, rx); in drv_set_ringparam()
697 trace_drv_return_int(local, ret); in drv_set_ringparam()
702 static inline void drv_get_ringparam(struct ieee80211_local *local, in drv_get_ringparam() argument
707 trace_drv_get_ringparam(local, tx, tx_max, rx, rx_max); in drv_get_ringparam()
708 if (local->ops->get_ringparam) in drv_get_ringparam()
709 local->ops->get_ringparam(&local->hw, tx, tx_max, rx, rx_max); in drv_get_ringparam()
710 trace_drv_return_void(local); in drv_get_ringparam()
713 static inline bool drv_tx_frames_pending(struct ieee80211_local *local) in drv_tx_frames_pending() argument
719 trace_drv_tx_frames_pending(local); in drv_tx_frames_pending()
720 if (local->ops->tx_frames_pending) in drv_tx_frames_pending()
721 ret = local->ops->tx_frames_pending(&local->hw); in drv_tx_frames_pending()
722 trace_drv_return_bool(local, ret); in drv_tx_frames_pending()
727 static inline int drv_set_bitrate_mask(struct ieee80211_local *local, in drv_set_bitrate_mask() argument
738 trace_drv_set_bitrate_mask(local, sdata, mask); in drv_set_bitrate_mask()
739 if (local->ops->set_bitrate_mask) in drv_set_bitrate_mask()
740 ret = local->ops->set_bitrate_mask(&local->hw, in drv_set_bitrate_mask()
742 trace_drv_return_int(local, ret); in drv_set_bitrate_mask()
747 static inline void drv_set_rekey_data(struct ieee80211_local *local, in drv_set_rekey_data() argument
754 trace_drv_set_rekey_data(local, sdata, data); in drv_set_rekey_data()
755 if (local->ops->set_rekey_data) in drv_set_rekey_data()
756 local->ops->set_rekey_data(&local->hw, &sdata->vif, data); in drv_set_rekey_data()
757 trace_drv_return_void(local); in drv_set_rekey_data()
760 static inline void drv_event_callback(struct ieee80211_local *local, in drv_event_callback() argument
764 trace_drv_event_callback(local, sdata, event); in drv_event_callback()
765 if (local->ops->event_callback) in drv_event_callback()
766 local->ops->event_callback(&local->hw, &sdata->vif, event); in drv_event_callback()
767 trace_drv_return_void(local); in drv_event_callback()
771 drv_release_buffered_frames(struct ieee80211_local *local, in drv_release_buffered_frames() argument
776 trace_drv_release_buffered_frames(local, &sta->sta, tids, num_frames, in drv_release_buffered_frames()
778 if (local->ops->release_buffered_frames) in drv_release_buffered_frames()
779 local->ops->release_buffered_frames(&local->hw, &sta->sta, tids, in drv_release_buffered_frames()
782 trace_drv_return_void(local); in drv_release_buffered_frames()
786 drv_allow_buffered_frames(struct ieee80211_local *local, in drv_allow_buffered_frames() argument
791 trace_drv_allow_buffered_frames(local, &sta->sta, tids, num_frames, in drv_allow_buffered_frames()
793 if (local->ops->allow_buffered_frames) in drv_allow_buffered_frames()
794 local->ops->allow_buffered_frames(&local->hw, &sta->sta, in drv_allow_buffered_frames()
797 trace_drv_return_void(local); in drv_allow_buffered_frames()
800 static inline void drv_mgd_prepare_tx(struct ieee80211_local *local, in drv_mgd_prepare_tx() argument
810 trace_drv_mgd_prepare_tx(local, sdata, info->duration, in drv_mgd_prepare_tx()
812 if (local->ops->mgd_prepare_tx) in drv_mgd_prepare_tx()
813 local->ops->mgd_prepare_tx(&local->hw, &sdata->vif, info); in drv_mgd_prepare_tx()
814 trace_drv_return_void(local); in drv_mgd_prepare_tx()
817 static inline void drv_mgd_complete_tx(struct ieee80211_local *local, in drv_mgd_complete_tx() argument
827 trace_drv_mgd_complete_tx(local, sdata, info->duration, in drv_mgd_complete_tx()
829 if (local->ops->mgd_complete_tx) in drv_mgd_complete_tx()
830 local->ops->mgd_complete_tx(&local->hw, &sdata->vif, info); in drv_mgd_complete_tx()
831 trace_drv_return_void(local); in drv_mgd_complete_tx()
835 drv_mgd_protect_tdls_discover(struct ieee80211_local *local, in drv_mgd_protect_tdls_discover() argument
844 trace_drv_mgd_protect_tdls_discover(local, sdata); in drv_mgd_protect_tdls_discover()
845 if (local->ops->mgd_protect_tdls_discover) in drv_mgd_protect_tdls_discover()
846 local->ops->mgd_protect_tdls_discover(&local->hw, &sdata->vif); in drv_mgd_protect_tdls_discover()
847 trace_drv_return_void(local); in drv_mgd_protect_tdls_discover()
850 static inline int drv_add_chanctx(struct ieee80211_local *local, in drv_add_chanctx() argument
857 trace_drv_add_chanctx(local, ctx); in drv_add_chanctx()
858 if (local->ops->add_chanctx) in drv_add_chanctx()
859 ret = local->ops->add_chanctx(&local->hw, &ctx->conf); in drv_add_chanctx()
860 trace_drv_return_int(local, ret); in drv_add_chanctx()
867 static inline void drv_remove_chanctx(struct ieee80211_local *local, in drv_remove_chanctx() argument
875 trace_drv_remove_chanctx(local, ctx); in drv_remove_chanctx()
876 if (local->ops->remove_chanctx) in drv_remove_chanctx()
877 local->ops->remove_chanctx(&local->hw, &ctx->conf); in drv_remove_chanctx()
878 trace_drv_return_void(local); in drv_remove_chanctx()
882 static inline void drv_change_chanctx(struct ieee80211_local *local, in drv_change_chanctx() argument
888 trace_drv_change_chanctx(local, ctx, changed); in drv_change_chanctx()
889 if (local->ops->change_chanctx) { in drv_change_chanctx()
891 local->ops->change_chanctx(&local->hw, &ctx->conf, changed); in drv_change_chanctx()
893 trace_drv_return_void(local); in drv_change_chanctx()
904 int drv_assign_vif_chanctx(struct ieee80211_local *local,
908 void drv_unassign_vif_chanctx(struct ieee80211_local *local,
912 int drv_switch_vif_chanctx(struct ieee80211_local *local,
916 static inline int drv_start_ap(struct ieee80211_local *local, in drv_start_ap() argument
930 trace_drv_start_ap(local, sdata, link_conf); in drv_start_ap()
931 if (local->ops->start_ap) in drv_start_ap()
932 ret = local->ops->start_ap(&local->hw, &sdata->vif, link_conf); in drv_start_ap()
933 trace_drv_return_int(local, ret); in drv_start_ap()
937 static inline void drv_stop_ap(struct ieee80211_local *local, in drv_stop_ap() argument
947 trace_drv_stop_ap(local, sdata, link_conf); in drv_stop_ap()
948 if (local->ops->stop_ap) in drv_stop_ap()
949 local->ops->stop_ap(&local->hw, &sdata->vif, link_conf); in drv_stop_ap()
950 trace_drv_return_void(local); in drv_stop_ap()
954 drv_reconfig_complete(struct ieee80211_local *local, in drv_reconfig_complete() argument
959 trace_drv_reconfig_complete(local, reconfig_type); in drv_reconfig_complete()
960 if (local->ops->reconfig_complete) in drv_reconfig_complete()
961 local->ops->reconfig_complete(&local->hw, reconfig_type); in drv_reconfig_complete()
962 trace_drv_return_void(local); in drv_reconfig_complete()
966 drv_set_default_unicast_key(struct ieee80211_local *local, in drv_set_default_unicast_key() argument
975 trace_drv_set_default_unicast_key(local, sdata, key_idx); in drv_set_default_unicast_key()
976 if (local->ops->set_default_unicast_key) in drv_set_default_unicast_key()
977 local->ops->set_default_unicast_key(&local->hw, &sdata->vif, in drv_set_default_unicast_key()
979 trace_drv_return_void(local); in drv_set_default_unicast_key()
983 static inline void drv_ipv6_addr_change(struct ieee80211_local *local, in drv_ipv6_addr_change() argument
987 trace_drv_ipv6_addr_change(local, sdata); in drv_ipv6_addr_change()
988 if (local->ops->ipv6_addr_change) in drv_ipv6_addr_change()
989 local->ops->ipv6_addr_change(&local->hw, &sdata->vif, idev); in drv_ipv6_addr_change()
990 trace_drv_return_void(local); in drv_ipv6_addr_change()
998 struct ieee80211_local *local = sdata->local; in drv_channel_switch_beacon() local
1000 if (local->ops->channel_switch_beacon) { in drv_channel_switch_beacon()
1001 trace_drv_channel_switch_beacon(local, sdata, chandef); in drv_channel_switch_beacon()
1002 local->ops->channel_switch_beacon(&local->hw, &sdata->vif, in drv_channel_switch_beacon()
1011 struct ieee80211_local *local = sdata->local; in drv_pre_channel_switch() local
1017 trace_drv_pre_channel_switch(local, sdata, ch_switch); in drv_pre_channel_switch()
1018 if (local->ops->pre_channel_switch) in drv_pre_channel_switch()
1019 ret = local->ops->pre_channel_switch(&local->hw, &sdata->vif, in drv_pre_channel_switch()
1021 trace_drv_return_int(local, ret); in drv_pre_channel_switch()
1028 struct ieee80211_local *local = sdata->local; in drv_post_channel_switch() local
1034 trace_drv_post_channel_switch(local, sdata); in drv_post_channel_switch()
1035 if (local->ops->post_channel_switch) in drv_post_channel_switch()
1036 ret = local->ops->post_channel_switch(&local->hw, &sdata->vif); in drv_post_channel_switch()
1037 trace_drv_return_int(local, ret); in drv_post_channel_switch()
1044 struct ieee80211_local *local = sdata->local; in drv_abort_channel_switch() local
1049 trace_drv_abort_channel_switch(local, sdata); in drv_abort_channel_switch()
1051 if (local->ops->abort_channel_switch) in drv_abort_channel_switch()
1052 local->ops->abort_channel_switch(&local->hw, &sdata->vif); in drv_abort_channel_switch()
1059 struct ieee80211_local *local = sdata->local; in drv_channel_switch_rx_beacon() local
1064 trace_drv_channel_switch_rx_beacon(local, sdata, ch_switch); in drv_channel_switch_rx_beacon()
1065 if (local->ops->channel_switch_rx_beacon) in drv_channel_switch_rx_beacon()
1066 local->ops->channel_switch_rx_beacon(&local->hw, &sdata->vif, in drv_channel_switch_rx_beacon()
1070 static inline int drv_join_ibss(struct ieee80211_local *local, in drv_join_ibss() argument
1079 trace_drv_join_ibss(local, sdata, &sdata->vif.bss_conf); in drv_join_ibss()
1080 if (local->ops->join_ibss) in drv_join_ibss()
1081 ret = local->ops->join_ibss(&local->hw, &sdata->vif); in drv_join_ibss()
1082 trace_drv_return_int(local, ret); in drv_join_ibss()
1086 static inline void drv_leave_ibss(struct ieee80211_local *local, in drv_leave_ibss() argument
1093 trace_drv_leave_ibss(local, sdata); in drv_leave_ibss()
1094 if (local->ops->leave_ibss) in drv_leave_ibss()
1095 local->ops->leave_ibss(&local->hw, &sdata->vif); in drv_leave_ibss()
1096 trace_drv_return_void(local); in drv_leave_ibss()
1099 static inline u32 drv_get_expected_throughput(struct ieee80211_local *local, in drv_get_expected_throughput() argument
1105 if (local->ops->get_expected_throughput && sta->uploaded) in drv_get_expected_throughput()
1106 ret = local->ops->get_expected_throughput(&local->hw, &sta->sta); in drv_get_expected_throughput()
1107 trace_drv_return_u32(local, ret); in drv_get_expected_throughput()
1112 static inline int drv_get_txpower(struct ieee80211_local *local, in drv_get_txpower() argument
1117 if (!local->ops->get_txpower) in drv_get_txpower()
1120 ret = local->ops->get_txpower(&local->hw, &sdata->vif, dbm); in drv_get_txpower()
1121 trace_drv_get_txpower(local, sdata, *dbm, ret); in drv_get_txpower()
1127 drv_tdls_channel_switch(struct ieee80211_local *local, in drv_tdls_channel_switch() argument
1139 if (!local->ops->tdls_channel_switch) in drv_tdls_channel_switch()
1142 trace_drv_tdls_channel_switch(local, sdata, sta, oper_class, chandef); in drv_tdls_channel_switch()
1143 ret = local->ops->tdls_channel_switch(&local->hw, &sdata->vif, sta, in drv_tdls_channel_switch()
1146 trace_drv_return_int(local, ret); in drv_tdls_channel_switch()
1151 drv_tdls_cancel_channel_switch(struct ieee80211_local *local, in drv_tdls_cancel_channel_switch() argument
1159 if (!local->ops->tdls_cancel_channel_switch) in drv_tdls_cancel_channel_switch()
1162 trace_drv_tdls_cancel_channel_switch(local, sdata, sta); in drv_tdls_cancel_channel_switch()
1163 local->ops->tdls_cancel_channel_switch(&local->hw, &sdata->vif, sta); in drv_tdls_cancel_channel_switch()
1164 trace_drv_return_void(local); in drv_tdls_cancel_channel_switch()
1168 drv_tdls_recv_channel_switch(struct ieee80211_local *local, in drv_tdls_recv_channel_switch() argument
1172 trace_drv_tdls_recv_channel_switch(local, sdata, params); in drv_tdls_recv_channel_switch()
1173 if (local->ops->tdls_recv_channel_switch) in drv_tdls_recv_channel_switch()
1174 local->ops->tdls_recv_channel_switch(&local->hw, &sdata->vif, in drv_tdls_recv_channel_switch()
1176 trace_drv_return_void(local); in drv_tdls_recv_channel_switch()
1179 static inline void drv_wake_tx_queue(struct ieee80211_local *local, in drv_wake_tx_queue() argument
1185 if (local->in_reconfig) { in drv_wake_tx_queue()
1193 trace_drv_wake_tx_queue(local, sdata, txq); in drv_wake_tx_queue()
1194 local->ops->wake_tx_queue(&local->hw, &txq->txq); in drv_wake_tx_queue()
1197 static inline void schedule_and_wake_txq(struct ieee80211_local *local, in schedule_and_wake_txq() argument
1200 ieee80211_schedule_txq(&local->hw, &txqi->txq); in schedule_and_wake_txq()
1201 drv_wake_tx_queue(local, txqi); in schedule_and_wake_txq()
1204 static inline int drv_can_aggregate_in_amsdu(struct ieee80211_local *local, in drv_can_aggregate_in_amsdu() argument
1208 if (!local->ops->can_aggregate_in_amsdu) in drv_can_aggregate_in_amsdu()
1211 return local->ops->can_aggregate_in_amsdu(&local->hw, head, skb); in drv_can_aggregate_in_amsdu()
1215 drv_get_ftm_responder_stats(struct ieee80211_local *local, in drv_get_ftm_responder_stats() argument
1221 if (local->ops->get_ftm_responder_stats) in drv_get_ftm_responder_stats()
1222 ret = local->ops->get_ftm_responder_stats(&local->hw, in drv_get_ftm_responder_stats()
1225 trace_drv_get_ftm_responder_stats(local, sdata, ftm_stats); in drv_get_ftm_responder_stats()
1230 static inline int drv_start_pmsr(struct ieee80211_local *local, in drv_start_pmsr() argument
1240 trace_drv_start_pmsr(local, sdata); in drv_start_pmsr()
1242 if (local->ops->start_pmsr) in drv_start_pmsr()
1243 ret = local->ops->start_pmsr(&local->hw, &sdata->vif, request); in drv_start_pmsr()
1244 trace_drv_return_int(local, ret); in drv_start_pmsr()
1249 static inline void drv_abort_pmsr(struct ieee80211_local *local, in drv_abort_pmsr() argument
1253 trace_drv_abort_pmsr(local, sdata); in drv_abort_pmsr()
1259 if (local->ops->abort_pmsr) in drv_abort_pmsr()
1260 local->ops->abort_pmsr(&local->hw, &sdata->vif, request); in drv_abort_pmsr()
1261 trace_drv_return_void(local); in drv_abort_pmsr()
1264 static inline int drv_start_nan(struct ieee80211_local *local, in drv_start_nan() argument
1273 trace_drv_start_nan(local, sdata, conf); in drv_start_nan()
1274 ret = local->ops->start_nan(&local->hw, &sdata->vif, conf); in drv_start_nan()
1275 trace_drv_return_int(local, ret); in drv_start_nan()
1279 static inline void drv_stop_nan(struct ieee80211_local *local, in drv_stop_nan() argument
1285 trace_drv_stop_nan(local, sdata); in drv_stop_nan()
1286 local->ops->stop_nan(&local->hw, &sdata->vif); in drv_stop_nan()
1287 trace_drv_return_void(local); in drv_stop_nan()
1290 static inline int drv_nan_change_conf(struct ieee80211_local *local, in drv_nan_change_conf() argument
1300 if (!local->ops->nan_change_conf) in drv_nan_change_conf()
1303 trace_drv_nan_change_conf(local, sdata, conf, changes); in drv_nan_change_conf()
1304 ret = local->ops->nan_change_conf(&local->hw, &sdata->vif, conf, in drv_nan_change_conf()
1306 trace_drv_return_int(local, ret); in drv_nan_change_conf()
1311 static inline int drv_add_nan_func(struct ieee80211_local *local, in drv_add_nan_func() argument
1320 if (!local->ops->add_nan_func) in drv_add_nan_func()
1323 trace_drv_add_nan_func(local, sdata, nan_func); in drv_add_nan_func()
1324 ret = local->ops->add_nan_func(&local->hw, &sdata->vif, nan_func); in drv_add_nan_func()
1325 trace_drv_return_int(local, ret); in drv_add_nan_func()
1330 static inline void drv_del_nan_func(struct ieee80211_local *local, in drv_del_nan_func() argument
1337 trace_drv_del_nan_func(local, sdata, instance_id); in drv_del_nan_func()
1338 if (local->ops->del_nan_func) in drv_del_nan_func()
1339 local->ops->del_nan_func(&local->hw, &sdata->vif, instance_id); in drv_del_nan_func()
1340 trace_drv_return_void(local); in drv_del_nan_func()
1343 static inline int drv_set_tid_config(struct ieee80211_local *local, in drv_set_tid_config() argument
1351 ret = local->ops->set_tid_config(&local->hw, &sdata->vif, sta, in drv_set_tid_config()
1353 trace_drv_return_int(local, ret); in drv_set_tid_config()
1358 static inline int drv_reset_tid_config(struct ieee80211_local *local, in drv_reset_tid_config() argument
1365 ret = local->ops->reset_tid_config(&local->hw, &sdata->vif, sta, tids); in drv_reset_tid_config()
1366 trace_drv_return_int(local, ret); in drv_reset_tid_config()
1371 static inline void drv_update_vif_offload(struct ieee80211_local *local, in drv_update_vif_offload() argument
1377 if (!local->ops->update_vif_offload) in drv_update_vif_offload()
1380 trace_drv_update_vif_offload(local, sdata); in drv_update_vif_offload()
1381 local->ops->update_vif_offload(&local->hw, &sdata->vif); in drv_update_vif_offload()
1382 trace_drv_return_void(local); in drv_update_vif_offload()
1385 static inline void drv_sta_set_4addr(struct ieee80211_local *local, in drv_sta_set_4addr() argument
1393 trace_drv_sta_set_4addr(local, sdata, sta, enabled); in drv_sta_set_4addr()
1394 if (local->ops->sta_set_4addr) in drv_sta_set_4addr()
1395 local->ops->sta_set_4addr(&local->hw, &sdata->vif, sta, enabled); in drv_sta_set_4addr()
1396 trace_drv_return_void(local); in drv_sta_set_4addr()
1399 static inline void drv_sta_set_decap_offload(struct ieee80211_local *local, in drv_sta_set_decap_offload() argument
1408 trace_drv_sta_set_decap_offload(local, sdata, sta, enabled); in drv_sta_set_decap_offload()
1409 if (local->ops->sta_set_decap_offload) in drv_sta_set_decap_offload()
1410 local->ops->sta_set_decap_offload(&local->hw, &sdata->vif, sta, in drv_sta_set_decap_offload()
1412 trace_drv_return_void(local); in drv_sta_set_decap_offload()
1415 static inline void drv_add_twt_setup(struct ieee80211_local *local, in drv_add_twt_setup() argument
1429 trace_drv_add_twt_setup(local, sta, twt, twt_agrt); in drv_add_twt_setup()
1430 local->ops->add_twt_setup(&local->hw, sta, twt); in drv_add_twt_setup()
1431 trace_drv_return_void(local); in drv_add_twt_setup()
1434 static inline void drv_twt_teardown_request(struct ieee80211_local *local, in drv_twt_teardown_request() argument
1443 if (!local->ops->twt_teardown_request) in drv_twt_teardown_request()
1446 trace_drv_twt_teardown_request(local, sta, flowid); in drv_twt_teardown_request()
1447 local->ops->twt_teardown_request(&local->hw, sta, flowid); in drv_twt_teardown_request()
1448 trace_drv_return_void(local); in drv_twt_teardown_request()
1451 static inline int drv_net_fill_forward_path(struct ieee80211_local *local, in drv_net_fill_forward_path() argument
1463 trace_drv_net_fill_forward_path(local, sdata, sta); in drv_net_fill_forward_path()
1464 if (local->ops->net_fill_forward_path) in drv_net_fill_forward_path()
1465 ret = local->ops->net_fill_forward_path(&local->hw, in drv_net_fill_forward_path()
1468 trace_drv_return_int(local, ret); in drv_net_fill_forward_path()
1473 int drv_change_vif_links(struct ieee80211_local *local,
1477 int drv_change_sta_links(struct ieee80211_local *local,