Lines Matching refs:sdata
54 struct ieee80211_sub_if_data *sdata) in drv_add_interface() argument
60 if (WARN_ON(sdata->vif.type == NL80211_IFTYPE_AP_VLAN || in drv_add_interface()
61 (sdata->vif.type == NL80211_IFTYPE_MONITOR && in drv_add_interface()
63 !(sdata->u.mntr.flags & MONITOR_FLAG_ACTIVE)))) in drv_add_interface()
66 trace_drv_add_interface(local, sdata); in drv_add_interface()
67 ret = local->ops->add_interface(&local->hw, &sdata->vif); in drv_add_interface()
71 sdata->flags |= IEEE80211_SDATA_IN_DRIVER; in drv_add_interface()
77 struct ieee80211_sub_if_data *sdata, in drv_change_interface() argument
84 if (!check_sdata_in_driver(sdata)) in drv_change_interface()
87 trace_drv_change_interface(local, sdata, type, p2p); in drv_change_interface()
88 ret = local->ops->change_interface(&local->hw, &sdata->vif, type, p2p); in drv_change_interface()
94 struct ieee80211_sub_if_data *sdata) in drv_remove_interface() argument
98 if (!check_sdata_in_driver(sdata)) in drv_remove_interface()
101 trace_drv_remove_interface(local, sdata); in drv_remove_interface()
102 local->ops->remove_interface(&local->hw, &sdata->vif); in drv_remove_interface()
103 sdata->flags &= ~IEEE80211_SDATA_IN_DRIVER; in drv_remove_interface()
109 struct ieee80211_sub_if_data *sdata, in drv_sta_state() argument
118 sdata = get_bss_sdata(sdata); in drv_sta_state()
119 if (!check_sdata_in_driver(sdata)) in drv_sta_state()
122 trace_drv_sta_state(local, sdata, &sta->sta, old_state, new_state); in drv_sta_state()
124 ret = local->ops->sta_state(&local->hw, &sdata->vif, &sta->sta, in drv_sta_state()
128 ret = drv_sta_add(local, sdata, &sta->sta); in drv_sta_state()
132 drv_sta_rate_tbl_update(local, sdata, &sta->sta); in drv_sta_state()
136 drv_sta_remove(local, sdata, &sta->sta); in drv_sta_state()
144 struct ieee80211_sub_if_data *sdata, in drv_sta_set_txpwr() argument
151 sdata = get_bss_sdata(sdata); in drv_sta_set_txpwr()
152 if (!check_sdata_in_driver(sdata)) in drv_sta_set_txpwr()
155 trace_drv_sta_set_txpwr(local, sdata, &sta->sta); in drv_sta_set_txpwr()
157 ret = local->ops->sta_set_txpwr(&local->hw, &sdata->vif, in drv_sta_set_txpwr()
164 struct ieee80211_sub_if_data *sdata, in drv_sta_rc_update() argument
167 sdata = get_bss_sdata(sdata); in drv_sta_rc_update()
168 if (!check_sdata_in_driver(sdata)) in drv_sta_rc_update()
172 (sdata->vif.type != NL80211_IFTYPE_ADHOC && in drv_sta_rc_update()
173 sdata->vif.type != NL80211_IFTYPE_MESH_POINT)); in drv_sta_rc_update()
175 trace_drv_sta_rc_update(local, sdata, sta, changed); in drv_sta_rc_update()
177 local->ops->sta_rc_update(&local->hw, &sdata->vif, in drv_sta_rc_update()
187 struct ieee80211_sub_if_data *sdata = link->sdata; in drv_conf_tx() local
192 if (!check_sdata_in_driver(sdata)) in drv_conf_tx()
195 if (sdata->vif.active_links && in drv_conf_tx()
196 !(sdata->vif.active_links & BIT(link->link_id))) in drv_conf_tx()
206 sdata->name, params->cw_min, params->cw_max); in drv_conf_tx()
210 trace_drv_conf_tx(local, sdata, link->link_id, ac, params); in drv_conf_tx()
212 ret = local->ops->conf_tx(&local->hw, &sdata->vif, in drv_conf_tx()
219 struct ieee80211_sub_if_data *sdata) in drv_get_tsf() argument
225 if (!check_sdata_in_driver(sdata)) in drv_get_tsf()
228 trace_drv_get_tsf(local, sdata); in drv_get_tsf()
230 ret = local->ops->get_tsf(&local->hw, &sdata->vif); in drv_get_tsf()
236 struct ieee80211_sub_if_data *sdata, in drv_set_tsf() argument
241 if (!check_sdata_in_driver(sdata)) in drv_set_tsf()
244 trace_drv_set_tsf(local, sdata, tsf); in drv_set_tsf()
246 local->ops->set_tsf(&local->hw, &sdata->vif, tsf); in drv_set_tsf()
251 struct ieee80211_sub_if_data *sdata, in drv_offset_tsf() argument
256 if (!check_sdata_in_driver(sdata)) in drv_offset_tsf()
259 trace_drv_offset_tsf(local, sdata, offset); in drv_offset_tsf()
261 local->ops->offset_tsf(&local->hw, &sdata->vif, offset); in drv_offset_tsf()
266 struct ieee80211_sub_if_data *sdata) in drv_reset_tsf() argument
270 if (!check_sdata_in_driver(sdata)) in drv_reset_tsf()
273 trace_drv_reset_tsf(local, sdata); in drv_reset_tsf()
275 local->ops->reset_tsf(&local->hw, &sdata->vif); in drv_reset_tsf()
280 struct ieee80211_sub_if_data *sdata, in drv_assign_vif_chanctx() argument
286 drv_verify_link_exists(sdata, link_conf); in drv_assign_vif_chanctx()
287 if (!check_sdata_in_driver(sdata)) in drv_assign_vif_chanctx()
290 if (sdata->vif.active_links && in drv_assign_vif_chanctx()
291 !(sdata->vif.active_links & BIT(link_conf->link_id))) in drv_assign_vif_chanctx()
294 trace_drv_assign_vif_chanctx(local, sdata, link_conf, ctx); in drv_assign_vif_chanctx()
298 &sdata->vif, in drv_assign_vif_chanctx()
308 struct ieee80211_sub_if_data *sdata, in drv_unassign_vif_chanctx() argument
314 drv_verify_link_exists(sdata, link_conf); in drv_unassign_vif_chanctx()
315 if (!check_sdata_in_driver(sdata)) in drv_unassign_vif_chanctx()
318 if (sdata->vif.active_links && in drv_unassign_vif_chanctx()
319 !(sdata->vif.active_links & BIT(link_conf->link_id))) in drv_unassign_vif_chanctx()
322 trace_drv_unassign_vif_chanctx(local, sdata, link_conf, ctx); in drv_unassign_vif_chanctx()
326 &sdata->vif, in drv_unassign_vif_chanctx()
387 struct ieee80211_sub_if_data *sdata, in drv_ampdu_action() argument
394 if (!sdata) in drv_ampdu_action()
397 sdata = get_bss_sdata(sdata); in drv_ampdu_action()
398 if (!check_sdata_in_driver(sdata)) in drv_ampdu_action()
401 trace_drv_ampdu_action(local, sdata, params); in drv_ampdu_action()
404 ret = local->ops->ampdu_action(&local->hw, &sdata->vif, params); in drv_ampdu_action()
412 struct ieee80211_sub_if_data *sdata, in drv_link_info_changed() argument
420 sdata->vif.type != NL80211_IFTYPE_AP && in drv_link_info_changed()
421 sdata->vif.type != NL80211_IFTYPE_ADHOC && in drv_link_info_changed()
422 sdata->vif.type != NL80211_IFTYPE_MESH_POINT && in drv_link_info_changed()
423 sdata->vif.type != NL80211_IFTYPE_OCB)) in drv_link_info_changed()
426 if (WARN_ON_ONCE(sdata->vif.type == NL80211_IFTYPE_P2P_DEVICE || in drv_link_info_changed()
427 sdata->vif.type == NL80211_IFTYPE_NAN || in drv_link_info_changed()
428 (sdata->vif.type == NL80211_IFTYPE_MONITOR && in drv_link_info_changed()
429 !sdata->vif.bss_conf.mu_mimo_owner && in drv_link_info_changed()
433 if (!check_sdata_in_driver(sdata)) in drv_link_info_changed()
436 if (sdata->vif.active_links && in drv_link_info_changed()
437 !(sdata->vif.active_links & BIT(link_id))) in drv_link_info_changed()
440 trace_drv_link_info_changed(local, sdata, info, changed); in drv_link_info_changed()
442 local->ops->link_info_changed(&local->hw, &sdata->vif, in drv_link_info_changed()
445 local->ops->bss_info_changed(&local->hw, &sdata->vif, in drv_link_info_changed()
452 struct ieee80211_sub_if_data *sdata, in drv_set_key() argument
460 sdata = get_bss_sdata(sdata); in drv_set_key()
461 if (!check_sdata_in_driver(sdata)) in drv_set_key()
464 if (WARN_ON(key->link_id >= 0 && sdata->vif.active_links && in drv_set_key()
465 !(sdata->vif.active_links & BIT(key->link_id)))) in drv_set_key()
468 trace_drv_set_key(local, cmd, sdata, sta, key); in drv_set_key()
469 ret = local->ops->set_key(&local->hw, cmd, &sdata->vif, sta, key); in drv_set_key()
475 struct ieee80211_sub_if_data *sdata, in drv_change_vif_links() argument
483 if (!check_sdata_in_driver(sdata)) in drv_change_vif_links()
489 trace_drv_change_vif_links(local, sdata, old_links, new_links); in drv_change_vif_links()
491 ret = local->ops->change_vif_links(&local->hw, &sdata->vif, in drv_change_vif_links()
499 struct ieee80211_sub_if_data *sdata, in drv_change_sta_links() argument
507 if (!check_sdata_in_driver(sdata)) in drv_change_sta_links()
510 old_links &= sdata->vif.active_links; in drv_change_sta_links()
511 new_links &= sdata->vif.active_links; in drv_change_sta_links()
516 trace_drv_change_sta_links(local, sdata, sta, old_links, new_links); in drv_change_sta_links()
518 ret = local->ops->change_sta_links(&local->hw, &sdata->vif, sta, in drv_change_sta_links()