Lines Matching full:local
17 WARN_ONCE(!sdata->local->reconfig_failure && \
34 static inline void drv_tx(struct ieee80211_local *local, in drv_tx() argument
38 local->ops->tx(&local->hw, control, skb); in drv_tx()
41 static inline void drv_sync_rx_queues(struct ieee80211_local *local, in drv_sync_rx_queues() argument
45 lockdep_assert_wiphy(local->hw.wiphy); in drv_sync_rx_queues()
47 if (local->ops->sync_rx_queues) { in drv_sync_rx_queues()
48 trace_drv_sync_rx_queues(local, sta->sdata, &sta->sta); in drv_sync_rx_queues()
49 local->ops->sync_rx_queues(&local->hw); in drv_sync_rx_queues()
50 trace_drv_return_void(local); in drv_sync_rx_queues()
57 struct ieee80211_local *local = sdata->local; in drv_get_et_strings() local
58 if (local->ops->get_et_strings) { in drv_get_et_strings()
59 trace_drv_get_et_strings(local, sset); in drv_get_et_strings()
60 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); in drv_get_et_strings()
61 trace_drv_return_void(local); in drv_get_et_strings()
69 struct ieee80211_local *local = sdata->local; in drv_get_et_stats() local
70 if (local->ops->get_et_stats) { in drv_get_et_stats()
71 trace_drv_get_et_stats(local); in drv_get_et_stats()
72 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); in drv_get_et_stats()
73 trace_drv_return_void(local); in drv_get_et_stats()
80 struct ieee80211_local *local = sdata->local; in drv_get_et_sset_count() local
82 if (local->ops->get_et_sset_count) { in drv_get_et_sset_count()
83 trace_drv_get_et_sset_count(local, sset); in drv_get_et_sset_count()
84 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, in drv_get_et_sset_count()
86 trace_drv_return_int(local, rv); in drv_get_et_sset_count()
91 int drv_start(struct ieee80211_local *local);
92 void drv_stop(struct ieee80211_local *local, bool suspend);
95 static inline int drv_suspend(struct ieee80211_local *local, in drv_suspend() argument
101 lockdep_assert_wiphy(local->hw.wiphy); in drv_suspend()
103 trace_drv_suspend(local); in drv_suspend()
104 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
105 trace_drv_return_int(local, ret); in drv_suspend()
109 static inline int drv_resume(struct ieee80211_local *local) in drv_resume() argument
114 lockdep_assert_wiphy(local->hw.wiphy); in drv_resume()
116 trace_drv_resume(local); in drv_resume()
117 ret = local->ops->resume(&local->hw); in drv_resume()
118 trace_drv_return_int(local, ret); in drv_resume()
122 static inline void drv_set_wakeup(struct ieee80211_local *local, in drv_set_wakeup() argument
126 lockdep_assert_wiphy(local->hw.wiphy); in drv_set_wakeup()
128 if (!local->ops->set_wakeup) in drv_set_wakeup()
131 trace_drv_set_wakeup(local, enabled); in drv_set_wakeup()
132 local->ops->set_wakeup(&local->hw, enabled); in drv_set_wakeup()
133 trace_drv_return_void(local); in drv_set_wakeup()
137 int drv_add_interface(struct ieee80211_local *local,
140 int drv_change_interface(struct ieee80211_local *local,
144 void drv_remove_interface(struct ieee80211_local *local,
147 static inline int drv_config(struct ieee80211_local *local, int radio_idx, in drv_config() argument
153 lockdep_assert_wiphy(local->hw.wiphy); in drv_config()
155 trace_drv_config(local, radio_idx, changed); in drv_config()
156 ret = local->ops->config(&local->hw, radio_idx, changed); in drv_config()
157 trace_drv_return_int(local, ret); in drv_config()
161 static inline void drv_vif_cfg_changed(struct ieee80211_local *local, in drv_vif_cfg_changed() argument
166 lockdep_assert_wiphy(local->hw.wiphy); in drv_vif_cfg_changed()
171 trace_drv_vif_cfg_changed(local, sdata, changed); in drv_vif_cfg_changed()
172 if (local->ops->vif_cfg_changed) in drv_vif_cfg_changed()
173 local->ops->vif_cfg_changed(&local->hw, &sdata->vif, changed); in drv_vif_cfg_changed()
174 else if (local->ops->bss_info_changed) in drv_vif_cfg_changed()
175 local->ops->bss_info_changed(&local->hw, &sdata->vif, in drv_vif_cfg_changed()
177 trace_drv_return_void(local); in drv_vif_cfg_changed()
180 void drv_link_info_changed(struct ieee80211_local *local,
185 static inline u64 drv_prepare_multicast(struct ieee80211_local *local, in drv_prepare_multicast() argument
190 trace_drv_prepare_multicast(local, mc_list->count); in drv_prepare_multicast()
192 if (local->ops->prepare_multicast) in drv_prepare_multicast()
193 ret = local->ops->prepare_multicast(&local->hw, mc_list); in drv_prepare_multicast()
195 trace_drv_return_u64(local, ret); in drv_prepare_multicast()
200 static inline void drv_configure_filter(struct ieee80211_local *local, in drv_configure_filter() argument
206 lockdep_assert_wiphy(local->hw.wiphy); in drv_configure_filter()
208 trace_drv_configure_filter(local, changed_flags, total_flags, in drv_configure_filter()
210 local->ops->configure_filter(&local->hw, changed_flags, total_flags, in drv_configure_filter()
212 trace_drv_return_void(local); in drv_configure_filter()
215 static inline void drv_config_iface_filter(struct ieee80211_local *local, in drv_config_iface_filter() argument
221 lockdep_assert_wiphy(local->hw.wiphy); in drv_config_iface_filter()
223 trace_drv_config_iface_filter(local, sdata, filter_flags, in drv_config_iface_filter()
225 if (local->ops->config_iface_filter) in drv_config_iface_filter()
226 local->ops->config_iface_filter(&local->hw, &sdata->vif, in drv_config_iface_filter()
229 trace_drv_return_void(local); in drv_config_iface_filter()
232 static inline int drv_set_tim(struct ieee80211_local *local, in drv_set_tim() argument
236 trace_drv_set_tim(local, sta, set); in drv_set_tim()
237 if (local->ops->set_tim) in drv_set_tim()
238 ret = local->ops->set_tim(&local->hw, sta, set); in drv_set_tim()
239 trace_drv_return_int(local, ret); in drv_set_tim()
243 int drv_set_key(struct ieee80211_local *local,
249 static inline void drv_update_tkip_key(struct ieee80211_local *local, in drv_update_tkip_key() argument
264 trace_drv_update_tkip_key(local, sdata, conf, ista, iv32); in drv_update_tkip_key()
265 if (local->ops->update_tkip_key) in drv_update_tkip_key()
266 local->ops->update_tkip_key(&local->hw, &sdata->vif, conf, in drv_update_tkip_key()
268 trace_drv_return_void(local); in drv_update_tkip_key()
271 static inline int drv_hw_scan(struct ieee80211_local *local, in drv_hw_scan() argument
278 lockdep_assert_wiphy(local->hw.wiphy); in drv_hw_scan()
283 trace_drv_hw_scan(local, sdata); in drv_hw_scan()
284 ret = local->ops->hw_scan(&local->hw, &sdata->vif, req); in drv_hw_scan()
285 trace_drv_return_int(local, ret); in drv_hw_scan()
289 static inline void drv_cancel_hw_scan(struct ieee80211_local *local, in drv_cancel_hw_scan() argument
293 lockdep_assert_wiphy(local->hw.wiphy); in drv_cancel_hw_scan()
298 trace_drv_cancel_hw_scan(local, sdata); in drv_cancel_hw_scan()
299 local->ops->cancel_hw_scan(&local->hw, &sdata->vif); in drv_cancel_hw_scan()
300 trace_drv_return_void(local); in drv_cancel_hw_scan()
304 drv_sched_scan_start(struct ieee80211_local *local, in drv_sched_scan_start() argument
312 lockdep_assert_wiphy(local->hw.wiphy); in drv_sched_scan_start()
317 trace_drv_sched_scan_start(local, sdata); in drv_sched_scan_start()
318 ret = local->ops->sched_scan_start(&local->hw, &sdata->vif, in drv_sched_scan_start()
320 trace_drv_return_int(local, ret); in drv_sched_scan_start()
324 static inline int drv_sched_scan_stop(struct ieee80211_local *local, in drv_sched_scan_stop() argument
330 lockdep_assert_wiphy(local->hw.wiphy); in drv_sched_scan_stop()
335 trace_drv_sched_scan_stop(local, sdata); in drv_sched_scan_stop()
336 ret = local->ops->sched_scan_stop(&local->hw, &sdata->vif); in drv_sched_scan_stop()
337 trace_drv_return_int(local, ret); in drv_sched_scan_stop()
342 static inline void drv_sw_scan_start(struct ieee80211_local *local, in drv_sw_scan_start() argument
347 lockdep_assert_wiphy(local->hw.wiphy); in drv_sw_scan_start()
349 trace_drv_sw_scan_start(local, sdata, mac_addr); in drv_sw_scan_start()
350 if (local->ops->sw_scan_start) in drv_sw_scan_start()
351 local->ops->sw_scan_start(&local->hw, &sdata->vif, mac_addr); in drv_sw_scan_start()
352 trace_drv_return_void(local); in drv_sw_scan_start()
355 static inline void drv_sw_scan_complete(struct ieee80211_local *local, in drv_sw_scan_complete() argument
359 lockdep_assert_wiphy(local->hw.wiphy); in drv_sw_scan_complete()
361 trace_drv_sw_scan_complete(local, sdata); in drv_sw_scan_complete()
362 if (local->ops->sw_scan_complete) in drv_sw_scan_complete()
363 local->ops->sw_scan_complete(&local->hw, &sdata->vif); in drv_sw_scan_complete()
364 trace_drv_return_void(local); in drv_sw_scan_complete()
367 static inline int drv_get_stats(struct ieee80211_local *local, in drv_get_stats() argument
373 lockdep_assert_wiphy(local->hw.wiphy); in drv_get_stats()
375 if (local->ops->get_stats) in drv_get_stats()
376 ret = local->ops->get_stats(&local->hw, stats); in drv_get_stats()
377 trace_drv_get_stats(local, stats, ret); in drv_get_stats()
382 static inline void drv_get_key_seq(struct ieee80211_local *local, in drv_get_key_seq() argument
386 if (local->ops->get_key_seq) in drv_get_key_seq()
387 local->ops->get_key_seq(&local->hw, &key->conf, seq); in drv_get_key_seq()
388 trace_drv_get_key_seq(local, &key->conf); in drv_get_key_seq()
391 static inline int drv_set_frag_threshold(struct ieee80211_local *local, in drv_set_frag_threshold() argument
397 lockdep_assert_wiphy(local->hw.wiphy); in drv_set_frag_threshold()
399 trace_drv_set_frag_threshold(local, radio_idx, value); in drv_set_frag_threshold()
400 if (local->ops->set_frag_threshold) in drv_set_frag_threshold()
401 ret = local->ops->set_frag_threshold(&local->hw, radio_idx, in drv_set_frag_threshold()
403 trace_drv_return_int(local, ret); in drv_set_frag_threshold()
407 static inline int drv_set_rts_threshold(struct ieee80211_local *local, in drv_set_rts_threshold() argument
413 lockdep_assert_wiphy(local->hw.wiphy); in drv_set_rts_threshold()
415 trace_drv_set_rts_threshold(local, radio_idx, value); in drv_set_rts_threshold()
416 if (local->ops->set_rts_threshold) in drv_set_rts_threshold()
417 ret = local->ops->set_rts_threshold(&local->hw, radio_idx, in drv_set_rts_threshold()
419 trace_drv_return_int(local, ret); in drv_set_rts_threshold()
423 static inline int drv_set_coverage_class(struct ieee80211_local *local, in drv_set_coverage_class() argument
428 lockdep_assert_wiphy(local->hw.wiphy); in drv_set_coverage_class()
430 trace_drv_set_coverage_class(local, radio_idx, value); in drv_set_coverage_class()
431 if (local->ops->set_coverage_class) in drv_set_coverage_class()
432 local->ops->set_coverage_class(&local->hw, radio_idx, value); in drv_set_coverage_class()
436 trace_drv_return_int(local, ret); in drv_set_coverage_class()
440 static inline void drv_sta_notify(struct ieee80211_local *local, in drv_sta_notify() argument
449 trace_drv_sta_notify(local, sdata, cmd, sta); in drv_sta_notify()
450 if (local->ops->sta_notify) in drv_sta_notify()
451 local->ops->sta_notify(&local->hw, &sdata->vif, cmd, sta); in drv_sta_notify()
452 trace_drv_return_void(local); in drv_sta_notify()
455 static inline int drv_sta_add(struct ieee80211_local *local, in drv_sta_add() argument
462 lockdep_assert_wiphy(local->hw.wiphy); in drv_sta_add()
468 trace_drv_sta_add(local, sdata, sta); in drv_sta_add()
469 if (local->ops->sta_add) in drv_sta_add()
470 ret = local->ops->sta_add(&local->hw, &sdata->vif, sta); in drv_sta_add()
472 trace_drv_return_int(local, ret); in drv_sta_add()
477 static inline void drv_sta_remove(struct ieee80211_local *local, in drv_sta_remove() argument
482 lockdep_assert_wiphy(local->hw.wiphy); in drv_sta_remove()
488 trace_drv_sta_remove(local, sdata, sta); in drv_sta_remove()
489 if (local->ops->sta_remove) in drv_sta_remove()
490 local->ops->sta_remove(&local->hw, &sdata->vif, sta); in drv_sta_remove()
492 trace_drv_return_void(local); in drv_sta_remove()
496 static inline void drv_vif_add_debugfs(struct ieee80211_local *local, in drv_vif_add_debugfs() argument
509 if (local->ops->vif_add_debugfs) in drv_vif_add_debugfs()
510 local->ops->vif_add_debugfs(&local->hw, &sdata->vif); in drv_vif_add_debugfs()
513 static inline void drv_link_add_debugfs(struct ieee80211_local *local, in drv_link_add_debugfs() argument
519 lockdep_assert_wiphy(local->hw.wiphy); in drv_link_add_debugfs()
525 if (local->ops->link_add_debugfs) in drv_link_add_debugfs()
526 local->ops->link_add_debugfs(&local->hw, &sdata->vif, in drv_link_add_debugfs()
530 static inline void drv_sta_add_debugfs(struct ieee80211_local *local, in drv_sta_add_debugfs() argument
536 lockdep_assert_wiphy(local->hw.wiphy); in drv_sta_add_debugfs()
542 if (local->ops->sta_add_debugfs) in drv_sta_add_debugfs()
543 local->ops->sta_add_debugfs(&local->hw, &sdata->vif, in drv_sta_add_debugfs()
547 static inline void drv_link_sta_add_debugfs(struct ieee80211_local *local, in drv_link_sta_add_debugfs() argument
553 lockdep_assert_wiphy(local->hw.wiphy); in drv_link_sta_add_debugfs()
559 if (local->ops->link_sta_add_debugfs) in drv_link_sta_add_debugfs()
560 local->ops->link_sta_add_debugfs(&local->hw, &sdata->vif, in drv_link_sta_add_debugfs()
564 static inline void drv_vif_add_debugfs(struct ieee80211_local *local, in drv_vif_add_debugfs() argument
571 static inline void drv_sta_pre_rcu_remove(struct ieee80211_local *local, in drv_sta_pre_rcu_remove() argument
576 lockdep_assert_wiphy(local->hw.wiphy); in drv_sta_pre_rcu_remove()
582 trace_drv_sta_pre_rcu_remove(local, sdata, &sta->sta); in drv_sta_pre_rcu_remove()
583 if (local->ops->sta_pre_rcu_remove) in drv_sta_pre_rcu_remove()
584 local->ops->sta_pre_rcu_remove(&local->hw, &sdata->vif, in drv_sta_pre_rcu_remove()
586 trace_drv_return_void(local); in drv_sta_pre_rcu_remove()
590 int drv_sta_state(struct ieee80211_local *local,
597 int drv_sta_set_txpwr(struct ieee80211_local *local,
601 void drv_link_sta_rc_update(struct ieee80211_local *local,
605 static inline void drv_sta_rate_tbl_update(struct ieee80211_local *local, in drv_sta_rate_tbl_update() argument
613 trace_drv_sta_rate_tbl_update(local, sdata, sta); in drv_sta_rate_tbl_update()
614 if (local->ops->sta_rate_tbl_update) in drv_sta_rate_tbl_update()
615 local->ops->sta_rate_tbl_update(&local->hw, &sdata->vif, sta); in drv_sta_rate_tbl_update()
617 trace_drv_return_void(local); in drv_sta_rate_tbl_update()
620 static inline void drv_sta_statistics(struct ieee80211_local *local, in drv_sta_statistics() argument
626 lockdep_assert_wiphy(local->hw.wiphy); in drv_sta_statistics()
632 trace_drv_sta_statistics(local, sdata, sta); in drv_sta_statistics()
633 if (local->ops->sta_statistics) in drv_sta_statistics()
634 local->ops->sta_statistics(&local->hw, &sdata->vif, sta, sinfo); in drv_sta_statistics()
635 trace_drv_return_void(local); in drv_sta_statistics()
638 static inline void drv_link_sta_statistics(struct ieee80211_local *local, in drv_link_sta_statistics() argument
644 lockdep_assert_wiphy(local->hw.wiphy); in drv_link_sta_statistics()
650 trace_drv_link_sta_statistics(local, sdata, link_sta); in drv_link_sta_statistics()
651 if (local->ops->link_sta_statistics) in drv_link_sta_statistics()
652 local->ops->link_sta_statistics(&local->hw, &sdata->vif, in drv_link_sta_statistics()
654 trace_drv_return_void(local); in drv_link_sta_statistics()
657 int drv_conf_tx(struct ieee80211_local *local,
661 u64 drv_get_tsf(struct ieee80211_local *local,
663 void drv_set_tsf(struct ieee80211_local *local,
666 void drv_offset_tsf(struct ieee80211_local *local,
669 void drv_reset_tsf(struct ieee80211_local *local,
672 static inline int drv_tx_last_beacon(struct ieee80211_local *local) in drv_tx_last_beacon() argument
677 lockdep_assert_wiphy(local->hw.wiphy); in drv_tx_last_beacon()
679 trace_drv_tx_last_beacon(local); in drv_tx_last_beacon()
680 if (local->ops->tx_last_beacon) in drv_tx_last_beacon()
681 ret = local->ops->tx_last_beacon(&local->hw); in drv_tx_last_beacon()
682 trace_drv_return_int(local, ret); in drv_tx_last_beacon()
686 int drv_ampdu_action(struct ieee80211_local *local,
690 static inline int drv_get_survey(struct ieee80211_local *local, int idx, in drv_get_survey() argument
696 lockdep_assert_wiphy(local->hw.wiphy); in drv_get_survey()
698 trace_drv_get_survey(local, idx, survey); in drv_get_survey()
700 if (local->ops->get_survey) in drv_get_survey()
701 ret = local->ops->get_survey(&local->hw, idx, survey); in drv_get_survey()
703 trace_drv_return_int(local, ret); in drv_get_survey()
708 static inline void drv_rfkill_poll(struct ieee80211_local *local) in drv_rfkill_poll() argument
711 lockdep_assert_wiphy(local->hw.wiphy); in drv_rfkill_poll()
713 if (local->ops->rfkill_poll) in drv_rfkill_poll()
714 local->ops->rfkill_poll(&local->hw); in drv_rfkill_poll()
717 static inline void drv_flush(struct ieee80211_local *local, in drv_flush() argument
724 lockdep_assert_wiphy(local->hw.wiphy); in drv_flush()
732 trace_drv_flush(local, queues, drop); in drv_flush()
733 if (local->ops->flush) in drv_flush()
734 local->ops->flush(&local->hw, vif, queues, drop); in drv_flush()
735 trace_drv_return_void(local); in drv_flush()
738 static inline void drv_flush_sta(struct ieee80211_local *local, in drv_flush_sta() argument
743 lockdep_assert_wiphy(local->hw.wiphy); in drv_flush_sta()
753 trace_drv_flush_sta(local, sdata, &sta->sta); in drv_flush_sta()
754 if (local->ops->flush_sta) in drv_flush_sta()
755 local->ops->flush_sta(&local->hw, &sdata->vif, &sta->sta); in drv_flush_sta()
756 trace_drv_return_void(local); in drv_flush_sta()
759 static inline void drv_channel_switch(struct ieee80211_local *local, in drv_channel_switch() argument
764 lockdep_assert_wiphy(local->hw.wiphy); in drv_channel_switch()
766 trace_drv_channel_switch(local, sdata, ch_switch); in drv_channel_switch()
767 local->ops->channel_switch(&local->hw, &sdata->vif, ch_switch); in drv_channel_switch()
768 trace_drv_return_void(local); in drv_channel_switch()
772 static inline int drv_set_antenna(struct ieee80211_local *local, in drv_set_antenna() argument
777 lockdep_assert_wiphy(local->hw.wiphy); in drv_set_antenna()
778 if (local->ops->set_antenna) in drv_set_antenna()
779 ret = local->ops->set_antenna(&local->hw, -1, tx_ant, rx_ant); in drv_set_antenna()
780 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna()
784 static inline int drv_get_antenna(struct ieee80211_local *local, int radio_idx, in drv_get_antenna() argument
789 lockdep_assert_wiphy(local->hw.wiphy); in drv_get_antenna()
790 if (local->ops->get_antenna) in drv_get_antenna()
791 ret = local->ops->get_antenna(&local->hw, radio_idx, in drv_get_antenna()
793 trace_drv_get_antenna(local, radio_idx, *tx_ant, *rx_ant, ret); in drv_get_antenna()
797 static inline int drv_remain_on_channel(struct ieee80211_local *local, in drv_remain_on_channel() argument
806 lockdep_assert_wiphy(local->hw.wiphy); in drv_remain_on_channel()
808 trace_drv_remain_on_channel(local, sdata, chan, duration, type); in drv_remain_on_channel()
809 ret = local->ops->remain_on_channel(&local->hw, &sdata->vif, in drv_remain_on_channel()
811 trace_drv_return_int(local, ret); in drv_remain_on_channel()
817 drv_cancel_remain_on_channel(struct ieee80211_local *local, in drv_cancel_remain_on_channel() argument
823 lockdep_assert_wiphy(local->hw.wiphy); in drv_cancel_remain_on_channel()
825 trace_drv_cancel_remain_on_channel(local, sdata); in drv_cancel_remain_on_channel()
826 ret = local->ops->cancel_remain_on_channel(&local->hw, &sdata->vif); in drv_cancel_remain_on_channel()
827 trace_drv_return_int(local, ret); in drv_cancel_remain_on_channel()
832 static inline int drv_set_ringparam(struct ieee80211_local *local, in drv_set_ringparam() argument
838 lockdep_assert_wiphy(local->hw.wiphy); in drv_set_ringparam()
840 trace_drv_set_ringparam(local, tx, rx); in drv_set_ringparam()
841 if (local->ops->set_ringparam) in drv_set_ringparam()
842 ret = local->ops->set_ringparam(&local->hw, tx, rx); in drv_set_ringparam()
843 trace_drv_return_int(local, ret); in drv_set_ringparam()
848 static inline void drv_get_ringparam(struct ieee80211_local *local, in drv_get_ringparam() argument
852 lockdep_assert_wiphy(local->hw.wiphy); in drv_get_ringparam()
854 trace_drv_get_ringparam(local, tx, tx_max, rx, rx_max); in drv_get_ringparam()
855 if (local->ops->get_ringparam) in drv_get_ringparam()
856 local->ops->get_ringparam(&local->hw, tx, tx_max, rx, rx_max); in drv_get_ringparam()
857 trace_drv_return_void(local); in drv_get_ringparam()
860 static inline bool drv_tx_frames_pending(struct ieee80211_local *local) in drv_tx_frames_pending() argument
865 lockdep_assert_wiphy(local->hw.wiphy); in drv_tx_frames_pending()
867 trace_drv_tx_frames_pending(local); in drv_tx_frames_pending()
868 if (local->ops->tx_frames_pending) in drv_tx_frames_pending()
869 ret = local->ops->tx_frames_pending(&local->hw); in drv_tx_frames_pending()
870 trace_drv_return_bool(local, ret); in drv_tx_frames_pending()
875 static inline int drv_set_bitrate_mask(struct ieee80211_local *local, in drv_set_bitrate_mask() argument
882 lockdep_assert_wiphy(local->hw.wiphy); in drv_set_bitrate_mask()
887 trace_drv_set_bitrate_mask(local, sdata, mask); in drv_set_bitrate_mask()
888 if (local->ops->set_bitrate_mask) in drv_set_bitrate_mask()
889 ret = local->ops->set_bitrate_mask(&local->hw, in drv_set_bitrate_mask()
891 trace_drv_return_int(local, ret); in drv_set_bitrate_mask()
896 static inline void drv_set_rekey_data(struct ieee80211_local *local, in drv_set_rekey_data() argument
901 lockdep_assert_wiphy(local->hw.wiphy); in drv_set_rekey_data()
909 trace_drv_set_rekey_data(local, sdata, data); in drv_set_rekey_data()
910 if (local->ops->set_rekey_data) in drv_set_rekey_data()
911 local->ops->set_rekey_data(&local->hw, &sdata->vif, data); in drv_set_rekey_data()
912 trace_drv_return_void(local); in drv_set_rekey_data()
915 static inline void drv_event_callback(struct ieee80211_local *local, in drv_event_callback() argument
919 trace_drv_event_callback(local, sdata, event); in drv_event_callback()
920 if (local->ops->event_callback) in drv_event_callback()
921 local->ops->event_callback(&local->hw, &sdata->vif, event); in drv_event_callback()
922 trace_drv_return_void(local); in drv_event_callback()
926 drv_release_buffered_frames(struct ieee80211_local *local, in drv_release_buffered_frames() argument
931 trace_drv_release_buffered_frames(local, &sta->sta, tids, num_frames, in drv_release_buffered_frames()
933 if (local->ops->release_buffered_frames) in drv_release_buffered_frames()
934 local->ops->release_buffered_frames(&local->hw, &sta->sta, tids, in drv_release_buffered_frames()
937 trace_drv_return_void(local); in drv_release_buffered_frames()
941 drv_allow_buffered_frames(struct ieee80211_local *local, in drv_allow_buffered_frames() argument
946 trace_drv_allow_buffered_frames(local, &sta->sta, tids, num_frames, in drv_allow_buffered_frames()
948 if (local->ops->allow_buffered_frames) in drv_allow_buffered_frames()
949 local->ops->allow_buffered_frames(&local->hw, &sta->sta, in drv_allow_buffered_frames()
952 trace_drv_return_void(local); in drv_allow_buffered_frames()
955 static inline void drv_mgd_prepare_tx(struct ieee80211_local *local, in drv_mgd_prepare_tx() argument
960 lockdep_assert_wiphy(local->hw.wiphy); in drv_mgd_prepare_tx()
967 trace_drv_mgd_prepare_tx(local, sdata, info->duration, in drv_mgd_prepare_tx()
969 if (local->ops->mgd_prepare_tx) in drv_mgd_prepare_tx()
970 local->ops->mgd_prepare_tx(&local->hw, &sdata->vif, info); in drv_mgd_prepare_tx()
971 trace_drv_return_void(local); in drv_mgd_prepare_tx()
974 static inline void drv_mgd_complete_tx(struct ieee80211_local *local, in drv_mgd_complete_tx() argument
979 lockdep_assert_wiphy(local->hw.wiphy); in drv_mgd_complete_tx()
986 trace_drv_mgd_complete_tx(local, sdata, info->duration, in drv_mgd_complete_tx()
988 if (local->ops->mgd_complete_tx) in drv_mgd_complete_tx()
989 local->ops->mgd_complete_tx(&local->hw, &sdata->vif, info); in drv_mgd_complete_tx()
990 trace_drv_return_void(local); in drv_mgd_complete_tx()
994 drv_mgd_protect_tdls_discover(struct ieee80211_local *local, in drv_mgd_protect_tdls_discover() argument
999 lockdep_assert_wiphy(local->hw.wiphy); in drv_mgd_protect_tdls_discover()
1007 trace_drv_mgd_protect_tdls_discover(local, sdata); in drv_mgd_protect_tdls_discover()
1008 if (local->ops->mgd_protect_tdls_discover) in drv_mgd_protect_tdls_discover()
1009 local->ops->mgd_protect_tdls_discover(&local->hw, &sdata->vif, in drv_mgd_protect_tdls_discover()
1011 trace_drv_return_void(local); in drv_mgd_protect_tdls_discover()
1014 static inline int drv_add_chanctx(struct ieee80211_local *local, in drv_add_chanctx() argument
1020 lockdep_assert_wiphy(local->hw.wiphy); in drv_add_chanctx()
1022 trace_drv_add_chanctx(local, ctx); in drv_add_chanctx()
1023 if (local->ops->add_chanctx) in drv_add_chanctx()
1024 ret = local->ops->add_chanctx(&local->hw, &ctx->conf); in drv_add_chanctx()
1025 trace_drv_return_int(local, ret); in drv_add_chanctx()
1032 static inline void drv_remove_chanctx(struct ieee80211_local *local, in drv_remove_chanctx() argument
1036 lockdep_assert_wiphy(local->hw.wiphy); in drv_remove_chanctx()
1041 trace_drv_remove_chanctx(local, ctx); in drv_remove_chanctx()
1042 if (local->ops->remove_chanctx) in drv_remove_chanctx()
1043 local->ops->remove_chanctx(&local->hw, &ctx->conf); in drv_remove_chanctx()
1044 trace_drv_return_void(local); in drv_remove_chanctx()
1048 static inline void drv_change_chanctx(struct ieee80211_local *local, in drv_change_chanctx() argument
1053 lockdep_assert_wiphy(local->hw.wiphy); in drv_change_chanctx()
1055 trace_drv_change_chanctx(local, ctx, changed); in drv_change_chanctx()
1056 if (local->ops->change_chanctx) { in drv_change_chanctx()
1058 local->ops->change_chanctx(&local->hw, &ctx->conf, changed); in drv_change_chanctx()
1060 trace_drv_return_void(local); in drv_change_chanctx()
1063 int drv_assign_vif_chanctx(struct ieee80211_local *local,
1067 void drv_unassign_vif_chanctx(struct ieee80211_local *local,
1071 int drv_switch_vif_chanctx(struct ieee80211_local *local,
1075 static inline int drv_start_ap(struct ieee80211_local *local, in drv_start_ap() argument
1082 lockdep_assert_wiphy(local->hw.wiphy); in drv_start_ap()
1087 trace_drv_start_ap(local, sdata, link_conf); in drv_start_ap()
1088 if (local->ops->start_ap) in drv_start_ap()
1089 ret = local->ops->start_ap(&local->hw, &sdata->vif, link_conf); in drv_start_ap()
1090 trace_drv_return_int(local, ret); in drv_start_ap()
1094 static inline void drv_stop_ap(struct ieee80211_local *local, in drv_stop_ap() argument
1099 lockdep_assert_wiphy(local->hw.wiphy); in drv_stop_ap()
1104 trace_drv_stop_ap(local, sdata, link_conf); in drv_stop_ap()
1105 if (local->ops->stop_ap) in drv_stop_ap()
1106 local->ops->stop_ap(&local->hw, &sdata->vif, link_conf); in drv_stop_ap()
1107 trace_drv_return_void(local); in drv_stop_ap()
1111 drv_reconfig_complete(struct ieee80211_local *local, in drv_reconfig_complete() argument
1115 lockdep_assert_wiphy(local->hw.wiphy); in drv_reconfig_complete()
1117 trace_drv_reconfig_complete(local, reconfig_type); in drv_reconfig_complete()
1118 if (local->ops->reconfig_complete) in drv_reconfig_complete()
1119 local->ops->reconfig_complete(&local->hw, reconfig_type); in drv_reconfig_complete()
1120 trace_drv_return_void(local); in drv_reconfig_complete()
1124 drv_set_default_unicast_key(struct ieee80211_local *local, in drv_set_default_unicast_key() argument
1129 lockdep_assert_wiphy(local->hw.wiphy); in drv_set_default_unicast_key()
1136 trace_drv_set_default_unicast_key(local, sdata, key_idx); in drv_set_default_unicast_key()
1137 if (local->ops->set_default_unicast_key) in drv_set_default_unicast_key()
1138 local->ops->set_default_unicast_key(&local->hw, &sdata->vif, in drv_set_default_unicast_key()
1140 trace_drv_return_void(local); in drv_set_default_unicast_key()
1144 static inline void drv_ipv6_addr_change(struct ieee80211_local *local, in drv_ipv6_addr_change() argument
1148 trace_drv_ipv6_addr_change(local, sdata); in drv_ipv6_addr_change()
1149 if (local->ops->ipv6_addr_change) in drv_ipv6_addr_change()
1150 local->ops->ipv6_addr_change(&local->hw, &sdata->vif, idev); in drv_ipv6_addr_change()
1151 trace_drv_return_void(local); in drv_ipv6_addr_change()
1159 struct ieee80211_local *local = sdata->local; in drv_channel_switch_beacon() local
1162 lockdep_assert_wiphy(local->hw.wiphy); in drv_channel_switch_beacon()
1164 if (local->ops->channel_switch_beacon) { in drv_channel_switch_beacon()
1165 trace_drv_channel_switch_beacon(local, sdata, chandef); in drv_channel_switch_beacon()
1166 local->ops->channel_switch_beacon(&local->hw, &sdata->vif, in drv_channel_switch_beacon()
1175 struct ieee80211_local *local = sdata->local; in drv_pre_channel_switch() local
1179 lockdep_assert_wiphy(local->hw.wiphy); in drv_pre_channel_switch()
1187 trace_drv_pre_channel_switch(local, sdata, ch_switch); in drv_pre_channel_switch()
1188 if (local->ops->pre_channel_switch) in drv_pre_channel_switch()
1189 ret = local->ops->pre_channel_switch(&local->hw, &sdata->vif, in drv_pre_channel_switch()
1191 trace_drv_return_int(local, ret); in drv_pre_channel_switch()
1199 struct ieee80211_local *local = sdata->local; in drv_post_channel_switch() local
1203 lockdep_assert_wiphy(local->hw.wiphy); in drv_post_channel_switch()
1211 trace_drv_post_channel_switch(local, sdata); in drv_post_channel_switch()
1212 if (local->ops->post_channel_switch) in drv_post_channel_switch()
1213 ret = local->ops->post_channel_switch(&local->hw, &sdata->vif, in drv_post_channel_switch()
1215 trace_drv_return_int(local, ret); in drv_post_channel_switch()
1223 struct ieee80211_local *local = sdata->local; in drv_abort_channel_switch() local
1226 lockdep_assert_wiphy(local->hw.wiphy); in drv_abort_channel_switch()
1234 trace_drv_abort_channel_switch(local, sdata); in drv_abort_channel_switch()
1236 if (local->ops->abort_channel_switch) in drv_abort_channel_switch()
1237 local->ops->abort_channel_switch(&local->hw, &sdata->vif, in drv_abort_channel_switch()
1245 struct ieee80211_local *local = sdata->local; in drv_channel_switch_rx_beacon() local
1248 lockdep_assert_wiphy(local->hw.wiphy); in drv_channel_switch_rx_beacon()
1256 trace_drv_channel_switch_rx_beacon(local, sdata, ch_switch); in drv_channel_switch_rx_beacon()
1257 if (local->ops->channel_switch_rx_beacon) in drv_channel_switch_rx_beacon()
1258 local->ops->channel_switch_rx_beacon(&local->hw, &sdata->vif, in drv_channel_switch_rx_beacon()
1262 static inline int drv_join_ibss(struct ieee80211_local *local, in drv_join_ibss() argument
1268 lockdep_assert_wiphy(local->hw.wiphy); in drv_join_ibss()
1272 trace_drv_join_ibss(local, sdata, &sdata->vif.bss_conf); in drv_join_ibss()
1273 if (local->ops->join_ibss) in drv_join_ibss()
1274 ret = local->ops->join_ibss(&local->hw, &sdata->vif); in drv_join_ibss()
1275 trace_drv_return_int(local, ret); in drv_join_ibss()
1279 static inline void drv_leave_ibss(struct ieee80211_local *local, in drv_leave_ibss() argument
1283 lockdep_assert_wiphy(local->hw.wiphy); in drv_leave_ibss()
1287 trace_drv_leave_ibss(local, sdata); in drv_leave_ibss()
1288 if (local->ops->leave_ibss) in drv_leave_ibss()
1289 local->ops->leave_ibss(&local->hw, &sdata->vif); in drv_leave_ibss()
1290 trace_drv_return_void(local); in drv_leave_ibss()
1293 static inline u32 drv_get_expected_throughput(struct ieee80211_local *local, in drv_get_expected_throughput() argument
1299 if (local->ops->get_expected_throughput && sta->uploaded) in drv_get_expected_throughput()
1300 ret = local->ops->get_expected_throughput(&local->hw, &sta->sta); in drv_get_expected_throughput()
1301 trace_drv_return_u32(local, ret); in drv_get_expected_throughput()
1306 static inline int drv_get_txpower(struct ieee80211_local *local, in drv_get_txpower() argument
1313 lockdep_assert_wiphy(local->hw.wiphy); in drv_get_txpower()
1315 if (!local->ops->get_txpower) in drv_get_txpower()
1318 ret = local->ops->get_txpower(&local->hw, &sdata->vif, link_id, dbm); in drv_get_txpower()
1319 trace_drv_get_txpower(local, sdata, link_id, *dbm, ret); in drv_get_txpower()
1325 drv_tdls_channel_switch(struct ieee80211_local *local, in drv_tdls_channel_switch() argument
1334 lockdep_assert_wiphy(local->hw.wiphy); in drv_tdls_channel_switch()
1338 if (!local->ops->tdls_channel_switch) in drv_tdls_channel_switch()
1341 trace_drv_tdls_channel_switch(local, sdata, sta, oper_class, chandef); in drv_tdls_channel_switch()
1342 ret = local->ops->tdls_channel_switch(&local->hw, &sdata->vif, sta, in drv_tdls_channel_switch()
1345 trace_drv_return_int(local, ret); in drv_tdls_channel_switch()
1350 drv_tdls_cancel_channel_switch(struct ieee80211_local *local, in drv_tdls_cancel_channel_switch() argument
1355 lockdep_assert_wiphy(local->hw.wiphy); in drv_tdls_cancel_channel_switch()
1359 if (!local->ops->tdls_cancel_channel_switch) in drv_tdls_cancel_channel_switch()
1362 trace_drv_tdls_cancel_channel_switch(local, sdata, sta); in drv_tdls_cancel_channel_switch()
1363 local->ops->tdls_cancel_channel_switch(&local->hw, &sdata->vif, sta); in drv_tdls_cancel_channel_switch()
1364 trace_drv_return_void(local); in drv_tdls_cancel_channel_switch()
1368 drv_tdls_recv_channel_switch(struct ieee80211_local *local, in drv_tdls_recv_channel_switch() argument
1372 trace_drv_tdls_recv_channel_switch(local, sdata, params); in drv_tdls_recv_channel_switch()
1373 if (local->ops->tdls_recv_channel_switch) in drv_tdls_recv_channel_switch()
1374 local->ops->tdls_recv_channel_switch(&local->hw, &sdata->vif, in drv_tdls_recv_channel_switch()
1376 trace_drv_return_void(local); in drv_tdls_recv_channel_switch()
1379 static inline void drv_wake_tx_queue(struct ieee80211_local *local, in drv_wake_tx_queue() argument
1385 if (local->in_reconfig) { in drv_wake_tx_queue()
1393 trace_drv_wake_tx_queue(local, sdata, txq); in drv_wake_tx_queue()
1394 local->ops->wake_tx_queue(&local->hw, &txq->txq); in drv_wake_tx_queue()
1397 static inline void schedule_and_wake_txq(struct ieee80211_local *local, in schedule_and_wake_txq() argument
1400 ieee80211_schedule_txq(&local->hw, &txqi->txq); in schedule_and_wake_txq()
1401 drv_wake_tx_queue(local, txqi); in schedule_and_wake_txq()
1404 static inline int drv_can_aggregate_in_amsdu(struct ieee80211_local *local, in drv_can_aggregate_in_amsdu() argument
1408 if (!local->ops->can_aggregate_in_amsdu) in drv_can_aggregate_in_amsdu()
1411 return local->ops->can_aggregate_in_amsdu(&local->hw, head, skb); in drv_can_aggregate_in_amsdu()
1415 drv_get_ftm_responder_stats(struct ieee80211_local *local, in drv_get_ftm_responder_stats() argument
1422 lockdep_assert_wiphy(local->hw.wiphy); in drv_get_ftm_responder_stats()
1426 if (local->ops->get_ftm_responder_stats) in drv_get_ftm_responder_stats()
1427 ret = local->ops->get_ftm_responder_stats(&local->hw, in drv_get_ftm_responder_stats()
1430 trace_drv_get_ftm_responder_stats(local, sdata, ftm_stats); in drv_get_ftm_responder_stats()
1435 static inline int drv_start_pmsr(struct ieee80211_local *local, in drv_start_pmsr() argument
1442 lockdep_assert_wiphy(local->hw.wiphy); in drv_start_pmsr()
1446 trace_drv_start_pmsr(local, sdata); in drv_start_pmsr()
1448 if (local->ops->start_pmsr) in drv_start_pmsr()
1449 ret = local->ops->start_pmsr(&local->hw, &sdata->vif, request); in drv_start_pmsr()
1450 trace_drv_return_int(local, ret); in drv_start_pmsr()
1455 static inline void drv_abort_pmsr(struct ieee80211_local *local, in drv_abort_pmsr() argument
1459 trace_drv_abort_pmsr(local, sdata); in drv_abort_pmsr()
1462 lockdep_assert_wiphy(local->hw.wiphy); in drv_abort_pmsr()
1466 if (local->ops->abort_pmsr) in drv_abort_pmsr()
1467 local->ops->abort_pmsr(&local->hw, &sdata->vif, request); in drv_abort_pmsr()
1468 trace_drv_return_void(local); in drv_abort_pmsr()
1471 static inline int drv_start_nan(struct ieee80211_local *local, in drv_start_nan() argument
1478 lockdep_assert_wiphy(local->hw.wiphy); in drv_start_nan()
1481 trace_drv_start_nan(local, sdata, conf); in drv_start_nan()
1482 ret = local->ops->start_nan(&local->hw, &sdata->vif, conf); in drv_start_nan()
1483 trace_drv_return_int(local, ret); in drv_start_nan()
1487 static inline void drv_stop_nan(struct ieee80211_local *local, in drv_stop_nan() argument
1491 lockdep_assert_wiphy(local->hw.wiphy); in drv_stop_nan()
1494 trace_drv_stop_nan(local, sdata); in drv_stop_nan()
1495 local->ops->stop_nan(&local->hw, &sdata->vif); in drv_stop_nan()
1496 trace_drv_return_void(local); in drv_stop_nan()
1499 static inline int drv_nan_change_conf(struct ieee80211_local *local, in drv_nan_change_conf() argument
1507 lockdep_assert_wiphy(local->hw.wiphy); in drv_nan_change_conf()
1510 if (!local->ops->nan_change_conf) in drv_nan_change_conf()
1513 trace_drv_nan_change_conf(local, sdata, conf, changes); in drv_nan_change_conf()
1514 ret = local->ops->nan_change_conf(&local->hw, &sdata->vif, conf, in drv_nan_change_conf()
1516 trace_drv_return_int(local, ret); in drv_nan_change_conf()
1521 static inline int drv_add_nan_func(struct ieee80211_local *local, in drv_add_nan_func() argument
1528 lockdep_assert_wiphy(local->hw.wiphy); in drv_add_nan_func()
1531 if (!local->ops->add_nan_func) in drv_add_nan_func()
1534 trace_drv_add_nan_func(local, sdata, nan_func); in drv_add_nan_func()
1535 ret = local->ops->add_nan_func(&local->hw, &sdata->vif, nan_func); in drv_add_nan_func()
1536 trace_drv_return_int(local, ret); in drv_add_nan_func()
1541 static inline void drv_del_nan_func(struct ieee80211_local *local, in drv_del_nan_func() argument
1546 lockdep_assert_wiphy(local->hw.wiphy); in drv_del_nan_func()
1549 trace_drv_del_nan_func(local, sdata, instance_id); in drv_del_nan_func()
1550 if (local->ops->del_nan_func) in drv_del_nan_func()
1551 local->ops->del_nan_func(&local->hw, &sdata->vif, instance_id); in drv_del_nan_func()
1552 trace_drv_return_void(local); in drv_del_nan_func()
1555 static inline int drv_set_tid_config(struct ieee80211_local *local, in drv_set_tid_config() argument
1563 lockdep_assert_wiphy(local->hw.wiphy); in drv_set_tid_config()
1564 ret = local->ops->set_tid_config(&local->hw, &sdata->vif, sta, in drv_set_tid_config()
1566 trace_drv_return_int(local, ret); in drv_set_tid_config()
1571 static inline int drv_reset_tid_config(struct ieee80211_local *local, in drv_reset_tid_config() argument
1578 lockdep_assert_wiphy(local->hw.wiphy); in drv_reset_tid_config()
1579 ret = local->ops->reset_tid_config(&local->hw, &sdata->vif, sta, tids); in drv_reset_tid_config()
1580 trace_drv_return_int(local, ret); in drv_reset_tid_config()
1585 static inline void drv_update_vif_offload(struct ieee80211_local *local, in drv_update_vif_offload() argument
1589 lockdep_assert_wiphy(local->hw.wiphy); in drv_update_vif_offload()
1592 if (!local->ops->update_vif_offload) in drv_update_vif_offload()
1595 trace_drv_update_vif_offload(local, sdata); in drv_update_vif_offload()
1596 local->ops->update_vif_offload(&local->hw, &sdata->vif); in drv_update_vif_offload()
1597 trace_drv_return_void(local); in drv_update_vif_offload()
1600 static inline void drv_sta_set_4addr(struct ieee80211_local *local, in drv_sta_set_4addr() argument
1607 lockdep_assert_wiphy(local->hw.wiphy); in drv_sta_set_4addr()
1611 trace_drv_sta_set_4addr(local, sdata, sta, enabled); in drv_sta_set_4addr()
1612 if (local->ops->sta_set_4addr) in drv_sta_set_4addr()
1613 local->ops->sta_set_4addr(&local->hw, &sdata->vif, sta, enabled); in drv_sta_set_4addr()
1614 trace_drv_return_void(local); in drv_sta_set_4addr()
1617 static inline void drv_sta_set_decap_offload(struct ieee80211_local *local, in drv_sta_set_decap_offload() argument
1625 lockdep_assert_wiphy(local->hw.wiphy); in drv_sta_set_decap_offload()
1629 trace_drv_sta_set_decap_offload(local, sdata, sta, enabled); in drv_sta_set_decap_offload()
1630 if (local->ops->sta_set_decap_offload) in drv_sta_set_decap_offload()
1631 local->ops->sta_set_decap_offload(&local->hw, &sdata->vif, sta, in drv_sta_set_decap_offload()
1633 trace_drv_return_void(local); in drv_sta_set_decap_offload()
1636 static inline void drv_add_twt_setup(struct ieee80211_local *local, in drv_add_twt_setup() argument
1644 lockdep_assert_wiphy(local->hw.wiphy); in drv_add_twt_setup()
1651 trace_drv_add_twt_setup(local, sta, twt, twt_agrt); in drv_add_twt_setup()
1652 local->ops->add_twt_setup(&local->hw, sta, twt); in drv_add_twt_setup()
1653 trace_drv_return_void(local); in drv_add_twt_setup()
1656 static inline void drv_twt_teardown_request(struct ieee80211_local *local, in drv_twt_teardown_request() argument
1662 lockdep_assert_wiphy(local->hw.wiphy); in drv_twt_teardown_request()
1666 if (!local->ops->twt_teardown_request) in drv_twt_teardown_request()
1669 trace_drv_twt_teardown_request(local, sta, flowid); in drv_twt_teardown_request()
1670 local->ops->twt_teardown_request(&local->hw, sta, flowid); in drv_twt_teardown_request()
1671 trace_drv_return_void(local); in drv_twt_teardown_request()
1674 static inline int drv_net_fill_forward_path(struct ieee80211_local *local, in drv_net_fill_forward_path() argument
1686 trace_drv_net_fill_forward_path(local, sdata, sta); in drv_net_fill_forward_path()
1687 if (local->ops->net_fill_forward_path) in drv_net_fill_forward_path()
1688 ret = local->ops->net_fill_forward_path(&local->hw, in drv_net_fill_forward_path()
1691 trace_drv_return_int(local, ret); in drv_net_fill_forward_path()
1696 static inline int drv_net_setup_tc(struct ieee80211_local *local, in drv_net_setup_tc() argument
1706 trace_drv_net_setup_tc(local, sdata, type); in drv_net_setup_tc()
1707 if (local->ops->net_setup_tc) in drv_net_setup_tc()
1708 ret = local->ops->net_setup_tc(&local->hw, &sdata->vif, dev, in drv_net_setup_tc()
1710 trace_drv_return_int(local, ret); in drv_net_setup_tc()
1715 static inline bool drv_can_activate_links(struct ieee80211_local *local, in drv_can_activate_links() argument
1721 lockdep_assert_wiphy(local->hw.wiphy); in drv_can_activate_links()
1726 trace_drv_can_activate_links(local, sdata, active_links); in drv_can_activate_links()
1727 if (local->ops->can_activate_links) in drv_can_activate_links()
1728 ret = local->ops->can_activate_links(&local->hw, &sdata->vif, in drv_can_activate_links()
1730 trace_drv_return_bool(local, ret); in drv_can_activate_links()
1735 int drv_change_vif_links(struct ieee80211_local *local,
1739 int drv_change_sta_links(struct ieee80211_local *local,
1745 drv_can_neg_ttlm(struct ieee80211_local *local, in drv_can_neg_ttlm() argument
1755 trace_drv_can_neg_ttlm(local, sdata, neg_ttlm); in drv_can_neg_ttlm()
1756 if (local->ops->can_neg_ttlm) in drv_can_neg_ttlm()
1757 res = local->ops->can_neg_ttlm(&local->hw, &sdata->vif, in drv_can_neg_ttlm()
1759 trace_drv_neg_ttlm_res(local, sdata, res, neg_ttlm); in drv_can_neg_ttlm()
1765 drv_prep_add_interface(struct ieee80211_local *local, in drv_prep_add_interface() argument
1768 trace_drv_prep_add_interface(local, type); in drv_prep_add_interface()
1769 if (local->ops->prep_add_interface) in drv_prep_add_interface()
1770 local->ops->prep_add_interface(&local->hw, type); in drv_prep_add_interface()
1772 trace_drv_return_void(local); in drv_prep_add_interface()