Lines Matching refs:vif

37 	/* d0i3/d3 assumes the AP's sta_id (of sta vif) is 0. reserve it. */
211 mvm_sta->vif->bss_conf.chanreq.oper.chan->band == NL80211_BAND_6GHZ)
217 &mvm_sta->vif->bss_conf,
296 ieee80211_rx_ba_timer_expired(mvm_sta->vif,
872 for_each_sta_active_link(mvmsta->vif, sta, link_sta, link_id) {
918 iwl_mvm_get_wd_timeout(mvm, mvmsta->vif, false, false);
1098 wdg_timeout = iwl_mvm_get_wd_timeout(mvm, mvmsta->vif, false, false);
1348 iwl_mvm_get_wd_timeout(mvm, mvmsta->vif, false, false);
1640 iwl_mvm_get_wd_timeout(mvm, mvm_sta->vif, false, false);
1756 int iwl_mvm_sta_init(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
1759 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1768 mvm_sta->vif = vif;
1834 ieee80211_vif_type_p2p(vif));
1851 if (vif->type == NL80211_IFTYPE_STATION && !vif->p2p &&
1852 !sta->tdls && ieee80211_vif_is_mld(vif)) {
1866 struct ieee80211_vif *vif,
1869 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1879 ieee80211_vif_type_p2p(vif));
1909 ret = iwl_mvm_sta_init(mvm, vif, sta, sta_id,
1919 if (vif->type == NL80211_IFTYPE_STATION) {
2006 struct ieee80211_vif *vif,
2063 bool iwl_mvm_sta_del(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
2067 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
2103 if (vif->type == NL80211_IFTYPE_STATION &&
2106 if (vif->cfg.assoc)
2110 iwl_mvm_sec_key_remove_ap(mvm, vif, mvm_link, 0);
2129 struct ieee80211_vif *vif,
2159 iwl_mvm_disable_sta_queues(mvm, vif, sta);
2161 if (iwl_mvm_sta_del(mvm, vif, sta, &sta->deflink, &ret))
2171 struct ieee80211_vif *vif,
2306 int iwl_mvm_add_snif_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
2308 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
2318 int iwl_mvm_rm_snif_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
2361 * Send the add station command for the vif's broadcast station.
2365 * @vif: the interface to which the broadcast station is added
2368 int iwl_mvm_send_add_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
2370 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
2377 iwl_mvm_get_wd_timeout(mvm, vif, false, false);
2389 if (vif->type == NL80211_IFTYPE_AP ||
2390 vif->type == NL80211_IFTYPE_ADHOC) {
2392 } else if (vif->type == NL80211_IFTYPE_P2P_DEVICE) {
2404 if (vif->type == NL80211_IFTYPE_ADHOC)
2405 baddr = vif->bss_conf.bssid;
2428 if (vif->type == NL80211_IFTYPE_AP ||
2429 vif->type == NL80211_IFTYPE_ADHOC) {
2434 } else if (vif->type == NL80211_IFTYPE_P2P_DEVICE) {
2437 } else if (vif->type == NL80211_IFTYPE_AP ||
2438 vif->type == NL80211_IFTYPE_ADHOC) {
2447 struct ieee80211_vif *vif)
2449 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
2457 switch (vif->type) {
2466 WARN(1, "Can't free bcast queue on vif type %d\n",
2467 vif->type);
2475 if (vif->type == NL80211_IFTYPE_AP || vif->type == NL80211_IFTYPE_ADHOC)
2487 int iwl_mvm_send_rm_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
2489 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
2494 iwl_mvm_free_bcast_sta_queues(mvm, vif);
2502 int iwl_mvm_alloc_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
2504 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
2509 ieee80211_vif_type_p2p(vif),
2513 /* Allocate a new station entry for the broadcast station to the given vif,
2518 * @vif: the interface to which the broadcast station is added
2520 int iwl_mvm_add_p2p_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
2522 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
2528 ret = iwl_mvm_alloc_bcast_sta(mvm, vif);
2532 ret = iwl_mvm_send_add_bcast_sta(mvm, vif);
2540 void iwl_mvm_dealloc_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
2542 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
2551 int iwl_mvm_rm_p2p_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
2557 ret = iwl_mvm_send_rm_bcast_sta(mvm, vif);
2559 iwl_mvm_dealloc_bcast_sta(mvm, vif);
2565 * Allocate a new station entry for the multicast station to the given vif,
2570 * @vif: the interface to which the multicast station is added
2572 int iwl_mvm_add_mcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
2574 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
2579 .fifo = vif->type == NL80211_IFTYPE_AP ?
2586 unsigned int timeout = iwl_mvm_get_wd_timeout(mvm, vif, false, false);
2591 if (WARN_ON(vif->type != NL80211_IFTYPE_AP &&
2592 vif->type != NL80211_IFTYPE_ADHOC))
2601 if (vif->type == NL80211_IFTYPE_ADHOC)
2704 int iwl_mvm_rm_mcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
2706 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
3114 int iwl_mvm_sta_tx_agg_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
3219 int iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
3226 iwl_mvm_get_wd_timeout(mvm, vif, sta->tdls, false);
3372 int iwl_mvm_sta_tx_agg_stop(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
3385 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
3413 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
3427 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
3445 int iwl_mvm_sta_tx_agg_flush(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
3519 struct ieee80211_vif *vif,
3522 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
3532 if (vif->type == NL80211_IFTYPE_STATION &&
3805 struct ieee80211_vif *vif,
3808 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
3813 if (vif->type == NL80211_IFTYPE_STATION &&
3829 struct ieee80211_vif *vif,
3846 } else if (vif->type == NL80211_IFTYPE_AP &&
3848 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
3857 addr = iwl_mvm_get_mac_addr(mvm, vif, sta);
3877 struct ieee80211_vif *vif,
3890 if (vif->type != NL80211_IFTYPE_AP ||
3893 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta);
3915 if (WARN_ON_ONCE(iwl_mvm_sta_from_mac80211(sta)->vif != vif))
3918 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
3948 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, key_offset, mcast);
3961 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf,
3979 struct ieee80211_vif *vif,
3991 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta);
3994 else if (!sta && vif->type == NL80211_IFTYPE_AP && mcast)
3995 sta_id = iwl_mvm_vif_from_mac80211(vif)->deflink.mcast_sta.sta_id;
4037 struct ieee80211_vif *vif,
4048 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta);
4307 void iwl_mvm_csa_client_absent(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
4309 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
4336 int iwl_mvm_add_pasn_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
4343 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
4345 iwl_mvm_get_wd_timeout(mvm, vif, false, false);
4378 iwl_mvm_get_sec_flags(mvm, vif, NULL, keyconf) |
4395 struct ieee80211_vif *vif,
4435 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvm_sta->vif);