wlan-ap-Telecominfraproject/feeds/ipq95xx/mac80211/patches/qca/116-ath11k-clean-up-monitor-vdev-del.patch
John Crispin b9b03a6e38 ipq95xx: add Qualcomm wifi-7 support
Signed-off-by: John Crispin <john@phrozen.org>
2023-04-10 14:25:48 +02:00

20 lines
657 B
Diff

--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -6155,14 +6155,8 @@ static int ath11k_mac_op_add_interface(s
ath11k_dp_vdev_tx_attach(ar, arvif);
if (vif->type != NL80211_IFTYPE_MONITOR &&
- test_bit(ATH11K_FLAG_MONITOR_CONF_ENABLED, &ar->monitor_flags)) {
- ret = ath11k_mac_monitor_vdev_create(ar);
- if (ret) {
- ath11k_warn(ar->ab, "failed to create monitor vdev during add interface: %d",
- ret);
- goto err_peer_del;
- }
- }
+ test_bit(ATH11K_FLAG_MONITOR_CONF_ENABLED, &ar->monitor_flags))
+ ath11k_mac_monitor_vdev_create(ar);
ret = ath11k_mac_ap_ps_recalc(ar);
if (ret)