Lines Matching full:local

16 	WARN_ONCE(!sdata->local->reconfig_failure &&				\
33 static inline void drv_tx(struct ieee80211_local *local, in drv_tx() argument
37 local->ops->tx(&local->hw, control, skb); in drv_tx()
40 static inline void drv_sync_rx_queues(struct ieee80211_local *local, in drv_sync_rx_queues() argument
43 if (local->ops->sync_rx_queues) { in drv_sync_rx_queues()
44 trace_drv_sync_rx_queues(local, sta->sdata, &sta->sta); in drv_sync_rx_queues()
45 local->ops->sync_rx_queues(&local->hw); in drv_sync_rx_queues()
46 trace_drv_return_void(local); in drv_sync_rx_queues()
53 struct ieee80211_local *local = sdata->local; in drv_get_et_strings() local
54 if (local->ops->get_et_strings) { in drv_get_et_strings()
55 trace_drv_get_et_strings(local, sset); in drv_get_et_strings()
56 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); in drv_get_et_strings()
57 trace_drv_return_void(local); in drv_get_et_strings()
65 struct ieee80211_local *local = sdata->local; in drv_get_et_stats() local
66 if (local->ops->get_et_stats) { in drv_get_et_stats()
67 trace_drv_get_et_stats(local); in drv_get_et_stats()
68 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); in drv_get_et_stats()
69 trace_drv_return_void(local); in drv_get_et_stats()
76 struct ieee80211_local *local = sdata->local; in drv_get_et_sset_count() local
78 if (local->ops->get_et_sset_count) { in drv_get_et_sset_count()
79 trace_drv_get_et_sset_count(local, sset); in drv_get_et_sset_count()
80 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, in drv_get_et_sset_count()
82 trace_drv_return_int(local, rv); in drv_get_et_sset_count()
87 int drv_start(struct ieee80211_local *local);
88 void drv_stop(struct ieee80211_local *local);
91 static inline int drv_suspend(struct ieee80211_local *local, in drv_suspend() argument
98 trace_drv_suspend(local); in drv_suspend()
99 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
100 trace_drv_return_int(local, ret); in drv_suspend()
104 static inline int drv_resume(struct ieee80211_local *local) in drv_resume() argument
110 trace_drv_resume(local); in drv_resume()
111 ret = local->ops->resume(&local->hw); in drv_resume()
112 trace_drv_return_int(local, ret); in drv_resume()
116 static inline void drv_set_wakeup(struct ieee80211_local *local, in drv_set_wakeup() argument
121 if (!local->ops->set_wakeup) in drv_set_wakeup()
124 trace_drv_set_wakeup(local, enabled); in drv_set_wakeup()
125 local->ops->set_wakeup(&local->hw, enabled); in drv_set_wakeup()
126 trace_drv_return_void(local); in drv_set_wakeup()
130 int drv_add_interface(struct ieee80211_local *local,
133 int drv_change_interface(struct ieee80211_local *local,
137 void drv_remove_interface(struct ieee80211_local *local,
140 static inline int drv_config(struct ieee80211_local *local, u32 changed) in drv_config() argument
146 trace_drv_config(local, changed); in drv_config()
147 ret = local->ops->config(&local->hw, changed); in drv_config()
148 trace_drv_return_int(local, ret); in drv_config()
152 static inline void drv_vif_cfg_changed(struct ieee80211_local *local, in drv_vif_cfg_changed() argument
161 trace_drv_vif_cfg_changed(local, sdata, changed); in drv_vif_cfg_changed()
162 if (local->ops->vif_cfg_changed) in drv_vif_cfg_changed()
163 local->ops->vif_cfg_changed(&local->hw, &sdata->vif, changed); in drv_vif_cfg_changed()
164 else if (local->ops->bss_info_changed) in drv_vif_cfg_changed()
165 local->ops->bss_info_changed(&local->hw, &sdata->vif, in drv_vif_cfg_changed()
167 trace_drv_return_void(local); in drv_vif_cfg_changed()
170 void drv_link_info_changed(struct ieee80211_local *local,
175 static inline u64 drv_prepare_multicast(struct ieee80211_local *local, in drv_prepare_multicast() argument
180 trace_drv_prepare_multicast(local, mc_list->count); in drv_prepare_multicast()
182 if (local->ops->prepare_multicast) in drv_prepare_multicast()
183 ret = local->ops->prepare_multicast(&local->hw, mc_list); in drv_prepare_multicast()
185 trace_drv_return_u64(local, ret); in drv_prepare_multicast()
190 static inline void drv_configure_filter(struct ieee80211_local *local, in drv_configure_filter() argument
197 trace_drv_configure_filter(local, changed_flags, total_flags, in drv_configure_filter()
199 local->ops->configure_filter(&local->hw, changed_flags, total_flags, in drv_configure_filter()
201 trace_drv_return_void(local); in drv_configure_filter()
204 static inline void drv_config_iface_filter(struct ieee80211_local *local, in drv_config_iface_filter() argument
211 trace_drv_config_iface_filter(local, sdata, filter_flags, in drv_config_iface_filter()
213 if (local->ops->config_iface_filter) in drv_config_iface_filter()
214 local->ops->config_iface_filter(&local->hw, &sdata->vif, in drv_config_iface_filter()
217 trace_drv_return_void(local); in drv_config_iface_filter()
220 static inline int drv_set_tim(struct ieee80211_local *local, in drv_set_tim() argument
224 trace_drv_set_tim(local, sta, set); in drv_set_tim()
225 if (local->ops->set_tim) in drv_set_tim()
226 ret = local->ops->set_tim(&local->hw, sta, set); in drv_set_tim()
227 trace_drv_return_int(local, ret); in drv_set_tim()
231 int drv_set_key(struct ieee80211_local *local,
237 static inline void drv_update_tkip_key(struct ieee80211_local *local, in drv_update_tkip_key() argument
252 trace_drv_update_tkip_key(local, sdata, conf, ista, iv32); in drv_update_tkip_key()
253 if (local->ops->update_tkip_key) in drv_update_tkip_key()
254 local->ops->update_tkip_key(&local->hw, &sdata->vif, conf, in drv_update_tkip_key()
256 trace_drv_return_void(local); in drv_update_tkip_key()
259 static inline int drv_hw_scan(struct ieee80211_local *local, in drv_hw_scan() argument
270 trace_drv_hw_scan(local, sdata); in drv_hw_scan()
271 ret = local->ops->hw_scan(&local->hw, &sdata->vif, req); in drv_hw_scan()
272 trace_drv_return_int(local, ret); in drv_hw_scan()
276 static inline void drv_cancel_hw_scan(struct ieee80211_local *local, in drv_cancel_hw_scan() argument
284 trace_drv_cancel_hw_scan(local, sdata); in drv_cancel_hw_scan()
285 local->ops->cancel_hw_scan(&local->hw, &sdata->vif); in drv_cancel_hw_scan()
286 trace_drv_return_void(local); in drv_cancel_hw_scan()
290 drv_sched_scan_start(struct ieee80211_local *local, in drv_sched_scan_start() argument
302 trace_drv_sched_scan_start(local, sdata); in drv_sched_scan_start()
303 ret = local->ops->sched_scan_start(&local->hw, &sdata->vif, in drv_sched_scan_start()
305 trace_drv_return_int(local, ret); in drv_sched_scan_start()
309 static inline int drv_sched_scan_stop(struct ieee80211_local *local, in drv_sched_scan_stop() argument
319 trace_drv_sched_scan_stop(local, sdata); in drv_sched_scan_stop()
320 ret = local->ops->sched_scan_stop(&local->hw, &sdata->vif); in drv_sched_scan_stop()
321 trace_drv_return_int(local, ret); in drv_sched_scan_stop()
326 static inline void drv_sw_scan_start(struct ieee80211_local *local, in drv_sw_scan_start() argument
332 trace_drv_sw_scan_start(local, sdata, mac_addr); in drv_sw_scan_start()
333 if (local->ops->sw_scan_start) in drv_sw_scan_start()
334 local->ops->sw_scan_start(&local->hw, &sdata->vif, mac_addr); in drv_sw_scan_start()
335 trace_drv_return_void(local); in drv_sw_scan_start()
338 static inline void drv_sw_scan_complete(struct ieee80211_local *local, in drv_sw_scan_complete() argument
343 trace_drv_sw_scan_complete(local, sdata); in drv_sw_scan_complete()
344 if (local->ops->sw_scan_complete) in drv_sw_scan_complete()
345 local->ops->sw_scan_complete(&local->hw, &sdata->vif); in drv_sw_scan_complete()
346 trace_drv_return_void(local); in drv_sw_scan_complete()
349 static inline int drv_get_stats(struct ieee80211_local *local, in drv_get_stats() argument
356 if (local->ops->get_stats) in drv_get_stats()
357 ret = local->ops->get_stats(&local->hw, stats); in drv_get_stats()
358 trace_drv_get_stats(local, stats, ret); in drv_get_stats()
363 static inline void drv_get_key_seq(struct ieee80211_local *local, in drv_get_key_seq() argument
367 if (local->ops->get_key_seq) in drv_get_key_seq()
368 local->ops->get_key_seq(&local->hw, &key->conf, seq); in drv_get_key_seq()
369 trace_drv_get_key_seq(local, &key->conf); in drv_get_key_seq()
372 static inline int drv_set_frag_threshold(struct ieee80211_local *local, in drv_set_frag_threshold() argument
379 trace_drv_set_frag_threshold(local, value); in drv_set_frag_threshold()
380 if (local->ops->set_frag_threshold) in drv_set_frag_threshold()
381 ret = local->ops->set_frag_threshold(&local->hw, value); in drv_set_frag_threshold()
382 trace_drv_return_int(local, ret); in drv_set_frag_threshold()
386 static inline int drv_set_rts_threshold(struct ieee80211_local *local, in drv_set_rts_threshold() argument
393 trace_drv_set_rts_threshold(local, value); in drv_set_rts_threshold()
394 if (local->ops->set_rts_threshold) in drv_set_rts_threshold()
395 ret = local->ops->set_rts_threshold(&local->hw, value); in drv_set_rts_threshold()
396 trace_drv_return_int(local, ret); in drv_set_rts_threshold()
400 static inline int drv_set_coverage_class(struct ieee80211_local *local, in drv_set_coverage_class() argument
406 trace_drv_set_coverage_class(local, value); in drv_set_coverage_class()
407 if (local->ops->set_coverage_class) in drv_set_coverage_class()
408 local->ops->set_coverage_class(&local->hw, value); in drv_set_coverage_class()
412 trace_drv_return_int(local, ret); in drv_set_coverage_class()
416 static inline void drv_sta_notify(struct ieee80211_local *local, in drv_sta_notify() argument
425 trace_drv_sta_notify(local, sdata, cmd, sta); in drv_sta_notify()
426 if (local->ops->sta_notify) in drv_sta_notify()
427 local->ops->sta_notify(&local->hw, &sdata->vif, cmd, sta); in drv_sta_notify()
428 trace_drv_return_void(local); in drv_sta_notify()
431 static inline int drv_sta_add(struct ieee80211_local *local, in drv_sta_add() argument
443 trace_drv_sta_add(local, sdata, sta); in drv_sta_add()
444 if (local->ops->sta_add) in drv_sta_add()
445 ret = local->ops->sta_add(&local->hw, &sdata->vif, sta); in drv_sta_add()
447 trace_drv_return_int(local, ret); in drv_sta_add()
452 static inline void drv_sta_remove(struct ieee80211_local *local, in drv_sta_remove() argument
462 trace_drv_sta_remove(local, sdata, sta); in drv_sta_remove()
463 if (local->ops->sta_remove) in drv_sta_remove()
464 local->ops->sta_remove(&local->hw, &sdata->vif, sta); in drv_sta_remove()
466 trace_drv_return_void(local); in drv_sta_remove()
470 static inline void drv_link_add_debugfs(struct ieee80211_local *local, in drv_link_add_debugfs() argument
481 if (local->ops->link_add_debugfs) in drv_link_add_debugfs()
482 local->ops->link_add_debugfs(&local->hw, &sdata->vif, in drv_link_add_debugfs()
486 static inline void drv_sta_add_debugfs(struct ieee80211_local *local, in drv_sta_add_debugfs() argument
497 if (local->ops->sta_add_debugfs) in drv_sta_add_debugfs()
498 local->ops->sta_add_debugfs(&local->hw, &sdata->vif, in drv_sta_add_debugfs()
502 static inline void drv_link_sta_add_debugfs(struct ieee80211_local *local, in drv_link_sta_add_debugfs() argument
513 if (local->ops->link_sta_add_debugfs) in drv_link_sta_add_debugfs()
514 local->ops->link_sta_add_debugfs(&local->hw, &sdata->vif, in drv_link_sta_add_debugfs()
519 static inline void drv_sta_pre_rcu_remove(struct ieee80211_local *local, in drv_sta_pre_rcu_remove() argument
529 trace_drv_sta_pre_rcu_remove(local, sdata, &sta->sta); in drv_sta_pre_rcu_remove()
530 if (local->ops->sta_pre_rcu_remove) in drv_sta_pre_rcu_remove()
531 local->ops->sta_pre_rcu_remove(&local->hw, &sdata->vif, in drv_sta_pre_rcu_remove()
533 trace_drv_return_void(local); in drv_sta_pre_rcu_remove()
537 int drv_sta_state(struct ieee80211_local *local,
544 int drv_sta_set_txpwr(struct ieee80211_local *local,
548 void drv_sta_rc_update(struct ieee80211_local *local,
552 static inline void drv_sta_rate_tbl_update(struct ieee80211_local *local, in drv_sta_rate_tbl_update() argument
560 trace_drv_sta_rate_tbl_update(local, sdata, sta); in drv_sta_rate_tbl_update()
561 if (local->ops->sta_rate_tbl_update) in drv_sta_rate_tbl_update()
562 local->ops->sta_rate_tbl_update(&local->hw, &sdata->vif, sta); in drv_sta_rate_tbl_update()
564 trace_drv_return_void(local); in drv_sta_rate_tbl_update()
567 static inline void drv_sta_statistics(struct ieee80211_local *local, in drv_sta_statistics() argument
576 trace_drv_sta_statistics(local, sdata, sta); in drv_sta_statistics()
577 if (local->ops->sta_statistics) in drv_sta_statistics()
578 local->ops->sta_statistics(&local->hw, &sdata->vif, sta, sinfo); in drv_sta_statistics()
579 trace_drv_return_void(local); in drv_sta_statistics()
582 int drv_conf_tx(struct ieee80211_local *local,
586 u64 drv_get_tsf(struct ieee80211_local *local,
588 void drv_set_tsf(struct ieee80211_local *local,
591 void drv_offset_tsf(struct ieee80211_local *local,
594 void drv_reset_tsf(struct ieee80211_local *local,
597 static inline int drv_tx_last_beacon(struct ieee80211_local *local) in drv_tx_last_beacon() argument
603 trace_drv_tx_last_beacon(local); in drv_tx_last_beacon()
604 if (local->ops->tx_last_beacon) in drv_tx_last_beacon()
605 ret = local->ops->tx_last_beacon(&local->hw); in drv_tx_last_beacon()
606 trace_drv_return_int(local, ret); in drv_tx_last_beacon()
610 int drv_ampdu_action(struct ieee80211_local *local,
614 static inline int drv_get_survey(struct ieee80211_local *local, int idx, in drv_get_survey() argument
619 trace_drv_get_survey(local, idx, survey); in drv_get_survey()
621 if (local->ops->get_survey) in drv_get_survey()
622 ret = local->ops->get_survey(&local->hw, idx, survey); in drv_get_survey()
624 trace_drv_return_int(local, ret); in drv_get_survey()
629 static inline void drv_rfkill_poll(struct ieee80211_local *local) in drv_rfkill_poll() argument
633 if (local->ops->rfkill_poll) in drv_rfkill_poll()
634 local->ops->rfkill_poll(&local->hw); in drv_rfkill_poll()
637 static inline void drv_flush(struct ieee80211_local *local, in drv_flush() argument
651 trace_drv_flush(local, queues, drop); in drv_flush()
652 if (local->ops->flush) in drv_flush()
653 local->ops->flush(&local->hw, vif, queues, drop); in drv_flush()
654 trace_drv_return_void(local); in drv_flush()
657 static inline void drv_flush_sta(struct ieee80211_local *local, in drv_flush_sta() argument
668 trace_drv_flush_sta(local, sdata, &sta->sta); in drv_flush_sta()
669 if (local->ops->flush_sta) in drv_flush_sta()
670 local->ops->flush_sta(&local->hw, &sdata->vif, &sta->sta); in drv_flush_sta()
671 trace_drv_return_void(local); in drv_flush_sta()
674 static inline void drv_channel_switch(struct ieee80211_local *local, in drv_channel_switch() argument
680 trace_drv_channel_switch(local, sdata, ch_switch); in drv_channel_switch()
681 local->ops->channel_switch(&local->hw, &sdata->vif, ch_switch); in drv_channel_switch()
682 trace_drv_return_void(local); in drv_channel_switch()
686 static inline int drv_set_antenna(struct ieee80211_local *local, in drv_set_antenna() argument
691 if (local->ops->set_antenna) in drv_set_antenna()
692 ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); in drv_set_antenna()
693 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna()
697 static inline int drv_get_antenna(struct ieee80211_local *local, in drv_get_antenna() argument
702 if (local->ops->get_antenna) in drv_get_antenna()
703 ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); in drv_get_antenna()
704 trace_drv_get_antenna(local, *tx_ant, *rx_ant, ret); in drv_get_antenna()
708 static inline int drv_remain_on_channel(struct ieee80211_local *local, in drv_remain_on_channel() argument
718 trace_drv_remain_on_channel(local, sdata, chan, duration, type); in drv_remain_on_channel()
719 ret = local->ops->remain_on_channel(&local->hw, &sdata->vif, in drv_remain_on_channel()
721 trace_drv_return_int(local, ret); in drv_remain_on_channel()
727 drv_cancel_remain_on_channel(struct ieee80211_local *local, in drv_cancel_remain_on_channel() argument
734 trace_drv_cancel_remain_on_channel(local, sdata); in drv_cancel_remain_on_channel()
735 ret = local->ops->cancel_remain_on_channel(&local->hw, &sdata->vif); in drv_cancel_remain_on_channel()
736 trace_drv_return_int(local, ret); in drv_cancel_remain_on_channel()
741 static inline int drv_set_ringparam(struct ieee80211_local *local, in drv_set_ringparam() argument
748 trace_drv_set_ringparam(local, tx, rx); in drv_set_ringparam()
749 if (local->ops->set_ringparam) in drv_set_ringparam()
750 ret = local->ops->set_ringparam(&local->hw, tx, rx); in drv_set_ringparam()
751 trace_drv_return_int(local, ret); in drv_set_ringparam()
756 static inline void drv_get_ringparam(struct ieee80211_local *local, in drv_get_ringparam() argument
761 trace_drv_get_ringparam(local, tx, tx_max, rx, rx_max); in drv_get_ringparam()
762 if (local->ops->get_ringparam) in drv_get_ringparam()
763 local->ops->get_ringparam(&local->hw, tx, tx_max, rx, rx_max); in drv_get_ringparam()
764 trace_drv_return_void(local); in drv_get_ringparam()
767 static inline bool drv_tx_frames_pending(struct ieee80211_local *local) in drv_tx_frames_pending() argument
773 trace_drv_tx_frames_pending(local); in drv_tx_frames_pending()
774 if (local->ops->tx_frames_pending) in drv_tx_frames_pending()
775 ret = local->ops->tx_frames_pending(&local->hw); in drv_tx_frames_pending()
776 trace_drv_return_bool(local, ret); in drv_tx_frames_pending()
781 static inline int drv_set_bitrate_mask(struct ieee80211_local *local, in drv_set_bitrate_mask() argument
792 trace_drv_set_bitrate_mask(local, sdata, mask); in drv_set_bitrate_mask()
793 if (local->ops->set_bitrate_mask) in drv_set_bitrate_mask()
794 ret = local->ops->set_bitrate_mask(&local->hw, in drv_set_bitrate_mask()
796 trace_drv_return_int(local, ret); in drv_set_bitrate_mask()
801 static inline void drv_set_rekey_data(struct ieee80211_local *local, in drv_set_rekey_data() argument
808 trace_drv_set_rekey_data(local, sdata, data); in drv_set_rekey_data()
809 if (local->ops->set_rekey_data) in drv_set_rekey_data()
810 local->ops->set_rekey_data(&local->hw, &sdata->vif, data); in drv_set_rekey_data()
811 trace_drv_return_void(local); in drv_set_rekey_data()
814 static inline void drv_event_callback(struct ieee80211_local *local, in drv_event_callback() argument
818 trace_drv_event_callback(local, sdata, event); in drv_event_callback()
819 if (local->ops->event_callback) in drv_event_callback()
820 local->ops->event_callback(&local->hw, &sdata->vif, event); in drv_event_callback()
821 trace_drv_return_void(local); in drv_event_callback()
825 drv_release_buffered_frames(struct ieee80211_local *local, in drv_release_buffered_frames() argument
830 trace_drv_release_buffered_frames(local, &sta->sta, tids, num_frames, in drv_release_buffered_frames()
832 if (local->ops->release_buffered_frames) in drv_release_buffered_frames()
833 local->ops->release_buffered_frames(&local->hw, &sta->sta, tids, in drv_release_buffered_frames()
836 trace_drv_return_void(local); in drv_release_buffered_frames()
840 drv_allow_buffered_frames(struct ieee80211_local *local, in drv_allow_buffered_frames() argument
845 trace_drv_allow_buffered_frames(local, &sta->sta, tids, num_frames, in drv_allow_buffered_frames()
847 if (local->ops->allow_buffered_frames) in drv_allow_buffered_frames()
848 local->ops->allow_buffered_frames(&local->hw, &sta->sta, in drv_allow_buffered_frames()
851 trace_drv_return_void(local); in drv_allow_buffered_frames()
854 static inline void drv_mgd_prepare_tx(struct ieee80211_local *local, in drv_mgd_prepare_tx() argument
864 trace_drv_mgd_prepare_tx(local, sdata, info->duration, in drv_mgd_prepare_tx()
866 if (local->ops->mgd_prepare_tx) in drv_mgd_prepare_tx()
867 local->ops->mgd_prepare_tx(&local->hw, &sdata->vif, info); in drv_mgd_prepare_tx()
868 trace_drv_return_void(local); in drv_mgd_prepare_tx()
871 static inline void drv_mgd_complete_tx(struct ieee80211_local *local, in drv_mgd_complete_tx() argument
881 trace_drv_mgd_complete_tx(local, sdata, info->duration, in drv_mgd_complete_tx()
883 if (local->ops->mgd_complete_tx) in drv_mgd_complete_tx()
884 local->ops->mgd_complete_tx(&local->hw, &sdata->vif, info); in drv_mgd_complete_tx()
885 trace_drv_return_void(local); in drv_mgd_complete_tx()
889 drv_mgd_protect_tdls_discover(struct ieee80211_local *local, in drv_mgd_protect_tdls_discover() argument
898 trace_drv_mgd_protect_tdls_discover(local, sdata); in drv_mgd_protect_tdls_discover()
899 if (local->ops->mgd_protect_tdls_discover) in drv_mgd_protect_tdls_discover()
900 local->ops->mgd_protect_tdls_discover(&local->hw, &sdata->vif); in drv_mgd_protect_tdls_discover()
901 trace_drv_return_void(local); in drv_mgd_protect_tdls_discover()
904 static inline int drv_add_chanctx(struct ieee80211_local *local, in drv_add_chanctx() argument
911 trace_drv_add_chanctx(local, ctx); in drv_add_chanctx()
912 if (local->ops->add_chanctx) in drv_add_chanctx()
913 ret = local->ops->add_chanctx(&local->hw, &ctx->conf); in drv_add_chanctx()
914 trace_drv_return_int(local, ret); in drv_add_chanctx()
921 static inline void drv_remove_chanctx(struct ieee80211_local *local, in drv_remove_chanctx() argument
929 trace_drv_remove_chanctx(local, ctx); in drv_remove_chanctx()
930 if (local->ops->remove_chanctx) in drv_remove_chanctx()
931 local->ops->remove_chanctx(&local->hw, &ctx->conf); in drv_remove_chanctx()
932 trace_drv_return_void(local); in drv_remove_chanctx()
936 static inline void drv_change_chanctx(struct ieee80211_local *local, in drv_change_chanctx() argument
942 trace_drv_change_chanctx(local, ctx, changed); in drv_change_chanctx()
943 if (local->ops->change_chanctx) { in drv_change_chanctx()
945 local->ops->change_chanctx(&local->hw, &ctx->conf, changed); in drv_change_chanctx()
947 trace_drv_return_void(local); in drv_change_chanctx()
958 int drv_assign_vif_chanctx(struct ieee80211_local *local,
962 void drv_unassign_vif_chanctx(struct ieee80211_local *local,
966 int drv_switch_vif_chanctx(struct ieee80211_local *local,
970 static inline int drv_start_ap(struct ieee80211_local *local, in drv_start_ap() argument
984 trace_drv_start_ap(local, sdata, link_conf); in drv_start_ap()
985 if (local->ops->start_ap) in drv_start_ap()
986 ret = local->ops->start_ap(&local->hw, &sdata->vif, link_conf); in drv_start_ap()
987 trace_drv_return_int(local, ret); in drv_start_ap()
991 static inline void drv_stop_ap(struct ieee80211_local *local, in drv_stop_ap() argument
1001 trace_drv_stop_ap(local, sdata, link_conf); in drv_stop_ap()
1002 if (local->ops->stop_ap) in drv_stop_ap()
1003 local->ops->stop_ap(&local->hw, &sdata->vif, link_conf); in drv_stop_ap()
1004 trace_drv_return_void(local); in drv_stop_ap()
1008 drv_reconfig_complete(struct ieee80211_local *local, in drv_reconfig_complete() argument
1013 trace_drv_reconfig_complete(local, reconfig_type); in drv_reconfig_complete()
1014 if (local->ops->reconfig_complete) in drv_reconfig_complete()
1015 local->ops->reconfig_complete(&local->hw, reconfig_type); in drv_reconfig_complete()
1016 trace_drv_return_void(local); in drv_reconfig_complete()
1020 drv_set_default_unicast_key(struct ieee80211_local *local, in drv_set_default_unicast_key() argument
1029 trace_drv_set_default_unicast_key(local, sdata, key_idx); in drv_set_default_unicast_key()
1030 if (local->ops->set_default_unicast_key) in drv_set_default_unicast_key()
1031 local->ops->set_default_unicast_key(&local->hw, &sdata->vif, in drv_set_default_unicast_key()
1033 trace_drv_return_void(local); in drv_set_default_unicast_key()
1037 static inline void drv_ipv6_addr_change(struct ieee80211_local *local, in drv_ipv6_addr_change() argument
1041 trace_drv_ipv6_addr_change(local, sdata); in drv_ipv6_addr_change()
1042 if (local->ops->ipv6_addr_change) in drv_ipv6_addr_change()
1043 local->ops->ipv6_addr_change(&local->hw, &sdata->vif, idev); in drv_ipv6_addr_change()
1044 trace_drv_return_void(local); in drv_ipv6_addr_change()
1052 struct ieee80211_local *local = sdata->local; in drv_channel_switch_beacon() local
1054 if (local->ops->channel_switch_beacon) { in drv_channel_switch_beacon()
1055 trace_drv_channel_switch_beacon(local, sdata, chandef); in drv_channel_switch_beacon()
1056 local->ops->channel_switch_beacon(&local->hw, &sdata->vif, in drv_channel_switch_beacon()
1065 struct ieee80211_local *local = sdata->local; in drv_pre_channel_switch() local
1071 trace_drv_pre_channel_switch(local, sdata, ch_switch); in drv_pre_channel_switch()
1072 if (local->ops->pre_channel_switch) in drv_pre_channel_switch()
1073 ret = local->ops->pre_channel_switch(&local->hw, &sdata->vif, in drv_pre_channel_switch()
1075 trace_drv_return_int(local, ret); in drv_pre_channel_switch()
1082 struct ieee80211_local *local = sdata->local; in drv_post_channel_switch() local
1088 trace_drv_post_channel_switch(local, sdata); in drv_post_channel_switch()
1089 if (local->ops->post_channel_switch) in drv_post_channel_switch()
1090 ret = local->ops->post_channel_switch(&local->hw, &sdata->vif); in drv_post_channel_switch()
1091 trace_drv_return_int(local, ret); in drv_post_channel_switch()
1098 struct ieee80211_local *local = sdata->local; in drv_abort_channel_switch() local
1103 trace_drv_abort_channel_switch(local, sdata); in drv_abort_channel_switch()
1105 if (local->ops->abort_channel_switch) in drv_abort_channel_switch()
1106 local->ops->abort_channel_switch(&local->hw, &sdata->vif); in drv_abort_channel_switch()
1113 struct ieee80211_local *local = sdata->local; in drv_channel_switch_rx_beacon() local
1118 trace_drv_channel_switch_rx_beacon(local, sdata, ch_switch); in drv_channel_switch_rx_beacon()
1119 if (local->ops->channel_switch_rx_beacon) in drv_channel_switch_rx_beacon()
1120 local->ops->channel_switch_rx_beacon(&local->hw, &sdata->vif, in drv_channel_switch_rx_beacon()
1124 static inline int drv_join_ibss(struct ieee80211_local *local, in drv_join_ibss() argument
1133 trace_drv_join_ibss(local, sdata, &sdata->vif.bss_conf); in drv_join_ibss()
1134 if (local->ops->join_ibss) in drv_join_ibss()
1135 ret = local->ops->join_ibss(&local->hw, &sdata->vif); in drv_join_ibss()
1136 trace_drv_return_int(local, ret); in drv_join_ibss()
1140 static inline void drv_leave_ibss(struct ieee80211_local *local, in drv_leave_ibss() argument
1147 trace_drv_leave_ibss(local, sdata); in drv_leave_ibss()
1148 if (local->ops->leave_ibss) in drv_leave_ibss()
1149 local->ops->leave_ibss(&local->hw, &sdata->vif); in drv_leave_ibss()
1150 trace_drv_return_void(local); in drv_leave_ibss()
1153 static inline u32 drv_get_expected_throughput(struct ieee80211_local *local, in drv_get_expected_throughput() argument
1159 if (local->ops->get_expected_throughput && sta->uploaded) in drv_get_expected_throughput()
1160 ret = local->ops->get_expected_throughput(&local->hw, &sta->sta); in drv_get_expected_throughput()
1161 trace_drv_return_u32(local, ret); in drv_get_expected_throughput()
1166 static inline int drv_get_txpower(struct ieee80211_local *local, in drv_get_txpower() argument
1171 if (!local->ops->get_txpower) in drv_get_txpower()
1174 ret = local->ops->get_txpower(&local->hw, &sdata->vif, dbm); in drv_get_txpower()
1175 trace_drv_get_txpower(local, sdata, *dbm, ret); in drv_get_txpower()
1181 drv_tdls_channel_switch(struct ieee80211_local *local, in drv_tdls_channel_switch() argument
1193 if (!local->ops->tdls_channel_switch) in drv_tdls_channel_switch()
1196 trace_drv_tdls_channel_switch(local, sdata, sta, oper_class, chandef); in drv_tdls_channel_switch()
1197 ret = local->ops->tdls_channel_switch(&local->hw, &sdata->vif, sta, in drv_tdls_channel_switch()
1200 trace_drv_return_int(local, ret); in drv_tdls_channel_switch()
1205 drv_tdls_cancel_channel_switch(struct ieee80211_local *local, in drv_tdls_cancel_channel_switch() argument
1213 if (!local->ops->tdls_cancel_channel_switch) in drv_tdls_cancel_channel_switch()
1216 trace_drv_tdls_cancel_channel_switch(local, sdata, sta); in drv_tdls_cancel_channel_switch()
1217 local->ops->tdls_cancel_channel_switch(&local->hw, &sdata->vif, sta); in drv_tdls_cancel_channel_switch()
1218 trace_drv_return_void(local); in drv_tdls_cancel_channel_switch()
1222 drv_tdls_recv_channel_switch(struct ieee80211_local *local, in drv_tdls_recv_channel_switch() argument
1226 trace_drv_tdls_recv_channel_switch(local, sdata, params); in drv_tdls_recv_channel_switch()
1227 if (local->ops->tdls_recv_channel_switch) in drv_tdls_recv_channel_switch()
1228 local->ops->tdls_recv_channel_switch(&local->hw, &sdata->vif, in drv_tdls_recv_channel_switch()
1230 trace_drv_return_void(local); in drv_tdls_recv_channel_switch()
1233 static inline void drv_wake_tx_queue(struct ieee80211_local *local, in drv_wake_tx_queue() argument
1239 if (local->in_reconfig) { in drv_wake_tx_queue()
1247 trace_drv_wake_tx_queue(local, sdata, txq); in drv_wake_tx_queue()
1248 local->ops->wake_tx_queue(&local->hw, &txq->txq); in drv_wake_tx_queue()
1251 static inline void schedule_and_wake_txq(struct ieee80211_local *local, in schedule_and_wake_txq() argument
1254 ieee80211_schedule_txq(&local->hw, &txqi->txq); in schedule_and_wake_txq()
1255 drv_wake_tx_queue(local, txqi); in schedule_and_wake_txq()
1258 static inline int drv_can_aggregate_in_amsdu(struct ieee80211_local *local, in drv_can_aggregate_in_amsdu() argument
1262 if (!local->ops->can_aggregate_in_amsdu) in drv_can_aggregate_in_amsdu()
1265 return local->ops->can_aggregate_in_amsdu(&local->hw, head, skb); in drv_can_aggregate_in_amsdu()
1269 drv_get_ftm_responder_stats(struct ieee80211_local *local, in drv_get_ftm_responder_stats() argument
1275 if (local->ops->get_ftm_responder_stats) in drv_get_ftm_responder_stats()
1276 ret = local->ops->get_ftm_responder_stats(&local->hw, in drv_get_ftm_responder_stats()
1279 trace_drv_get_ftm_responder_stats(local, sdata, ftm_stats); in drv_get_ftm_responder_stats()
1284 static inline int drv_start_pmsr(struct ieee80211_local *local, in drv_start_pmsr() argument
1294 trace_drv_start_pmsr(local, sdata); in drv_start_pmsr()
1296 if (local->ops->start_pmsr) in drv_start_pmsr()
1297 ret = local->ops->start_pmsr(&local->hw, &sdata->vif, request); in drv_start_pmsr()
1298 trace_drv_return_int(local, ret); in drv_start_pmsr()
1303 static inline void drv_abort_pmsr(struct ieee80211_local *local, in drv_abort_pmsr() argument
1307 trace_drv_abort_pmsr(local, sdata); in drv_abort_pmsr()
1313 if (local->ops->abort_pmsr) in drv_abort_pmsr()
1314 local->ops->abort_pmsr(&local->hw, &sdata->vif, request); in drv_abort_pmsr()
1315 trace_drv_return_void(local); in drv_abort_pmsr()
1318 static inline int drv_start_nan(struct ieee80211_local *local, in drv_start_nan() argument
1327 trace_drv_start_nan(local, sdata, conf); in drv_start_nan()
1328 ret = local->ops->start_nan(&local->hw, &sdata->vif, conf); in drv_start_nan()
1329 trace_drv_return_int(local, ret); in drv_start_nan()
1333 static inline void drv_stop_nan(struct ieee80211_local *local, in drv_stop_nan() argument
1339 trace_drv_stop_nan(local, sdata); in drv_stop_nan()
1340 local->ops->stop_nan(&local->hw, &sdata->vif); in drv_stop_nan()
1341 trace_drv_return_void(local); in drv_stop_nan()
1344 static inline int drv_nan_change_conf(struct ieee80211_local *local, in drv_nan_change_conf() argument
1354 if (!local->ops->nan_change_conf) in drv_nan_change_conf()
1357 trace_drv_nan_change_conf(local, sdata, conf, changes); in drv_nan_change_conf()
1358 ret = local->ops->nan_change_conf(&local->hw, &sdata->vif, conf, in drv_nan_change_conf()
1360 trace_drv_return_int(local, ret); in drv_nan_change_conf()
1365 static inline int drv_add_nan_func(struct ieee80211_local *local, in drv_add_nan_func() argument
1374 if (!local->ops->add_nan_func) in drv_add_nan_func()
1377 trace_drv_add_nan_func(local, sdata, nan_func); in drv_add_nan_func()
1378 ret = local->ops->add_nan_func(&local->hw, &sdata->vif, nan_func); in drv_add_nan_func()
1379 trace_drv_return_int(local, ret); in drv_add_nan_func()
1384 static inline void drv_del_nan_func(struct ieee80211_local *local, in drv_del_nan_func() argument
1391 trace_drv_del_nan_func(local, sdata, instance_id); in drv_del_nan_func()
1392 if (local->ops->del_nan_func) in drv_del_nan_func()
1393 local->ops->del_nan_func(&local->hw, &sdata->vif, instance_id); in drv_del_nan_func()
1394 trace_drv_return_void(local); in drv_del_nan_func()
1397 static inline int drv_set_tid_config(struct ieee80211_local *local, in drv_set_tid_config() argument
1405 ret = local->ops->set_tid_config(&local->hw, &sdata->vif, sta, in drv_set_tid_config()
1407 trace_drv_return_int(local, ret); in drv_set_tid_config()
1412 static inline int drv_reset_tid_config(struct ieee80211_local *local, in drv_reset_tid_config() argument
1419 ret = local->ops->reset_tid_config(&local->hw, &sdata->vif, sta, tids); in drv_reset_tid_config()
1420 trace_drv_return_int(local, ret); in drv_reset_tid_config()
1425 static inline void drv_update_vif_offload(struct ieee80211_local *local, in drv_update_vif_offload() argument
1431 if (!local->ops->update_vif_offload) in drv_update_vif_offload()
1434 trace_drv_update_vif_offload(local, sdata); in drv_update_vif_offload()
1435 local->ops->update_vif_offload(&local->hw, &sdata->vif); in drv_update_vif_offload()
1436 trace_drv_return_void(local); in drv_update_vif_offload()
1439 static inline void drv_sta_set_4addr(struct ieee80211_local *local, in drv_sta_set_4addr() argument
1447 trace_drv_sta_set_4addr(local, sdata, sta, enabled); in drv_sta_set_4addr()
1448 if (local->ops->sta_set_4addr) in drv_sta_set_4addr()
1449 local->ops->sta_set_4addr(&local->hw, &sdata->vif, sta, enabled); in drv_sta_set_4addr()
1450 trace_drv_return_void(local); in drv_sta_set_4addr()
1453 static inline void drv_sta_set_decap_offload(struct ieee80211_local *local, in drv_sta_set_decap_offload() argument
1462 trace_drv_sta_set_decap_offload(local, sdata, sta, enabled); in drv_sta_set_decap_offload()
1463 if (local->ops->sta_set_decap_offload) in drv_sta_set_decap_offload()
1464 local->ops->sta_set_decap_offload(&local->hw, &sdata->vif, sta, in drv_sta_set_decap_offload()
1466 trace_drv_return_void(local); in drv_sta_set_decap_offload()
1469 static inline void drv_add_twt_setup(struct ieee80211_local *local, in drv_add_twt_setup() argument
1483 trace_drv_add_twt_setup(local, sta, twt, twt_agrt); in drv_add_twt_setup()
1484 local->ops->add_twt_setup(&local->hw, sta, twt); in drv_add_twt_setup()
1485 trace_drv_return_void(local); in drv_add_twt_setup()
1488 static inline void drv_twt_teardown_request(struct ieee80211_local *local, in drv_twt_teardown_request() argument
1497 if (!local->ops->twt_teardown_request) in drv_twt_teardown_request()
1500 trace_drv_twt_teardown_request(local, sta, flowid); in drv_twt_teardown_request()
1501 local->ops->twt_teardown_request(&local->hw, sta, flowid); in drv_twt_teardown_request()
1502 trace_drv_return_void(local); in drv_twt_teardown_request()
1505 static inline int drv_net_fill_forward_path(struct ieee80211_local *local, in drv_net_fill_forward_path() argument
1517 trace_drv_net_fill_forward_path(local, sdata, sta); in drv_net_fill_forward_path()
1518 if (local->ops->net_fill_forward_path) in drv_net_fill_forward_path()
1519 ret = local->ops->net_fill_forward_path(&local->hw, in drv_net_fill_forward_path()
1522 trace_drv_return_int(local, ret); in drv_net_fill_forward_path()
1527 static inline int drv_net_setup_tc(struct ieee80211_local *local, in drv_net_setup_tc() argument
1535 trace_drv_net_setup_tc(local, sdata, type); in drv_net_setup_tc()
1536 if (local->ops->net_setup_tc) in drv_net_setup_tc()
1537 ret = local->ops->net_setup_tc(&local->hw, &sdata->vif, dev, in drv_net_setup_tc()
1539 trace_drv_return_int(local, ret); in drv_net_setup_tc()
1544 int drv_change_vif_links(struct ieee80211_local *local,
1548 int drv_change_sta_links(struct ieee80211_local *local,