arvif 490 drivers/net/wireless/ath/ath10k/core.h struct ath10k_vif *arvif; arvif 591 drivers/net/wireless/ath/ath10k/core.h struct ath10k_vif *arvif; arvif 1763 drivers/net/wireless/ath/ath10k/debug.c struct ath10k_vif *arvif; arvif 1769 drivers/net/wireless/ath/ath10k/debug.c arvif = list_first_entry(&ar->arvifs, typeof(*arvif), list); arvif 1770 drivers/net/wireless/ath/ath10k/debug.c if (!arvif->is_started) arvif 181 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ath10k *ar = arsta->arvif->ar; arvif 200 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ath10k *ar = arsta->arvif->ar; arvif 217 drivers/net/wireless/ath/ath10k/debugfs_sta.c ret = ath10k_wmi_addba_clear_resp(ar, arsta->arvif->vdev_id, sta->addr); arvif 243 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ath10k *ar = arsta->arvif->ar; arvif 268 drivers/net/wireless/ath/ath10k/debugfs_sta.c ret = ath10k_wmi_addba_send(ar, arsta->arvif->vdev_id, sta->addr, arvif 272 drivers/net/wireless/ath/ath10k/debugfs_sta.c arsta->arvif->vdev_id, sta->addr, tid, buf_size); arvif 294 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ath10k *ar = arsta->arvif->ar; arvif 319 drivers/net/wireless/ath/ath10k/debugfs_sta.c ret = ath10k_wmi_addba_set_resp(ar, arsta->arvif->vdev_id, sta->addr, arvif 323 drivers/net/wireless/ath/ath10k/debugfs_sta.c arsta->arvif->vdev_id, sta->addr, tid, status); arvif 344 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ath10k *ar = arsta->arvif->ar; arvif 369 drivers/net/wireless/ath/ath10k/debugfs_sta.c ret = ath10k_wmi_delba_send(ar, arsta->arvif->vdev_id, sta->addr, arvif 373 drivers/net/wireless/ath/ath10k/debugfs_sta.c arsta->arvif->vdev_id, sta->addr, tid, initiator, arvif 396 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ath10k *ar = arsta->arvif->ar; arvif 415 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ath10k *ar = arsta->arvif->ar; arvif 432 drivers/net/wireless/ath/ath10k/debugfs_sta.c ret = ath10k_wmi_peer_set_param(ar, arsta->arvif->vdev_id, sta->addr, arvif 458 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ath10k *ar = arsta->arvif->ar; arvif 568 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ath10k *ar = arsta->arvif->ar; arvif 651 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ath10k *ar = arsta->arvif->ar; arvif 1049 drivers/net/wireless/ath/ath10k/htt_rx.c struct ath10k_vif *arvif; arvif 1073 drivers/net/wireless/ath/ath10k/htt_rx.c arvif = ath10k_get_arvif(ar, peer->vdev_id); arvif 1074 drivers/net/wireless/ath/ath10k/htt_rx.c if (WARN_ON_ONCE(!arvif)) arvif 1077 drivers/net/wireless/ath/ath10k/htt_rx.c if (ath10k_mac_vif_chan(arvif->vif, &def)) arvif 1086 drivers/net/wireless/ath/ath10k/htt_rx.c struct ath10k_vif *arvif; arvif 1091 drivers/net/wireless/ath/ath10k/htt_rx.c list_for_each_entry(arvif, &ar->arvifs, list) { arvif 1092 drivers/net/wireless/ath/ath10k/htt_rx.c if (arvif->vdev_id == vdev_id && arvif 1093 drivers/net/wireless/ath/ath10k/htt_rx.c ath10k_mac_vif_chan(arvif->vif, &def) == 0) arvif 2749 drivers/net/wireless/ath/ath10k/htt_rx.c struct ath10k_vif *arvif; arvif 2769 drivers/net/wireless/ath/ath10k/htt_rx.c arvif = ath10k_get_arvif(ar, peer->vdev_id); arvif 2770 drivers/net/wireless/ath/ath10k/htt_rx.c if (!arvif) { arvif 2781 drivers/net/wireless/ath/ath10k/htt_rx.c ieee80211_start_rx_ba_session_offl(arvif->vif, peer->addr, tid); arvif 2789 drivers/net/wireless/ath/ath10k/htt_rx.c struct ath10k_vif *arvif; arvif 2809 drivers/net/wireless/ath/ath10k/htt_rx.c arvif = ath10k_get_arvif(ar, peer->vdev_id); arvif 2810 drivers/net/wireless/ath/ath10k/htt_rx.c if (!arvif) { arvif 2821 drivers/net/wireless/ath/ath10k/htt_rx.c ieee80211_stop_rx_ba_session_offl(arvif->vif, peer->addr, tid); arvif 3511 drivers/net/wireless/ath/ath10k/htt_rx.c if (arsta->arvif && arsta->arvif->vif) arvif 3512 drivers/net/wireless/ath/ath10k/htt_rx.c conf = rcu_dereference(arsta->arvif->vif->chanctx_conf); arvif 42 drivers/net/wireless/ath/ath10k/htt_tx.c struct ath10k_vif *arvif = (void *)txq->vif->drv_priv; arvif 63 drivers/net/wireless/ath/ath10k/htt_tx.c peer_id = arvif->peer_id; arvif 1128 drivers/net/wireless/ath/ath10k/htt_tx.c struct ath10k_vif *arvif; arvif 1133 drivers/net/wireless/ath/ath10k/htt_tx.c arvif = (void *)cb->vif->drv_priv; arvif 1134 drivers/net/wireless/ath/ath10k/htt_tx.c return arvif->vdev_id; arvif 223 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_send_key(struct ath10k_vif *arvif, arvif 228 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 230 drivers/net/wireless/ath/ath10k/mac.c .vdev_id = arvif->vdev_id, arvif 238 drivers/net/wireless/ath/ath10k/mac.c lockdep_assert_held(&arvif->ar->conf_mutex); arvif 280 drivers/net/wireless/ath/ath10k/mac.c return ath10k_wmi_vdev_install_key(arvif->ar, &arg); arvif 283 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_install_key(struct ath10k_vif *arvif, arvif 288 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 296 drivers/net/wireless/ath/ath10k/mac.c if (arvif->nohwcrypt) arvif 299 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_send_key(arvif, key, cmd, macaddr, flags); arvif 310 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_install_peer_wep_keys(struct ath10k_vif *arvif, arvif 313 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 321 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(arvif->vif->type != NL80211_IFTYPE_AP && arvif 322 drivers/net/wireless/ath/ath10k/mac.c arvif->vif->type != NL80211_IFTYPE_ADHOC && arvif 323 drivers/net/wireless/ath/ath10k/mac.c arvif->vif->type != NL80211_IFTYPE_MESH_POINT)) arvif 327 drivers/net/wireless/ath/ath10k/mac.c peer = ath10k_peer_find(ar, arvif->vdev_id, addr); arvif 333 drivers/net/wireless/ath/ath10k/mac.c for (i = 0; i < ARRAY_SIZE(arvif->wep_keys); i++) { arvif 334 drivers/net/wireless/ath/ath10k/mac.c if (arvif->wep_keys[i] == NULL) arvif 337 drivers/net/wireless/ath/ath10k/mac.c switch (arvif->vif->type) { arvif 341 drivers/net/wireless/ath/ath10k/mac.c if (arvif->def_wep_key_idx == i) arvif 344 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_key(arvif, arvif->wep_keys[i], arvif 350 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_key(arvif, arvif->wep_keys[i], arvif 356 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_key(arvif, arvif->wep_keys[i], arvif 367 drivers/net/wireless/ath/ath10k/mac.c peer->keys[i] = arvif->wep_keys[i]; arvif 379 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vif->type != NL80211_IFTYPE_ADHOC) arvif 382 drivers/net/wireless/ath/ath10k/mac.c if (arvif->def_wep_key_idx == -1) arvif 385 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(arvif->ar, arvif 386 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif 387 drivers/net/wireless/ath/ath10k/mac.c arvif->ar->wmi.vdev_param->def_keyid, arvif 388 drivers/net/wireless/ath/ath10k/mac.c arvif->def_wep_key_idx); arvif 391 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 398 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_clear_peer_keys(struct ath10k_vif *arvif, arvif 401 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 411 drivers/net/wireless/ath/ath10k/mac.c peer = ath10k_peer_find(ar, arvif->vdev_id, addr); arvif 422 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_key(arvif, peer->keys[i], arvif 464 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_clear_vdev_key(struct ath10k_vif *arvif, arvif 467 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 500 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_key(arvif, key, DISABLE_KEY, addr, flags); arvif 512 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_vif_update_wep_key(struct ath10k_vif *arvif, arvif 515 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 522 drivers/net/wireless/ath/ath10k/mac.c if (ether_addr_equal(peer->addr, arvif->vif->addr)) arvif 525 drivers/net/wireless/ath/ath10k/mac.c if (ether_addr_equal(peer->addr, arvif->bssid)) arvif 532 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, key->keyidx); arvif 534 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_peer_wep_keys(arvif, peer->addr); arvif 537 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, peer->addr, ret); arvif 723 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif; arvif 733 drivers/net/wireless/ath/ath10k/mac.c list_for_each_entry(arvif, &ar->arvifs, list) arvif 774 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_set_kickout(struct ath10k_vif *arvif) arvif 776 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 785 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 790 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, param, arvif 794 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 799 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, param, arvif 803 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 808 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, param, arvif 812 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 819 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_set_rts(struct ath10k_vif *arvif, u32 value) arvif 821 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 825 drivers/net/wireless/ath/ath10k/mac.c return ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, value); arvif 956 drivers/net/wireless/ath/ath10k/mac.c void ath10k_mac_vif_beacon_free(struct ath10k_vif *arvif) arvif 958 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 962 drivers/net/wireless/ath/ath10k/mac.c if (!arvif->beacon) arvif 965 drivers/net/wireless/ath/ath10k/mac.c if (!arvif->beacon_buf) arvif 966 drivers/net/wireless/ath/ath10k/mac.c dma_unmap_single(ar->dev, ATH10K_SKB_CB(arvif->beacon)->paddr, arvif 967 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon->len, DMA_TO_DEVICE); arvif 969 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(arvif->beacon_state != ATH10K_BEACON_SCHEDULED && arvif 970 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon_state != ATH10K_BEACON_SENT)) arvif 973 drivers/net/wireless/ath/ath10k/mac.c dev_kfree_skb_any(arvif->beacon); arvif 975 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon = NULL; arvif 976 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon_state = ATH10K_BEACON_SCHEDULED; arvif 979 drivers/net/wireless/ath/ath10k/mac.c static void ath10k_mac_vif_beacon_cleanup(struct ath10k_vif *arvif) arvif 981 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 985 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_beacon_free(arvif); arvif 987 drivers/net/wireless/ath/ath10k/mac.c if (arvif->beacon_buf) { arvif 989 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon_buf, arvif->beacon_paddr); arvif 990 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon_buf = NULL; arvif 1291 drivers/net/wireless/ath/ath10k/mac.c static bool ath10k_mac_can_set_cts_prot(struct ath10k_vif *arvif) arvif 1293 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1297 drivers/net/wireless/ath/ath10k/mac.c if (!arvif->is_started) { arvif 1305 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_set_cts_prot(struct ath10k_vif *arvif) arvif 1307 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1315 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif->use_cts_prot); arvif 1317 drivers/net/wireless/ath/ath10k/mac.c return ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 1318 drivers/net/wireless/ath/ath10k/mac.c arvif->use_cts_prot ? 1 : 0); arvif 1321 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_recalc_rtscts_prot(struct ath10k_vif *arvif) arvif 1323 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1332 drivers/net/wireless/ath/ath10k/mac.c if (arvif->num_legacy_stations > 0) arvif 1340 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, rts_cts); arvif 1342 drivers/net/wireless/ath/ath10k/mac.c return ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 1430 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_vdev_stop(struct ath10k_vif *arvif) arvif 1432 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1440 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_stop(ar, arvif->vdev_id); arvif 1443 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1450 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1464 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_vdev_start_restart(struct ath10k_vif *arvif, arvif 1468 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1477 drivers/net/wireless/ath/ath10k/mac.c arg.vdev_id = arvif->vdev_id; arvif 1478 drivers/net/wireless/ath/ath10k/mac.c arg.dtim_period = arvif->dtim_period; arvif 1479 drivers/net/wireless/ath/ath10k/mac.c arg.bcn_intval = arvif->beacon_interval; arvif 1491 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type == WMI_VDEV_TYPE_AP) { arvif 1492 drivers/net/wireless/ath/ath10k/mac.c arg.ssid = arvif->u.ap.ssid; arvif 1493 drivers/net/wireless/ath/ath10k/mac.c arg.ssid_len = arvif->u.ap.ssid_len; arvif 1494 drivers/net/wireless/ath/ath10k/mac.c arg.hidden_ssid = arvif->u.ap.hidden_ssid; arvif 1499 drivers/net/wireless/ath/ath10k/mac.c } else if (arvif->vdev_type == WMI_VDEV_TYPE_IBSS) { arvif 1500 drivers/net/wireless/ath/ath10k/mac.c arg.ssid = arvif->vif->bss_conf.ssid; arvif 1501 drivers/net/wireless/ath/ath10k/mac.c arg.ssid_len = arvif->vif->bss_conf.ssid_len; arvif 1534 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_vdev_start(struct ath10k_vif *arvif, arvif 1537 drivers/net/wireless/ath/ath10k/mac.c return ath10k_vdev_start_restart(arvif, def, false); arvif 1540 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_vdev_restart(struct ath10k_vif *arvif, arvif 1543 drivers/net/wireless/ath/ath10k/mac.c return ath10k_vdev_start_restart(arvif, def, true); arvif 1546 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_setup_bcn_p2p_ie(struct ath10k_vif *arvif, arvif 1549 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1554 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vif->type != NL80211_IFTYPE_AP || !arvif->vif->p2p) arvif 1565 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_p2p_go_bcn_ie(ar, arvif->vdev_id, p2p_ie); arvif 1568 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1605 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_setup_bcn_tmpl(struct ath10k_vif *arvif) arvif 1607 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1609 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_vif *vif = arvif->vif; arvif 1617 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type != WMI_VDEV_TYPE_AP && arvif 1618 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type != WMI_VDEV_TYPE_IBSS) arvif 1627 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_setup_bcn_p2p_ie(arvif, bcn); arvif 1642 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_bcn_tmpl(ar, arvif->vdev_id, offs.tim_offset, bcn, 0, arvif 1655 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_setup_prb_tmpl(struct ath10k_vif *arvif) arvif 1657 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1659 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_vif *vif = arvif->vif; arvif 1666 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type != WMI_VDEV_TYPE_AP) arvif 1679 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_prb_tmpl(ar, arvif->vdev_id, prb); arvif 1691 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_vif_fix_hidden_ssid(struct ath10k_vif *arvif) arvif 1693 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1715 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(!arvif->is_started)) arvif 1718 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(!arvif->is_up)) arvif 1721 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(ath10k_mac_vif_chan(arvif->vif, &def))) arvif 1724 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_down(ar, arvif->vdev_id); arvif 1727 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1735 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_setup_bcn_tmpl(arvif); arvif 1741 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_setup_prb_tmpl(arvif); arvif 1747 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_vdev_restart(arvif, &def); arvif 1750 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1754 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_up(arvif->ar, arvif->vdev_id, arvif->aid, arvif 1755 drivers/net/wireless/ath/ath10k/mac.c arvif->bssid); arvif 1758 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1765 drivers/net/wireless/ath/ath10k/mac.c static void ath10k_control_beaconing(struct ath10k_vif *arvif, arvif 1768 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1771 drivers/net/wireless/ath/ath10k/mac.c lockdep_assert_held(&arvif->ar->conf_mutex); arvif 1774 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_down(ar, arvif->vdev_id); arvif 1777 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1779 drivers/net/wireless/ath/ath10k/mac.c arvif->is_up = false; arvif 1781 drivers/net/wireless/ath/ath10k/mac.c spin_lock_bh(&arvif->ar->data_lock); arvif 1782 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_beacon_free(arvif); arvif 1783 drivers/net/wireless/ath/ath10k/mac.c spin_unlock_bh(&arvif->ar->data_lock); arvif 1788 drivers/net/wireless/ath/ath10k/mac.c arvif->tx_seq_no = 0x1000; arvif 1790 drivers/net/wireless/ath/ath10k/mac.c arvif->aid = 0; arvif 1791 drivers/net/wireless/ath/ath10k/mac.c ether_addr_copy(arvif->bssid, info->bssid); arvif 1793 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_up(arvif->ar, arvif->vdev_id, arvif->aid, arvif 1794 drivers/net/wireless/ath/ath10k/mac.c arvif->bssid); arvif 1797 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1801 drivers/net/wireless/ath/ath10k/mac.c arvif->is_up = true; arvif 1803 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_vif_fix_hidden_ssid(arvif); arvif 1806 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1810 drivers/net/wireless/ath/ath10k/mac.c ath10k_dbg(ar, ATH10K_DBG_MAC, "mac vdev %d up\n", arvif->vdev_id); arvif 1813 drivers/net/wireless/ath/ath10k/mac.c static void ath10k_control_ibss(struct ath10k_vif *arvif, arvif 1817 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1821 drivers/net/wireless/ath/ath10k/mac.c lockdep_assert_held(&arvif->ar->conf_mutex); arvif 1824 drivers/net/wireless/ath/ath10k/mac.c if (is_zero_ether_addr(arvif->bssid)) arvif 1827 drivers/net/wireless/ath/ath10k/mac.c eth_zero_addr(arvif->bssid); arvif 1832 drivers/net/wireless/ath/ath10k/mac.c vdev_param = arvif->ar->wmi.vdev_param->atim_window; arvif 1833 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(arvif->ar, arvif->vdev_id, vdev_param, arvif 1837 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1840 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_vif_recalc_ps_wake_threshold(struct ath10k_vif *arvif) arvif 1842 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1847 drivers/net/wireless/ath/ath10k/mac.c lockdep_assert_held(&arvif->ar->conf_mutex); arvif 1849 drivers/net/wireless/ath/ath10k/mac.c if (arvif->u.sta.uapsd) arvif 1855 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_set_sta_ps_param(ar, arvif->vdev_id, param, value); arvif 1858 drivers/net/wireless/ath/ath10k/mac.c value, arvif->vdev_id, ret); arvif 1865 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_vif_recalc_ps_poll_count(struct ath10k_vif *arvif) arvif 1867 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1872 drivers/net/wireless/ath/ath10k/mac.c lockdep_assert_held(&arvif->ar->conf_mutex); arvif 1874 drivers/net/wireless/ath/ath10k/mac.c if (arvif->u.sta.uapsd) arvif 1880 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_set_sta_ps_param(ar, arvif->vdev_id, arvif 1884 drivers/net/wireless/ath/ath10k/mac.c value, arvif->vdev_id, ret); arvif 1893 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif; arvif 1898 drivers/net/wireless/ath/ath10k/mac.c list_for_each_entry(arvif, &ar->arvifs, list) arvif 1899 drivers/net/wireless/ath/ath10k/mac.c if (arvif->is_started) arvif 1905 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_vif_setup_ps(struct ath10k_vif *arvif) arvif 1907 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1908 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_vif *vif = arvif->vif; arvif 1916 drivers/net/wireless/ath/ath10k/mac.c lockdep_assert_held(&arvif->ar->conf_mutex); arvif 1918 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vif->type != NL80211_IFTYPE_STATION) arvif 1921 drivers/net/wireless/ath/ath10k/mac.c enable_ps = arvif->ps; arvif 1927 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id); arvif 1931 drivers/net/wireless/ath/ath10k/mac.c if (!arvif->is_started) { arvif 1949 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_set_sta_ps_param(ar, arvif->vdev_id, param, arvif 1953 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 1961 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, psmode ? "enable" : "disable"); arvif 1963 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_set_psmode(ar, arvif->vdev_id, psmode); arvif 1966 drivers/net/wireless/ath/ath10k/mac.c psmode, arvif->vdev_id, ret); arvif 1973 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_vif_disable_keepalive(struct ath10k_vif *arvif) arvif 1975 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 1979 drivers/net/wireless/ath/ath10k/mac.c lockdep_assert_held(&arvif->ar->conf_mutex); arvif 1981 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type != WMI_VDEV_TYPE_STA) arvif 1990 drivers/net/wireless/ath/ath10k/mac.c arg.vdev_id = arvif->vdev_id; arvif 1998 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 2005 drivers/net/wireless/ath/ath10k/mac.c static void ath10k_mac_vif_ap_csa_count_down(struct ath10k_vif *arvif) arvif 2007 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 2008 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_vif *vif = arvif->vif; arvif 2011 drivers/net/wireless/ath/ath10k/mac.c lockdep_assert_held(&arvif->ar->conf_mutex); arvif 2016 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type != WMI_VDEV_TYPE_AP) arvif 2022 drivers/net/wireless/ath/ath10k/mac.c if (!arvif->is_up) arvif 2028 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_setup_bcn_tmpl(arvif); arvif 2033 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_setup_prb_tmpl(arvif); arvif 2044 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = container_of(work, struct ath10k_vif, arvif 2046 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 2049 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_ap_csa_count_down(arvif); arvif 2058 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2066 drivers/net/wireless/ath/ath10k/mac.c cancel_delayed_work(&arvif->connection_loss_work); arvif 2081 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2082 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 2085 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_id != *vdev_id) arvif 2088 drivers/net/wireless/ath/ath10k/mac.c if (!arvif->is_up) arvif 2098 drivers/net/wireless/ath/ath10k/mac.c ieee80211_queue_delayed_work(hw, &arvif->connection_loss_work, arvif 2112 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = container_of(work, struct ath10k_vif, arvif 2114 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_vif *vif = arvif->vif; arvif 2116 drivers/net/wireless/ath/ath10k/mac.c if (!arvif->is_up) arvif 2148 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2159 drivers/net/wireless/ath/ath10k/mac.c arg->vdev_id = arvif->vdev_id; arvif 2161 drivers/net/wireless/ath/ath10k/mac.c arg->peer_flags |= arvif->ar->wmi.peer_flags->auth; arvif 2224 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2242 drivers/net/wireless/ath/ath10k/mac.c ratemask &= arvif->bitrate_mask.control[band].legacy; arvif 2287 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2305 drivers/net/wireless/ath/ath10k/mac.c ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; arvif 2306 drivers/net/wireless/ath/ath10k/mac.c vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; arvif 2330 drivers/net/wireless/ath/ath10k/mac.c if (arvif->bitrate_mask.control[band].gi != NL80211_TXRATE_FORCE_LGI) { arvif 2388 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif, arvif 2417 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_set_ap_ps_param(ar, arvif->vdev_id, arvif 2423 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 2427 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_set_ap_ps_param(ar, arvif->vdev_id, arvif 2433 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 2442 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_set_ap_ps_param(ar, arvif->vdev_id, sta->addr, arvif 2447 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 2512 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2527 drivers/net/wireless/ath/ath10k/mac.c vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; arvif 2602 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2604 drivers/net/wireless/ath/ath10k/mac.c switch (arvif->vdev_type) { arvif 2607 drivers/net/wireless/ath/ath10k/mac.c arg->peer_flags |= arvif->ar->wmi.peer_flags->qos; arvif 2610 drivers/net/wireless/ath/ath10k/mac.c arg->peer_flags |= arvif->ar->wmi.peer_flags->apsd; arvif 2616 drivers/net/wireless/ath/ath10k/mac.c arg->peer_flags |= arvif->ar->wmi.peer_flags->qos; arvif 2620 drivers/net/wireless/ath/ath10k/mac.c arg->peer_flags |= arvif->ar->wmi.peer_flags->qos; arvif 2628 drivers/net/wireless/ath/ath10k/mac.c arvif->ar->wmi.peer_flags->qos)); arvif 2669 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2680 drivers/net/wireless/ath/ath10k/mac.c ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; arvif 2681 drivers/net/wireless/ath/ath10k/mac.c vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; arvif 2760 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_setup_peer_smps(struct ath10k *ar, struct ath10k_vif *arvif, arvif 2775 drivers/net/wireless/ath/ath10k/mac.c return ath10k_wmi_peer_set_param(ar, arvif->vdev_id, addr, arvif 2784 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2835 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, param, value); arvif 2851 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2861 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif->bssid, arvif->aid); arvif 2868 drivers/net/wireless/ath/ath10k/mac.c bss_conf->bssid, arvif->vdev_id); arvif 2882 drivers/net/wireless/ath/ath10k/mac.c bss_conf->bssid, arvif->vdev_id, ret); arvif 2892 drivers/net/wireless/ath/ath10k/mac.c bss_conf->bssid, arvif->vdev_id, ret); arvif 2896 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_setup_peer_smps(ar, arvif, bss_conf->bssid, &ht_cap); arvif 2899 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 2906 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, bss_conf->bssid, ret); arvif 2912 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, bss_conf->bssid, bss_conf->aid); arvif 2914 drivers/net/wireless/ath/ath10k/mac.c WARN_ON(arvif->is_up); arvif 2916 drivers/net/wireless/ath/ath10k/mac.c arvif->aid = bss_conf->aid; arvif 2917 drivers/net/wireless/ath/ath10k/mac.c ether_addr_copy(arvif->bssid, bss_conf->bssid); arvif 2919 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_up(ar, arvif->vdev_id, arvif->aid, arvif->bssid); arvif 2922 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 2926 drivers/net/wireless/ath/ath10k/mac.c arvif->is_up = true; arvif 2932 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, arvif->bssid, arvif 2936 drivers/net/wireless/ath/ath10k/mac.c arvif->bssid, arvif->vdev_id, ret); arvif 2945 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2952 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif->bssid); arvif 2954 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_down(ar, arvif->vdev_id); arvif 2957 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 2959 drivers/net/wireless/ath/ath10k/mac.c arvif->def_wep_key_idx = -1; arvif 2964 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 2968 drivers/net/wireless/ath/ath10k/mac.c arvif->is_up = false; arvif 2970 drivers/net/wireless/ath/ath10k/mac.c cancel_delayed_work_sync(&arvif->connection_loss_work); arvif 2978 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 2987 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id, ret); arvif 2994 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id, ret); arvif 3002 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_setup_peer_smps(ar, arvif, sta->addr, arvif 3006 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 3010 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_peer_assoc_qos_ap(ar, arvif, sta); arvif 3013 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id, ret); arvif 3018 drivers/net/wireless/ath/ath10k/mac.c arvif->num_legacy_stations++; arvif 3019 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_recalc_rtscts_prot(arvif); arvif 3022 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 3028 drivers/net/wireless/ath/ath10k/mac.c if ((arvif->def_wep_key_idx != -1) && (!sta->tdls)) { arvif 3029 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_peer_wep_keys(arvif, sta->addr); arvif 3032 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 3045 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 3051 drivers/net/wireless/ath/ath10k/mac.c arvif->num_legacy_stations--; arvif 3052 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_recalc_rtscts_prot(arvif); arvif 3055 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 3060 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_clear_peer_keys(arvif, sta->addr); arvif 3063 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 3308 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 3310 drivers/net/wireless/ath/ath10k/mac.c if (arvif->tx_paused) arvif 3313 drivers/net/wireless/ath/ath10k/mac.c ieee80211_wake_queue(ar->hw, arvif->vdev_id); arvif 3334 drivers/net/wireless/ath/ath10k/mac.c void ath10k_mac_vif_tx_lock(struct ath10k_vif *arvif, int reason) arvif 3336 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 3341 drivers/net/wireless/ath/ath10k/mac.c arvif->tx_paused |= BIT(reason); arvif 3342 drivers/net/wireless/ath/ath10k/mac.c ieee80211_stop_queue(ar->hw, arvif->vdev_id); arvif 3345 drivers/net/wireless/ath/ath10k/mac.c void ath10k_mac_vif_tx_unlock(struct ath10k_vif *arvif, int reason) arvif 3347 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 3352 drivers/net/wireless/ath/ath10k/mac.c arvif->tx_paused &= ~BIT(reason); arvif 3357 drivers/net/wireless/ath/ath10k/mac.c if (arvif->tx_paused) arvif 3360 drivers/net/wireless/ath/ath10k/mac.c ieee80211_wake_queue(ar->hw, arvif->vdev_id); arvif 3363 drivers/net/wireless/ath/ath10k/mac.c static void ath10k_mac_vif_handle_tx_pause(struct ath10k_vif *arvif, arvif 3367 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 3373 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_tx_lock(arvif, pause_id); arvif 3376 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_tx_unlock(arvif, pause_id); arvif 3381 drivers/net/wireless/ath/ath10k/mac.c action, arvif->vdev_id); arvif 3395 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 3398 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_id != arg->vdev_id) arvif 3401 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_handle_tx_pause(arvif, arg->pause_id, arg->action); arvif 3558 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 3566 drivers/net/wireless/ath/ath10k/mac.c if (arvif->u.ap.noa_data) arvif 3567 drivers/net/wireless/ath/ath10k/mac.c if (!pskb_expand_head(skb, 0, arvif->u.ap.noa_len, arvif 3569 drivers/net/wireless/ath/ath10k/mac.c skb_put_data(skb, arvif->u.ap.noa_data, arvif 3570 drivers/net/wireless/ath/ath10k/mac.c arvif->u.ap.noa_len); arvif 3778 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif; arvif 3841 drivers/net/wireless/ath/ath10k/mac.c arvif = ath10k_get_arvif(ar, vdev_id); arvif 3842 drivers/net/wireless/ath/ath10k/mac.c if (arvif) { arvif 3843 drivers/net/wireless/ath/ath10k/mac.c vif = arvif->vif; arvif 4440 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif; arvif 4462 drivers/net/wireless/ath/ath10k/mac.c list_for_each_entry(arvif, &ar->arvifs, list) arvif 4463 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_beacon_cleanup(arvif); arvif 4977 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif; arvif 4982 drivers/net/wireless/ath/ath10k/mac.c list_for_each_entry(arvif, &ar->arvifs, list) { arvif 4983 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_vif_setup_ps(arvif); arvif 5023 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif; arvif 5028 drivers/net/wireless/ath/ath10k/mac.c list_for_each_entry(arvif, &ar->arvifs, list) { arvif 5029 drivers/net/wireless/ath/ath10k/mac.c if (arvif->txpower <= 0) arvif 5033 drivers/net/wireless/ath/ath10k/mac.c txpower = arvif->txpower; arvif 5035 drivers/net/wireless/ath/ath10k/mac.c txpower = min(txpower, arvif->txpower); arvif 5084 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_set_txbf_conf(struct ath10k_vif *arvif) arvif 5087 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 5121 drivers/net/wireless/ath/ath10k/mac.c return ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, arvif 5136 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 5149 drivers/net/wireless/ath/ath10k/mac.c memset(arvif, 0, sizeof(*arvif)); arvif 5152 drivers/net/wireless/ath/ath10k/mac.c arvif->ar = ar; arvif 5153 drivers/net/wireless/ath/ath10k/mac.c arvif->vif = vif; arvif 5155 drivers/net/wireless/ath/ath10k/mac.c INIT_LIST_HEAD(&arvif->list); arvif 5156 drivers/net/wireless/ath/ath10k/mac.c INIT_WORK(&arvif->ap_csa_work, ath10k_mac_vif_ap_csa_work); arvif 5157 drivers/net/wireless/ath/ath10k/mac.c INIT_DELAYED_WORK(&arvif->connection_loss_work, arvif 5160 drivers/net/wireless/ath/ath10k/mac.c for (i = 0; i < ARRAY_SIZE(arvif->bitrate_mask.control); i++) { arvif 5161 drivers/net/wireless/ath/ath10k/mac.c arvif->bitrate_mask.control[i].legacy = 0xffffffff; arvif 5162 drivers/net/wireless/ath/ath10k/mac.c memset(arvif->bitrate_mask.control[i].ht_mcs, 0xff, arvif 5163 drivers/net/wireless/ath/ath10k/mac.c sizeof(arvif->bitrate_mask.control[i].ht_mcs)); arvif 5164 drivers/net/wireless/ath/ath10k/mac.c memset(arvif->bitrate_mask.control[i].vht_mcs, 0xff, arvif 5165 drivers/net/wireless/ath/ath10k/mac.c sizeof(arvif->bitrate_mask.control[i].vht_mcs)); arvif 5184 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id = bit; arvif 5185 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_subtype = arvif 5190 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type = WMI_VDEV_TYPE_STA; arvif 5191 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_subtype = ath10k_wmi_get_vdev_subtype arvif 5196 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type = WMI_VDEV_TYPE_STA; arvif 5198 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_subtype = ath10k_wmi_get_vdev_subtype arvif 5202 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type = WMI_VDEV_TYPE_IBSS; arvif 5206 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_subtype = ath10k_wmi_get_vdev_subtype arvif 5213 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type = WMI_VDEV_TYPE_AP; arvif 5216 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type = WMI_VDEV_TYPE_AP; arvif 5219 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_subtype = ath10k_wmi_get_vdev_subtype arvif 5223 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type = WMI_VDEV_TYPE_MONITOR; arvif 5235 drivers/net/wireless/ath/ath10k/mac.c vif->cab_queue = arvif->vdev_id % (IEEE80211_MAX_QUEUES - 1); arvif 5237 drivers/net/wireless/ath/ath10k/mac.c vif->hw_queue[i] = arvif->vdev_id % (IEEE80211_MAX_QUEUES - 1); arvif 5258 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon_buf = dma_alloc_coherent(ar->dev, arvif 5260 drivers/net/wireless/ath/ath10k/mac.c &arvif->beacon_paddr, arvif 5262 drivers/net/wireless/ath/ath10k/mac.c if (!arvif->beacon_buf) { arvif 5270 drivers/net/wireless/ath/ath10k/mac.c arvif->nohwcrypt = true; arvif 5272 drivers/net/wireless/ath/ath10k/mac.c if (arvif->nohwcrypt && arvif 5279 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif->vdev_type, arvif->vdev_subtype, arvif 5280 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon_buf ? "single-buf" : "per-skb"); arvif 5282 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_create(ar, arvif->vdev_id, arvif->vdev_type, arvif 5283 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_subtype, vif->addr); arvif 5286 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5293 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 5297 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5301 drivers/net/wireless/ath/ath10k/mac.c ar->free_vdev_map &= ~(1LL << arvif->vdev_id); arvif 5303 drivers/net/wireless/ath/ath10k/mac.c list_add(&arvif->list, &ar->arvifs); arvif 5309 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_vif_disable_keepalive(arvif); arvif 5312 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5316 drivers/net/wireless/ath/ath10k/mac.c arvif->def_wep_key_idx = -1; arvif 5319 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 5324 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5335 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 5339 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ar->cfg_tx_chainmask, nss, arvif 5345 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type == WMI_VDEV_TYPE_AP || arvif 5346 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type == WMI_VDEV_TYPE_IBSS) { arvif 5347 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_peer_create(ar, vif, NULL, arvif->vdev_id, arvif 5351 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5357 drivers/net/wireless/ath/ath10k/mac.c peer = ath10k_peer_find(ar, arvif->vdev_id, vif->addr); arvif 5360 drivers/net/wireless/ath/ath10k/mac.c vif->addr, arvif->vdev_id); arvif 5366 drivers/net/wireless/ath/ath10k/mac.c arvif->peer_id = find_first_bit(peer->peer_ids, arvif 5371 drivers/net/wireless/ath/ath10k/mac.c arvif->peer_id = HTT_INVALID_PEERID; arvif 5374 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type == WMI_VDEV_TYPE_AP) { arvif 5375 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_set_kickout(arvif); arvif 5378 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5383 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type == WMI_VDEV_TYPE_STA) { arvif 5386 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_set_sta_ps_param(ar, arvif->vdev_id, arvif 5390 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5394 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_vif_recalc_ps_wake_threshold(arvif); arvif 5397 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5401 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_vif_recalc_ps_poll_count(arvif); arvif 5404 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5409 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_set_txbf_conf(arvif); arvif 5412 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5416 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_set_rts(arvif, ar->hw->wiphy->rts_threshold); arvif 5419 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5423 drivers/net/wireless/ath/ath10k/mac.c arvif->txpower = vif->bss_conf.txpower; arvif 5432 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 5433 drivers/net/wireless/ath/ath10k/mac.c arvif->ftm_responder); arvif 5438 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5442 drivers/net/wireless/ath/ath10k/mac.c ar->monitor_arvif = arvif; arvif 5452 drivers/net/wireless/ath/ath10k/mac.c ieee80211_wake_queue(ar->hw, arvif->vdev_id); arvif 5459 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type == WMI_VDEV_TYPE_AP || arvif 5460 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type == WMI_VDEV_TYPE_IBSS) { arvif 5461 drivers/net/wireless/ath/ath10k/mac.c ath10k_wmi_peer_delete(ar, arvif->vdev_id, vif->addr); arvif 5462 drivers/net/wireless/ath/ath10k/mac.c ath10k_wait_for_peer_delete_done(ar, arvif->vdev_id, arvif 5467 drivers/net/wireless/ath/ath10k/mac.c ath10k_wmi_vdev_delete(ar, arvif->vdev_id); arvif 5468 drivers/net/wireless/ath/ath10k/mac.c ar->free_vdev_map |= 1LL << arvif->vdev_id; arvif 5470 drivers/net/wireless/ath/ath10k/mac.c list_del(&arvif->list); arvif 5474 drivers/net/wireless/ath/ath10k/mac.c if (arvif->beacon_buf) { arvif 5476 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon_buf, arvif->beacon_paddr); arvif 5477 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon_buf = NULL; arvif 5485 drivers/net/wireless/ath/ath10k/mac.c static void ath10k_mac_vif_tx_unlock_all(struct ath10k_vif *arvif) arvif 5490 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_tx_unlock(arvif, i); arvif 5497 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 5503 drivers/net/wireless/ath/ath10k/mac.c cancel_work_sync(&arvif->ap_csa_work); arvif 5504 drivers/net/wireless/ath/ath10k/mac.c cancel_delayed_work_sync(&arvif->connection_loss_work); arvif 5508 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_spectral_vif_stop(arvif); arvif 5511 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5513 drivers/net/wireless/ath/ath10k/mac.c ar->free_vdev_map |= 1LL << arvif->vdev_id; arvif 5515 drivers/net/wireless/ath/ath10k/mac.c list_del(&arvif->list); arvif 5518 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type == WMI_VDEV_TYPE_AP || arvif 5519 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type == WMI_VDEV_TYPE_IBSS) { arvif 5520 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_peer_delete(arvif->ar, arvif->vdev_id, arvif 5524 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5526 drivers/net/wireless/ath/ath10k/mac.c ath10k_wait_for_peer_delete_done(ar, arvif->vdev_id, arvif 5528 drivers/net/wireless/ath/ath10k/mac.c kfree(arvif->u.ap.noa_data); arvif 5532 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id); arvif 5534 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_delete(ar, arvif->vdev_id); arvif 5537 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5551 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type == WMI_VDEV_TYPE_AP || arvif 5552 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type == WMI_VDEV_TYPE_IBSS) { arvif 5553 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wait_for_peer_deleted(ar, arvif->vdev_id, arvif 5557 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5572 drivers/net/wireless/ath/ath10k/mac.c vif->addr, arvif->vdev_id); arvif 5580 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_beacon_cleanup(arvif); arvif 5583 drivers/net/wireless/ath/ath10k/mac.c ath10k_peer_cleanup(ar, arvif->vdev_id); arvif 5598 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_tx_unlock_all(arvif); arvif 5646 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 5658 drivers/net/wireless/ath/ath10k/mac.c ath10k_control_ibss(arvif, info, vif->addr); arvif 5661 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon_interval = info->beacon_int; arvif 5663 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 5664 drivers/net/wireless/ath/ath10k/mac.c arvif->beacon_interval); arvif 5667 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif->beacon_interval); arvif 5671 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5677 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id); arvif 5684 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5686 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_setup_bcn_tmpl(arvif); arvif 5693 drivers/net/wireless/ath/ath10k/mac.c strncpy(arvif->u.ap.ssid, "mesh", arvif 5694 drivers/net/wireless/ath/ath10k/mac.c sizeof(arvif->u.ap.ssid)); arvif 5695 drivers/net/wireless/ath/ath10k/mac.c arvif->u.ap.ssid_len = 4; arvif 5700 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_setup_prb_tmpl(arvif); arvif 5703 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5707 drivers/net/wireless/ath/ath10k/mac.c arvif->dtim_period = info->dtim_period; arvif 5711 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif->dtim_period); arvif 5714 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 5715 drivers/net/wireless/ath/ath10k/mac.c arvif->dtim_period); arvif 5718 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5723 drivers/net/wireless/ath/ath10k/mac.c arvif->u.ap.ssid_len = info->ssid_len; arvif 5725 drivers/net/wireless/ath/ath10k/mac.c memcpy(arvif->u.ap.ssid, info->ssid, info->ssid_len); arvif 5726 drivers/net/wireless/ath/ath10k/mac.c arvif->u.ap.hidden_ssid = info->hidden_ssid; arvif 5730 drivers/net/wireless/ath/ath10k/mac.c ether_addr_copy(arvif->bssid, info->bssid); arvif 5733 drivers/net/wireless/ath/ath10k/mac.c arvif->ftm_responder != info->ftm_responder && arvif 5735 drivers/net/wireless/ath/ath10k/mac.c arvif->ftm_responder = info->ftm_responder; arvif 5738 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 5739 drivers/net/wireless/ath/ath10k/mac.c arvif->ftm_responder); arvif 5743 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif->ftm_responder, ret); arvif 5747 drivers/net/wireless/ath/ath10k/mac.c ath10k_control_beaconing(arvif, info); arvif 5750 drivers/net/wireless/ath/ath10k/mac.c arvif->use_cts_prot = info->use_cts_prot; arvif 5752 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_recalc_rtscts_prot(arvif); arvif 5755 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5757 drivers/net/wireless/ath/ath10k/mac.c if (ath10k_mac_can_set_cts_prot(arvif)) { arvif 5758 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_set_cts_prot(arvif); arvif 5761 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5773 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, slottime); arvif 5776 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 5780 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5791 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, preamble); arvif 5794 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 5798 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5818 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, info->txpower); arvif 5820 drivers/net/wireless/ath/ath10k/mac.c arvif->txpower = info->txpower; arvif 5827 drivers/net/wireless/ath/ath10k/mac.c arvif->ps = vif->bss_conf.ps; arvif 5832 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5836 drivers/net/wireless/ath/ath10k/mac.c !ath10k_mac_vif_chan(arvif->vif, &def)) { arvif 5858 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, rate); arvif 5861 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, arvif 5866 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5869 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, arvif 5874 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 5895 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 5928 drivers/net/wireless/ath/ath10k/mac.c struct ieee80211_vif *sta_vif = arsta->arvif->vif; arvif 5952 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 5973 drivers/net/wireless/ath/ath10k/mac.c ar->scan.vdev_id = arvif->vdev_id; arvif 5989 drivers/net/wireless/ath/ath10k/mac.c arg.vdev_id = arvif->vdev_id; arvif 6064 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif, arvif 6068 drivers/net/wireless/ath/ath10k/mac.c u32 vdev_param = arvif->ar->wmi.vdev_param->def_keyid; arvif 6082 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type != WMI_VDEV_TYPE_AP && arvif 6083 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_type != WMI_VDEV_TYPE_IBSS) arvif 6098 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, arvif 6102 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 6110 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 6127 drivers/net/wireless/ath/ath10k/mac.c if (arvif->nohwcrypt) arvif 6137 drivers/net/wireless/ath/ath10k/mac.c else if (arvif->vdev_type == WMI_VDEV_TYPE_STA) arvif 6146 drivers/net/wireless/ath/ath10k/mac.c arvif->wep_keys[key->keyidx] = key; arvif 6148 drivers/net/wireless/ath/ath10k/mac.c arvif->wep_keys[key->keyidx] = NULL; arvif 6155 drivers/net/wireless/ath/ath10k/mac.c peer = ath10k_peer_find(ar, arvif->vdev_id, peer_addr); arvif 6177 drivers/net/wireless/ath/ath10k/mac.c ath10k_clear_vdev_key(arvif, key); arvif 6185 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_update_wep_key(arvif, key); arvif 6193 drivers/net/wireless/ath/ath10k/mac.c if (cmd == SET_KEY && arvif->def_wep_key_idx == -1) arvif 6197 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_key(arvif, key, cmd, peer_addr, flags); arvif 6201 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, peer_addr, ret); arvif 6213 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_install_key(arvif, key, cmd, peer_addr, flags2); arvif 6217 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, peer_addr, ret); arvif 6218 drivers/net/wireless/ath/ath10k/mac.c ret2 = ath10k_install_key(arvif, key, DISABLE_KEY, arvif 6223 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, peer_addr, ret2); arvif 6229 drivers/net/wireless/ath/ath10k/mac.c ath10k_set_key_h_def_keyidx(ar, arvif, cmd, key); arvif 6232 drivers/net/wireless/ath/ath10k/mac.c peer = ath10k_peer_find(ar, arvif->vdev_id, peer_addr); arvif 6243 drivers/net/wireless/ath/ath10k/mac.c ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr, arvif 6256 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 6259 drivers/net/wireless/ath/ath10k/mac.c mutex_lock(&arvif->ar->conf_mutex); arvif 6261 drivers/net/wireless/ath/ath10k/mac.c if (arvif->ar->state != ATH10K_STATE_ON) arvif 6265 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, keyidx); arvif 6267 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(arvif->ar, arvif 6268 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif 6269 drivers/net/wireless/ath/ath10k/mac.c arvif->ar->wmi.vdev_param->def_keyid, arvif 6274 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif 6279 drivers/net/wireless/ath/ath10k/mac.c arvif->def_wep_key_idx = keyidx; arvif 6282 drivers/net/wireless/ath/ath10k/mac.c mutex_unlock(&arvif->ar->conf_mutex); arvif 6288 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif; arvif 6300 drivers/net/wireless/ath/ath10k/mac.c arvif = arsta->arvif; arvif 6301 drivers/net/wireless/ath/ath10k/mac.c ar = arvif->ar; arvif 6303 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(ath10k_mac_vif_chan(arvif->vif, &def))) arvif 6307 drivers/net/wireless/ath/ath10k/mac.c ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; arvif 6308 drivers/net/wireless/ath/ath10k/mac.c vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; arvif 6334 drivers/net/wireless/ath/ath10k/mac.c err = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr, arvif 6342 drivers/net/wireless/ath/ath10k/mac.c err = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr, arvif 6353 drivers/net/wireless/ath/ath10k/mac.c err = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr, arvif 6364 drivers/net/wireless/ath/ath10k/mac.c err = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr, arvif 6375 drivers/net/wireless/ath/ath10k/mac.c err = ath10k_station_assoc(ar, arvif->vif, sta, true); arvif 6385 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_inc_num_stations(struct ath10k_vif *arvif, arvif 6388 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 6392 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type == WMI_VDEV_TYPE_STA && !sta->tdls) arvif 6403 drivers/net/wireless/ath/ath10k/mac.c static void ath10k_mac_dec_num_stations(struct ath10k_vif *arvif, arvif 6406 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 6410 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type == WMI_VDEV_TYPE_STA && !sta->tdls) arvif 6421 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 6438 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr, arvif 6458 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 6467 drivers/net/wireless/ath/ath10k/mac.c arsta->arvif = arvif; arvif 6492 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, sta->addr, arvif 6501 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif 6509 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_inc_num_stations(arvif, sta); arvif 6525 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_peer_create(ar, vif, sta, arvif->vdev_id, arvif 6529 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id, ret); arvif 6530 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_dec_num_stations(arvif, sta); arvif 6537 drivers/net/wireless/ath/ath10k/mac.c peer = ath10k_peer_find(ar, arvif->vdev_id, sta->addr); arvif 6540 drivers/net/wireless/ath/ath10k/mac.c vif->addr, arvif->vdev_id); arvif 6542 drivers/net/wireless/ath/ath10k/mac.c ath10k_peer_delete(ar, arvif->vdev_id, sta->addr); arvif 6543 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_dec_num_stations(arvif, sta); arvif 6557 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_update_fw_tdls_state(ar, arvif->vdev_id, arvif 6561 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 6562 drivers/net/wireless/ath/ath10k/mac.c ath10k_peer_delete(ar, arvif->vdev_id, arvif 6564 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_dec_num_stations(arvif, sta); arvif 6569 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_tdls_peer_update(ar, arvif->vdev_id, sta, arvif 6574 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id, ret); arvif 6575 drivers/net/wireless/ath/ath10k/mac.c ath10k_peer_delete(ar, arvif->vdev_id, sta->addr); arvif 6576 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_dec_num_stations(arvif, sta); arvif 6581 drivers/net/wireless/ath/ath10k/mac.c ath10k_wmi_update_fw_tdls_state(ar, arvif->vdev_id, arvif 6591 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, sta->addr, sta); arvif 6594 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_tdls_peer_update(ar, arvif->vdev_id, arvif 6603 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_peer_delete(ar, arvif->vdev_id, sta->addr); arvif 6606 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id, ret); arvif 6608 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_dec_num_stations(arvif, sta); arvif 6618 drivers/net/wireless/ath/ath10k/mac.c sta->addr, peer, i, arvif->vdev_id); arvif 6647 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_update_fw_tdls_state(ar, arvif->vdev_id, arvif 6651 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 6667 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id, ret); arvif 6680 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id, ret); arvif 6684 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_tdls_peer_update(ar, arvif->vdev_id, sta, arvif 6688 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id, ret); arvif 6703 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id, ret); arvif 6713 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 6721 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type != WMI_VDEV_TYPE_STA) arvif 6752 drivers/net/wireless/ath/ath10k/mac.c arvif->u.sta.uapsd |= value; arvif 6754 drivers/net/wireless/ath/ath10k/mac.c arvif->u.sta.uapsd &= ~value; arvif 6756 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_set_sta_ps_param(ar, arvif->vdev_id, arvif 6758 drivers/net/wireless/ath/ath10k/mac.c arvif->u.sta.uapsd); arvif 6764 drivers/net/wireless/ath/ath10k/mac.c if (arvif->u.sta.uapsd) arvif 6769 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_set_sta_ps_param(ar, arvif->vdev_id, arvif 6775 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_vif_recalc_ps_wake_threshold(arvif); arvif 6778 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 6782 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_vif_recalc_ps_poll_count(arvif); arvif 6785 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 6803 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_sta_uapsd(ar, arvif->vdev_id, arvif 6804 drivers/net/wireless/ath/ath10k/mac.c arvif->bssid, &arg, 1); arvif 6821 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 6829 drivers/net/wireless/ath/ath10k/mac.c p = &arvif->wmm_params.ac_vo; arvif 6832 drivers/net/wireless/ath/ath10k/mac.c p = &arvif->wmm_params.ac_vi; arvif 6835 drivers/net/wireless/ath/ath10k/mac.c p = &arvif->wmm_params.ac_be; arvif 6838 drivers/net/wireless/ath/ath10k/mac.c p = &arvif->wmm_params.ac_bk; arvif 6859 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_wmm_conf(ar, arvif->vdev_id, arvif 6860 drivers/net/wireless/ath/ath10k/mac.c &arvif->wmm_params); arvif 6863 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 6870 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_pdev_set_wmm_params(ar, &arvif->wmm_params); arvif 6895 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 6915 drivers/net/wireless/ath/ath10k/mac.c ar->scan.vdev_id = arvif->vdev_id; arvif 6935 drivers/net/wireless/ath/ath10k/mac.c arg.vdev_id = arvif->vdev_id; arvif 7004 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif; arvif 7008 drivers/net/wireless/ath/ath10k/mac.c list_for_each_entry(arvif, &ar->arvifs, list) { arvif 7010 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, value); arvif 7012 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_set_rts(arvif, value); arvif 7015 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 7074 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif; arvif 7080 drivers/net/wireless/ath/ath10k/mac.c list_for_each_entry(arvif, &ar->arvifs, list) { arvif 7081 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_type == WMI_VDEV_TYPE_STA) arvif 7082 drivers/net/wireless/ath/ath10k/mac.c ath10k_wmi_peer_flush(ar, arvif->vdev_id, arvif 7083 drivers/net/wireless/ath/ath10k/mac.c arvif->bssid, bitmap); arvif 7334 drivers/net/wireless/ath/ath10k/mac.c static int ath10k_mac_set_fixed_rate_params(struct ath10k_vif *arvif, arvif 7337 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 7344 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, rate, nss, sgi); arvif 7347 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, rate); arvif 7355 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, nss); arvif 7362 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, sgi); arvif 7369 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, ldpc); arvif 7411 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif, arvif 7415 drivers/net/wireless/ath/ath10k/mac.c u8 rate = arvif->vht_pfr; arvif 7418 drivers/net/wireless/ath/ath10k/mac.c if (!sta->vht_cap.vht_supported || arvif->vht_num_rates != 1) arvif 7421 drivers/net/wireless/ath/ath10k/mac.c err = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr, arvif 7433 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = data; arvif 7435 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 7437 drivers/net/wireless/ath/ath10k/mac.c if (arsta->arvif != arvif) arvif 7440 drivers/net/wireless/ath/ath10k/mac.c if (ath10k_mac_set_vht_bitrate_mask_fixup(ar, arvif, sta)) arvif 7453 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = data; arvif 7455 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 7459 drivers/net/wireless/ath/ath10k/mac.c if (arsta->arvif != arvif || !sta->vht_cap.vht_supported) arvif 7462 drivers/net/wireless/ath/ath10k/mac.c err = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr, arvif 7474 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 7476 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arvif->ar; arvif 7508 drivers/net/wireless/ath/ath10k/mac.c arvif); arvif 7519 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 7555 drivers/net/wireless/ath/ath10k/mac.c arvif->bitrate_mask = *mask; arvif 7556 drivers/net/wireless/ath/ath10k/mac.c arvif->vht_num_rates = vht_num_rates; arvif 7557 drivers/net/wireless/ath/ath10k/mac.c arvif->vht_pfr = vht_pfr; arvif 7560 drivers/net/wireless/ath/ath10k/mac.c arvif); arvif 7567 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_set_fixed_rate_params(arvif, rate, nss, sgi, ldpc); arvif 7570 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 7587 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 7593 drivers/net/wireless/ath/ath10k/mac.c peer = ath10k_peer_find(ar, arvif->vdev_id, sta->addr); arvif 7597 drivers/net/wireless/ath/ath10k/mac.c sta->addr, arvif->vdev_id); arvif 7670 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 7682 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, arvif 7695 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 7701 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, sta->addr, tid, action); arvif 7780 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif; arvif 7793 drivers/net/wireless/ath/ath10k/mac.c arvif = (void *)vifs[i].vif->drv_priv; arvif 7797 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, arvif 7803 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(!arvif->is_started)) arvif 7806 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(!arvif->is_up)) arvif 7809 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_down(ar, arvif->vdev_id); arvif 7812 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 7826 drivers/net/wireless/ath/ath10k/mac.c arvif = (void *)vifs[i].vif->drv_priv; arvif 7828 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(!arvif->is_started)) arvif 7831 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(!arvif->is_up)) arvif 7834 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_setup_bcn_tmpl(arvif); arvif 7839 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_setup_prb_tmpl(arvif); arvif 7844 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_vdev_restart(arvif, &vifs[i].new_ctx->def); arvif 7847 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 7851 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_up(arvif->ar, arvif->vdev_id, arvif->aid, arvif 7852 drivers/net/wireless/ath/ath10k/mac.c arvif->bssid); arvif 7855 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 8011 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 8018 drivers/net/wireless/ath/ath10k/mac.c ctx, arvif->vdev_id); arvif 8020 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON(arvif->is_started)) { arvif 8025 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_vdev_start(arvif, &ctx->def); arvif 8028 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, vif->addr, arvif 8033 drivers/net/wireless/ath/ath10k/mac.c arvif->is_started = true; arvif 8035 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_vif_setup_ps(arvif); arvif 8038 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 8043 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_up(ar, arvif->vdev_id, 0, vif->addr); arvif 8046 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 8050 drivers/net/wireless/ath/ath10k/mac.c arvif->is_up = true; arvif 8053 drivers/net/wireless/ath/ath10k/mac.c if (ath10k_mac_can_set_cts_prot(arvif)) { arvif 8054 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_mac_set_cts_prot(arvif); arvif 8057 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 8075 drivers/net/wireless/ath/ath10k/mac.c ath10k_vdev_stop(arvif); arvif 8076 drivers/net/wireless/ath/ath10k/mac.c arvif->is_started = false; arvif 8077 drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_vif_setup_ps(arvif); arvif 8090 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 8097 drivers/net/wireless/ath/ath10k/mac.c ctx, arvif->vdev_id); arvif 8099 drivers/net/wireless/ath/ath10k/mac.c WARN_ON(!arvif->is_started); arvif 8102 drivers/net/wireless/ath/ath10k/mac.c WARN_ON(!arvif->is_up); arvif 8104 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_vdev_down(ar, arvif->vdev_id); arvif 8107 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 8109 drivers/net/wireless/ath/ath10k/mac.c arvif->is_up = false; arvif 8112 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_vdev_stop(arvif); arvif 8115 drivers/net/wireless/ath/ath10k/mac.c arvif->vdev_id, ret); arvif 8117 drivers/net/wireless/ath/ath10k/mac.c arvif->is_started = false; arvif 8161 drivers/net/wireless/ath/ath10k/mac.c struct ath10k *ar = arsta->arvif->ar; arvif 8547 drivers/net/wireless/ath/ath10k/mac.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 8549 drivers/net/wireless/ath/ath10k/mac.c if (arvif->vdev_id == arvif_iter->vdev_id) arvif 8550 drivers/net/wireless/ath/ath10k/mac.c arvif_iter->arvif = arvif; arvif 8566 drivers/net/wireless/ath/ath10k/mac.c if (!arvif_iter.arvif) { arvif 8571 drivers/net/wireless/ath/ath10k/mac.c return arvif_iter.arvif; arvif 44 drivers/net/wireless/ath/ath10k/mac.h void ath10k_mac_vif_beacon_free(struct ath10k_vif *arvif); arvif 64 drivers/net/wireless/ath/ath10k/mac.h void ath10k_mac_vif_tx_lock(struct ath10k_vif *arvif, int reason); arvif 65 drivers/net/wireless/ath/ath10k/mac.h void ath10k_mac_vif_tx_unlock(struct ath10k_vif *arvif, int reason); arvif 81 drivers/net/wireless/ath/ath10k/mac.h struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 84 drivers/net/wireless/ath/ath10k/mac.h if (arvif->tx_seq_no == 0) arvif 85 drivers/net/wireless/ath/ath10k/mac.h arvif->tx_seq_no = 0x1000; arvif 88 drivers/net/wireless/ath/ath10k/mac.h arvif->tx_seq_no += 0x10; arvif 90 drivers/net/wireless/ath/ath10k/mac.h hdr->seq_ctrl |= cpu_to_le16(arvif->tx_seq_no); arvif 70 drivers/net/wireless/ath/ath10k/p2p.c static void ath10k_p2p_noa_ie_assign(struct ath10k_vif *arvif, void *ie, arvif 73 drivers/net/wireless/ath/ath10k/p2p.c struct ath10k *ar = arvif->ar; arvif 77 drivers/net/wireless/ath/ath10k/p2p.c kfree(arvif->u.ap.noa_data); arvif 79 drivers/net/wireless/ath/ath10k/p2p.c arvif->u.ap.noa_data = ie; arvif 80 drivers/net/wireless/ath/ath10k/p2p.c arvif->u.ap.noa_len = len; arvif 83 drivers/net/wireless/ath/ath10k/p2p.c static void __ath10k_p2p_noa_update(struct ath10k_vif *arvif, arvif 86 drivers/net/wireless/ath/ath10k/p2p.c struct ath10k *ar = arvif->ar; arvif 92 drivers/net/wireless/ath/ath10k/p2p.c ath10k_p2p_noa_ie_assign(arvif, NULL, 0); arvif 103 drivers/net/wireless/ath/ath10k/p2p.c ath10k_p2p_noa_ie_assign(arvif, ie, len); arvif 106 drivers/net/wireless/ath/ath10k/p2p.c void ath10k_p2p_noa_update(struct ath10k_vif *arvif, arvif 109 drivers/net/wireless/ath/ath10k/p2p.c struct ath10k *ar = arvif->ar; arvif 112 drivers/net/wireless/ath/ath10k/p2p.c __ath10k_p2p_noa_update(arvif, noa); arvif 124 drivers/net/wireless/ath/ath10k/p2p.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 127 drivers/net/wireless/ath/ath10k/p2p.c if (arvif->vdev_id != arg->vdev_id) arvif 130 drivers/net/wireless/ath/ath10k/p2p.c ath10k_p2p_noa_update(arvif, arg->noa); arvif 12 drivers/net/wireless/ath/ath10k/p2p.h void ath10k_p2p_noa_update(struct ath10k_vif *arvif, arvif 163 drivers/net/wireless/ath/ath10k/spectral.c struct ath10k_vif *arvif; arvif 171 drivers/net/wireless/ath/ath10k/spectral.c list_for_each_entry(arvif, &ar->arvifs, list) arvif 172 drivers/net/wireless/ath/ath10k/spectral.c if (arvif->spectral_enabled) arvif 173 drivers/net/wireless/ath/ath10k/spectral.c return arvif; arvif 176 drivers/net/wireless/ath/ath10k/spectral.c return list_first_entry(&ar->arvifs, typeof(*arvif), list); arvif 181 drivers/net/wireless/ath/ath10k/spectral.c struct ath10k_vif *arvif; arvif 187 drivers/net/wireless/ath/ath10k/spectral.c arvif = ath10k_get_spectral_vdev(ar); arvif 188 drivers/net/wireless/ath/ath10k/spectral.c if (!arvif) arvif 190 drivers/net/wireless/ath/ath10k/spectral.c vdev_id = arvif->vdev_id; arvif 214 drivers/net/wireless/ath/ath10k/spectral.c struct ath10k_vif *arvif; arvif 219 drivers/net/wireless/ath/ath10k/spectral.c arvif = ath10k_get_spectral_vdev(ar); arvif 220 drivers/net/wireless/ath/ath10k/spectral.c if (!arvif) arvif 223 drivers/net/wireless/ath/ath10k/spectral.c vdev_id = arvif->vdev_id; arvif 225 drivers/net/wireless/ath/ath10k/spectral.c arvif->spectral_enabled = (mode != SPECTRAL_DISABLED); arvif 507 drivers/net/wireless/ath/ath10k/spectral.c struct ath10k_vif *arvif; arvif 511 drivers/net/wireless/ath/ath10k/spectral.c list_for_each_entry(arvif, &ar->arvifs, list) arvif 512 drivers/net/wireless/ath/ath10k/spectral.c arvif->spectral_enabled = 0; arvif 521 drivers/net/wireless/ath/ath10k/spectral.c int ath10k_spectral_vif_stop(struct ath10k_vif *arvif) arvif 523 drivers/net/wireless/ath/ath10k/spectral.c if (!arvif->spectral_enabled) arvif 526 drivers/net/wireless/ath/ath10k/spectral.c return ath10k_spectral_scan_config(arvif->ar, SPECTRAL_DISABLED); arvif 43 drivers/net/wireless/ath/ath10k/spectral.h int ath10k_spectral_vif_stop(struct ath10k_vif *arvif); arvif 63 drivers/net/wireless/ath/ath10k/spectral.h static inline int ath10k_spectral_vif_stop(struct ath10k_vif *arvif) arvif 173 drivers/net/wireless/ath/ath10k/wmi-tlv.c struct ath10k_vif *arvif; arvif 207 drivers/net/wireless/ath/ath10k/wmi-tlv.c arvif = ath10k_get_arvif(ar, vdev_id); arvif 208 drivers/net/wireless/ath/ath10k/wmi-tlv.c if (arvif && arvif->is_up && arvif->vif->csa_active) arvif 209 drivers/net/wireless/ath/ath10k/wmi-tlv.c ieee80211_queue_work(ar->hw, &arvif->ap_csa_work); arvif 430 drivers/net/wireless/ath/ath10k/wmi-tlv.c struct ath10k_vif *arvif; arvif 456 drivers/net/wireless/ath/ath10k/wmi-tlv.c arvif = ath10k_get_arvif(ar, __le32_to_cpu(ev->vdev_id)); arvif 458 drivers/net/wireless/ath/ath10k/wmi-tlv.c arvif->vif, station->addr, arvif 2871 drivers/net/wireless/ath/ath10k/wmi-tlv.c struct ath10k_vif *arvif; arvif 2883 drivers/net/wireless/ath/ath10k/wmi-tlv.c arvif = (void *)cb->vif->drv_priv; arvif 2884 drivers/net/wireless/ath/ath10k/wmi-tlv.c vdev_id = arvif->vdev_id; arvif 1797 drivers/net/wireless/ath/ath10k/wmi.c static void ath10k_wmi_tx_beacon_nowait(struct ath10k_vif *arvif) arvif 1799 drivers/net/wireless/ath/ath10k/wmi.c struct ath10k *ar = arvif->ar; arvif 1808 drivers/net/wireless/ath/ath10k/wmi.c bcn = arvif->beacon; arvif 1815 drivers/net/wireless/ath/ath10k/wmi.c switch (arvif->beacon_state) { arvif 1820 drivers/net/wireless/ath/ath10k/wmi.c arvif->beacon_state = ATH10K_BEACON_SENDING; arvif 1825 drivers/net/wireless/ath/ath10k/wmi.c ret = ath10k_wmi_beacon_send_ref_nowait(arvif->ar, arvif 1826 drivers/net/wireless/ath/ath10k/wmi.c arvif->vdev_id, arvif 1835 drivers/net/wireless/ath/ath10k/wmi.c arvif->beacon_state = ATH10K_BEACON_SENT; arvif 1837 drivers/net/wireless/ath/ath10k/wmi.c arvif->beacon_state = ATH10K_BEACON_SCHEDULED; arvif 1847 drivers/net/wireless/ath/ath10k/wmi.c struct ath10k_vif *arvif = (void *)vif->drv_priv; arvif 1849 drivers/net/wireless/ath/ath10k/wmi.c ath10k_wmi_tx_beacon_nowait(arvif); arvif 1908 drivers/net/wireless/ath/ath10k/wmi.c struct ath10k_vif *arvif; arvif 1921 drivers/net/wireless/ath/ath10k/wmi.c arvif = (void *)cb->vif->drv_priv; arvif 1922 drivers/net/wireless/ath/ath10k/wmi.c vdev_id = arvif->vdev_id; arvif 3474 drivers/net/wireless/ath/ath10k/wmi.c struct ath10k_vif *arvif, arvif 3496 drivers/net/wireless/ath/ath10k/wmi.c if (sizeof(arvif->u.ap.tim_bitmap) < tim_len) { arvif 3498 drivers/net/wireless/ath/ath10k/wmi.c tim_len, sizeof(arvif->u.ap.tim_bitmap)); arvif 3499 drivers/net/wireless/ath/ath10k/wmi.c tim_len = sizeof(arvif->u.ap.tim_bitmap); arvif 3505 drivers/net/wireless/ath/ath10k/wmi.c arvif->u.ap.tim_bitmap[i] = (v >> ((i % 4) * 8)) & 0xFF; arvif 3511 drivers/net/wireless/ath/ath10k/wmi.c arvif->u.ap.tim_len = 0; arvif 3513 drivers/net/wireless/ath/ath10k/wmi.c if (arvif->u.ap.tim_bitmap[i]) arvif 3514 drivers/net/wireless/ath/ath10k/wmi.c arvif->u.ap.tim_len = i; arvif 3516 drivers/net/wireless/ath/ath10k/wmi.c arvif->u.ap.tim_len++; arvif 3526 drivers/net/wireless/ath/ath10k/wmi.c if (arvif->vdev_type != WMI_VDEV_TYPE_IBSS) arvif 3535 drivers/net/wireless/ath/ath10k/wmi.c if (pvm_len < arvif->u.ap.tim_len) { arvif 3557 drivers/net/wireless/ath/ath10k/wmi.c memcpy(tim->virtual_map, arvif->u.ap.tim_bitmap, pvm_len); arvif 3571 drivers/net/wireless/ath/ath10k/wmi.c static void ath10k_wmi_update_noa(struct ath10k *ar, struct ath10k_vif *arvif, arvif 3575 drivers/net/wireless/ath/ath10k/wmi.c if (!arvif->vif->p2p) arvif 3581 drivers/net/wireless/ath/ath10k/wmi.c ath10k_p2p_noa_update(arvif, noa); arvif 3583 drivers/net/wireless/ath/ath10k/wmi.c if (arvif->u.ap.noa_data) arvif 3584 drivers/net/wireless/ath/ath10k/wmi.c if (!pskb_expand_head(bcn, 0, arvif->u.ap.noa_len, GFP_ATOMIC)) arvif 3585 drivers/net/wireless/ath/ath10k/wmi.c skb_put_data(bcn, arvif->u.ap.noa_data, arvif 3586 drivers/net/wireless/ath/ath10k/wmi.c arvif->u.ap.noa_len); arvif 3747 drivers/net/wireless/ath/ath10k/wmi.c struct ath10k_vif *arvif; arvif 3793 drivers/net/wireless/ath/ath10k/wmi.c arvif = ath10k_get_arvif(ar, vdev_id); arvif 3794 drivers/net/wireless/ath/ath10k/wmi.c if (arvif == NULL) { arvif 3803 drivers/net/wireless/ath/ath10k/wmi.c if (!arvif->is_up) arvif 3812 drivers/net/wireless/ath/ath10k/wmi.c if (arvif->vif->csa_active && arvif 3813 drivers/net/wireless/ath/ath10k/wmi.c ieee80211_csa_is_complete(arvif->vif)) { arvif 3814 drivers/net/wireless/ath/ath10k/wmi.c ieee80211_csa_finish(arvif->vif); arvif 3818 drivers/net/wireless/ath/ath10k/wmi.c bcn = ieee80211_beacon_get(ar->hw, arvif->vif); arvif 3824 drivers/net/wireless/ath/ath10k/wmi.c ath10k_tx_h_seq_no(arvif->vif, bcn); arvif 3825 drivers/net/wireless/ath/ath10k/wmi.c ath10k_wmi_update_tim(ar, arvif, bcn, tim_info); arvif 3826 drivers/net/wireless/ath/ath10k/wmi.c ath10k_wmi_update_noa(ar, arvif, bcn, noa_info); arvif 3830 drivers/net/wireless/ath/ath10k/wmi.c if (arvif->beacon) { arvif 3831 drivers/net/wireless/ath/ath10k/wmi.c switch (arvif->beacon_state) { arvif 3836 drivers/net/wireless/ath/ath10k/wmi.c arvif->vdev_id); arvif 3840 drivers/net/wireless/ath/ath10k/wmi.c arvif->vdev_id); arvif 3845 drivers/net/wireless/ath/ath10k/wmi.c ath10k_mac_vif_beacon_free(arvif); arvif 3848 drivers/net/wireless/ath/ath10k/wmi.c if (!arvif->beacon_buf) { arvif 3849 drivers/net/wireless/ath/ath10k/wmi.c paddr = dma_map_single(arvif->ar->dev, bcn->data, arvif 3851 drivers/net/wireless/ath/ath10k/wmi.c ret = dma_mapping_error(arvif->ar->dev, paddr); arvif 3866 drivers/net/wireless/ath/ath10k/wmi.c memcpy(arvif->beacon_buf, bcn->data, bcn->len); arvif 3867 drivers/net/wireless/ath/ath10k/wmi.c ATH10K_SKB_CB(bcn)->paddr = arvif->beacon_paddr; arvif 3870 drivers/net/wireless/ath/ath10k/wmi.c arvif->beacon = bcn; arvif 3871 drivers/net/wireless/ath/ath10k/wmi.c arvif->beacon_state = ATH10K_BEACON_SCHEDULED; arvif 5106 drivers/net/wireless/ath/ath10k/wmi.c struct ath10k_vif *arvif; arvif 5146 drivers/net/wireless/ath/ath10k/wmi.c arvif = ath10k_get_arvif(ar, vdev_id); arvif 5147 drivers/net/wireless/ath/ath10k/wmi.c if (!arvif) { arvif 5153 drivers/net/wireless/ath/ath10k/wmi.c ieee80211_tdls_oper_request(arvif->vif, ev->peer_macaddr.addr, arvif 24 drivers/net/wireless/ath/ath10k/wow.c static int ath10k_wow_vif_cleanup(struct ath10k_vif *arvif) arvif 26 drivers/net/wireless/ath/ath10k/wow.c struct ath10k *ar = arvif->ar; arvif 30 drivers/net/wireless/ath/ath10k/wow.c ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0); arvif 33 drivers/net/wireless/ath/ath10k/wow.c wow_wakeup_event(i), arvif->vdev_id, ret); arvif 39 drivers/net/wireless/ath/ath10k/wow.c ret = ath10k_wmi_wow_del_pattern(ar, arvif->vdev_id, i); arvif 42 drivers/net/wireless/ath/ath10k/wow.c i, arvif->vdev_id, ret); arvif 52 drivers/net/wireless/ath/ath10k/wow.c struct ath10k_vif *arvif; arvif 57 drivers/net/wireless/ath/ath10k/wow.c list_for_each_entry(arvif, &ar->arvifs, list) { arvif 58 drivers/net/wireless/ath/ath10k/wow.c ret = ath10k_wow_vif_cleanup(arvif); arvif 61 drivers/net/wireless/ath/ath10k/wow.c arvif->vdev_id, ret); arvif 265 drivers/net/wireless/ath/ath10k/wow.c static int ath10k_vif_wow_set_wakeups(struct ath10k_vif *arvif, arvif 270 drivers/net/wireless/ath/ath10k/wow.c struct ath10k *ar = arvif->ar; arvif 275 drivers/net/wireless/ath/ath10k/wow.c switch (arvif->vdev_type) { arvif 309 drivers/net/wireless/ath/ath10k/wow.c ret = ath10k_wmi_pno_check(ar, arvif->vdev_id, arvif 312 drivers/net/wireless/ath/ath10k/wow.c ath10k_wmi_wow_config_pno(ar, arvif->vdev_id, pno); arvif 353 drivers/net/wireless/ath/ath10k/wow.c ret = ath10k_wmi_wow_add_pattern(ar, arvif->vdev_id, arvif 362 drivers/net/wireless/ath/ath10k/wow.c arvif->vdev_id, ret); arvif 373 drivers/net/wireless/ath/ath10k/wow.c ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 1); arvif 376 drivers/net/wireless/ath/ath10k/wow.c wow_wakeup_event(i), arvif->vdev_id, ret); arvif 387 drivers/net/wireless/ath/ath10k/wow.c struct ath10k_vif *arvif; arvif 392 drivers/net/wireless/ath/ath10k/wow.c list_for_each_entry(arvif, &ar->arvifs, list) { arvif 393 drivers/net/wireless/ath/ath10k/wow.c ret = ath10k_vif_wow_set_wakeups(arvif, wowlan); arvif 396 drivers/net/wireless/ath/ath10k/wow.c arvif->vdev_id, ret); arvif 404 drivers/net/wireless/ath/ath10k/wow.c static int ath10k_vif_wow_clean_nlo(struct ath10k_vif *arvif) arvif 407 drivers/net/wireless/ath/ath10k/wow.c struct ath10k *ar = arvif->ar; arvif 409 drivers/net/wireless/ath/ath10k/wow.c switch (arvif->vdev_type) { arvif 420 drivers/net/wireless/ath/ath10k/wow.c ret = ath10k_wmi_wow_config_pno(ar, arvif->vdev_id, pno); arvif 432 drivers/net/wireless/ath/ath10k/wow.c struct ath10k_vif *arvif; arvif 437 drivers/net/wireless/ath/ath10k/wow.c list_for_each_entry(arvif, &ar->arvifs, list) { arvif 438 drivers/net/wireless/ath/ath10k/wow.c ret = ath10k_vif_wow_clean_nlo(arvif); arvif 441 drivers/net/wireless/ath/ath10k/wow.c arvif->vdev_id, ret);