Message ID | 20210721212029.142388-8-jouni@codeaurora.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 79feedfea7793d91293ab72fac5fc66aae0c6a85 |
Delegated to: | Kalle Valo |
Headers | show |
Series | [01/12] ath11k: Fix pktlog lite rx events | expand |
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 20121479af6e..11276617a11f 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -500,7 +500,8 @@ struct ath11k_vif *ath11k_mac_get_arvif_by_vdev_id(struct ath11k_base *ab, for (i = 0; i < ab->num_radios; i++) { pdev = rcu_dereference(ab->pdevs_active[i]); - if (pdev && pdev->ar) { + if (pdev && pdev->ar && + (pdev->ar->allocated_vdev_map & (1LL << vdev_id))) { arvif = ath11k_mac_get_arvif(pdev->ar, vdev_id); if (arvif) return arvif;