Lines Matching defs:vif

244 				   struct ieee80211_vif *vif);
393 static int ath11k_mac_vif_chan(struct ieee80211_vif *vif,
399 conf = rcu_dereference(vif->chanctx_conf);
453 struct ieee80211_vif *vif)
456 struct ath11k_vif *arvif = (void *)vif->drv_priv;
775 struct ieee80211_vif *vif = arvif->vif;
785 bcn = ieee80211_beacon_get_template(hw, vif, &offs);
863 struct ieee80211_vif *vif,
867 struct ath11k_vif *arvif = (void *)vif->drv_priv;
872 if (vif->type == NL80211_IFTYPE_STATION)
873 aid = vif->bss_conf.aid;
884 arg->peer_caps = vif->bss_conf.assoc_capability;
888 struct ieee80211_vif *vif,
892 struct ieee80211_bss_conf *info = &vif->bss_conf;
895 struct ath11k_vif *arvif = (struct ath11k_vif *)vif->drv_priv;
901 if (WARN_ON(ath11k_mac_vif_chan(vif, &def)))
949 struct ieee80211_vif *vif,
953 struct ath11k_vif *arvif = (void *)vif->drv_priv;
965 if (WARN_ON(ath11k_mac_vif_chan(vif, &def)))
1011 struct ieee80211_vif *vif,
1016 struct ath11k_vif *arvif = (void *)vif->drv_priv;
1026 if (WARN_ON(ath11k_mac_vif_chan(vif, &def)))
1172 struct ieee80211_vif *vif,
1177 struct ath11k_vif *arvif = (void *)vif->drv_priv;
1185 if (WARN_ON(ath11k_mac_vif_chan(vif, &def)))
1265 struct ieee80211_vif *vif,
1282 arg->peer_he_ops = vif->bss_conf.he_oper.params;
1408 struct ieee80211_vif *vif,
1412 struct ath11k_vif *arvif = (void *)vif->drv_priv;
1571 struct ieee80211_vif *vif,
1575 struct ath11k_vif *arvif = (void *)vif->drv_priv;
1582 if (WARN_ON(ath11k_mac_vif_chan(vif, &def)))
1646 struct ieee80211_vif *vif,
1658 ath11k_peer_assoc_h_basic(ar, vif, sta, arg);
1659 ath11k_peer_assoc_h_crypto(ar, vif, sta, arg);
1660 ath11k_peer_assoc_h_rates(ar, vif, sta, arg);
1661 ath11k_peer_assoc_h_ht(ar, vif, sta, arg);
1662 ath11k_peer_assoc_h_vht(ar, vif, sta, arg);
1663 ath11k_peer_assoc_h_he(ar, vif, sta, arg);
1664 ath11k_peer_assoc_h_qos(ar, vif, sta, arg);
1665 ath11k_peer_assoc_h_phymode(ar, vif, sta, arg);
1692 struct ieee80211_vif *vif,
1696 struct ath11k_vif *arvif = (void *)vif->drv_priv;
1708 ap_sta = ieee80211_find_sta(vif, bss_conf->bssid);
1716 ath11k_peer_assoc_prepare(ar, vif, ap_sta, &peer_arg, false);
1775 struct ieee80211_vif *vif)
1778 struct ath11k_vif *arvif = (void *)vif->drv_priv;
1822 struct ieee80211_vif *vif,
1825 struct ath11k_vif *arvif = (void *)vif->drv_priv;
1836 basic_rate_idx = ffs(vif->bss_conf.basic_rates) - 1;
1859 struct ieee80211_vif *vif,
1864 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
1913 if (vif->bss_conf.he_support) {
1946 vif->type == NL80211_IFTYPE_AP) {
2022 ath11k_bss_assoc(hw, vif, info);
2024 ath11k_bss_disassoc(hw, vif);
2036 !ath11k_mac_vif_chan(arvif->vif, &def)) {
2038 mcast_rate = vif->bss_conf.mcast_rate[band];
2043 rateidx = ffs(vif->bss_conf.basic_rates) - 1;
2080 !ath11k_mac_vif_chan(arvif->vif, &def))
2081 ath11k_recalculate_mgmt_rate(ar, vif, &def);
2095 if (vif->type == NL80211_IFTYPE_AP) {
2103 } else if (vif->type == NL80211_IFTYPE_STATION) {
2285 struct ieee80211_vif *vif,
2289 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
2371 struct ieee80211_vif *vif)
2493 struct ieee80211_vif *vif, struct ieee80211_sta *sta,
2498 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
2523 peer_addr = vif->bss_conf.bssid;
2525 peer_addr = vif->addr;
2682 struct ieee80211_vif *vif,
2686 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
2696 if (WARN_ON(ath11k_mac_vif_chan(vif, &def)))
2702 ath11k_peer_assoc_prepare(ar, vif, sta, &peer_arg, reassoc);
2765 struct ieee80211_vif *vif,
2768 struct ath11k_vif *arvif = (void *)vif->drv_priv;
2809 if (WARN_ON(ath11k_mac_vif_chan(arvif->vif, &def)))
2887 ath11k_peer_assoc_prepare(ar, arvif->vif, sta,
2936 struct ieee80211_vif *vif,
2940 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
2982 if (ieee80211_vif_is_mesh(vif)) {
3003 ret = ath11k_start_vdev_delay(ar->hw, vif);
3027 struct ieee80211_vif *vif,
3033 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
3051 ret = ath11k_mac_station_add(ar, vif, sta);
3072 vif->addr, arvif->vdev_id);
3087 (vif->type == NL80211_IFTYPE_AP ||
3088 vif->type == NL80211_IFTYPE_MESH_POINT ||
3089 vif->type == NL80211_IFTYPE_ADHOC)) {
3090 ret = ath11k_station_assoc(ar, vif, sta, false);
3096 (vif->type == NL80211_IFTYPE_AP ||
3097 vif->type == NL80211_IFTYPE_MESH_POINT ||
3098 vif->type == NL80211_IFTYPE_ADHOC)) {
3099 ret = ath11k_station_disassoc(ar, vif, sta);
3110 struct ieee80211_vif *vif,
3114 struct ath11k_vif *arvif = (void *)vif->drv_priv;
3145 struct ieee80211_vif *vif,
3151 struct ath11k_vif *arvif = (void *)vif->drv_priv;
3234 static int ath11k_conf_tx_uapsd(struct ath11k *ar, struct ieee80211_vif *vif,
3237 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
3292 struct ieee80211_vif *vif, u16 ac,
3296 struct ath11k_vif *arvif = (void *)vif->drv_priv;
3334 ret = ath11k_conf_tx_uapsd(ar, vif, ac, params->uapsd);
3934 struct ieee80211_vif *vif = ctx;
3938 if (skb_cb->vif == vif)
4019 if (!skb_cb->vif) {
4020 ath11k_warn(ar->ab, "no vif found for mgmt frame\n");
4025 arvif = ath11k_vif_to_arvif(skb_cb->vif);
4085 struct ieee80211_vif *vif = info->control.vif;
4086 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
4094 skb_cb->vif = vif;
4375 param_value = ath11k_mac_prepare_he_mode(ar->pdev, arvif->vif->type);
4399 struct ieee80211_vif *vif)
4403 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
4409 (vif->type != NL80211_IFTYPE_STATION &&
4410 vif->type != NL80211_IFTYPE_AP))
4411 vif->offload_flags &= ~IEEE80211_OFFLOAD_ENCAP_ENABLED;
4413 if (vif->offload_flags & IEEE80211_OFFLOAD_ENCAP_ENABLED)
4425 vif->offload_flags &= ~IEEE80211_OFFLOAD_ENCAP_ENABLED;
4430 struct ieee80211_vif *vif)
4434 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
4443 vif->driver_flags |= IEEE80211_VIF_SUPPORTS_UAPSD;
4447 if (vif->type == NL80211_IFTYPE_AP &&
4464 arvif->vif = vif;
4485 switch (vif->type) {
4508 vif->cab_queue = arvif->vdev_id % (ATH11K_HW_MAX_QUEUES - 1);
4509 for (i = 0; i < ARRAY_SIZE(vif->hw_queue); i++)
4510 vif->hw_queue[i] = i % (ATH11K_HW_MAX_QUEUES - 1);
4514 ret = ath11k_wmi_vdev_create(ar, vif->addr, &vdev_param);
4523 vif->addr, arvif->vdev_id);
4531 ath11k_mac_op_update_vif_offload(hw, vif);
4545 peer_param.peer_addr = vif->addr;
4603 arvif->txpower = vif->bss_conf.txpower;
4627 ret = ath11k_wmi_send_peer_delete_cmd(ar, vif->addr,
4631 arvif->vdev_id, vif->addr);
4636 vif->addr);
4660 struct ieee80211_vif *vif = (struct ieee80211_vif *)ctx;
4663 if (skb_cb->vif == vif)
4664 skb_cb->vif = NULL;
4670 struct ieee80211_vif *vif)
4673 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
4688 ret = ath11k_peer_delete(ar, arvif->vdev_id, vif->addr);
4701 vif->addr, arvif->vdev_id);
4708 ath11k_mac_vif_txmgmt_idr_remove, vif);
4713 ath11k_mac_vif_unref, vif);
4798 struct ieee80211_vif *vif,
4898 int he_support = arvif->vif->bss_conf.he_support;
4972 arvif->vif->addr, arvif->vdev_id);
5032 arvif->vif->addr, arvif->vdev_id);
5070 struct ieee80211_vif *vif)
5074 if (rcu_access_pointer(vif->chanctx_conf) != arg->ctx)
5082 struct ieee80211_vif *vif)
5087 ctx = rcu_access_pointer(vif->chanctx_conf);
5094 arg->vifs[arg->next_vif].vif = vif;
5113 arvif = (void *)vifs[i].vif->drv_priv;
5144 arvif = (void *)vifs[i].vif->drv_priv;
5232 struct ieee80211_vif *vif)
5236 struct ath11k_vif *arvif = (void *)vif->drv_priv;
5245 arvif->vdev_id, vif->addr,
5266 struct ieee80211_vif *vif,
5271 struct ath11k_vif *arvif = (void *)vif->drv_priv;
5314 arvif->vdev_id, vif->addr,
5338 struct ieee80211_vif *vif,
5343 struct ath11k_vif *arvif = (void *)vif->drv_priv;
5447 static void ath11k_mac_op_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
5687 struct ieee80211_vif *vif,
5690 struct ath11k_vif *arvif = (void *)vif->drv_priv;
5704 if (ath11k_mac_vif_chan(vif, &def))
5904 struct ieee80211_vif *vif,