]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ath10k: management tx ack rssi capability check
authorBalaji Pothunoori <bpothuno@codeaurora.org>
Mon, 10 Sep 2018 06:24:30 +0000 (11:54 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 13 Oct 2018 17:22:02 +0000 (20:22 +0300)
Adding WMI service check for management tx ack rssi support; this is
done to maintain common avg ack signal in user level for both data
and management tx ack packet.

Tested on QCA4019(fw version-10.4-3.2.1-00063).

Signed-off-by: Balaji Pothunoori <bpothuno@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/mac.c

index a32bfcf231783c9f88352cb8ffb2fb5d8b203d5e..e50b4f466bb15da11c2ab4c8b2dc809c2451252d 100644 (file)
@@ -8562,9 +8562,10 @@ int ath10k_mac_register(struct ath10k *ar)
        wiphy_ext_feature_set(ar->hw->wiphy,
                              NL80211_EXT_FEATURE_SET_SCAN_DWELL);
 
-       if (test_bit(WMI_SERVICE_TX_DATA_ACK_RSSI, ar->wmi.svc_map))
+       if (test_bit(WMI_SERVICE_TX_DATA_ACK_RSSI, ar->wmi.svc_map) ||
+           test_bit(WMI_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS, ar->wmi.svc_map))
                wiphy_ext_feature_set(ar->hw->wiphy,
-                                     NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT);
+                                     NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT);
 
        /*
         * on LL hardware queues are managed entirely by the FW