ath10k-ct: depend on kmod-hwmon-core, it gets used when CONFIG_THERMAL is set
[openwrt/staging/dedeckeh.git] / package / kernel / mac80211 / patches / 332-ath10k-Fix-failure-to-send-NULL-func-frame-for-10.4.patch
1 From: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
2 Date: Wed, 12 Oct 2016 12:59:02 +0530
3 Subject: [PATCH] ath10k: Fix failure to send NULL func frame for 10.4
4
5 This partially reverts 'commit 2cdce425aa33
6 ("ath10k: Fix broken NULL func data frame status for 10.4")'
7 Unfortunately this breaks sending NULL func and the existing
8 issue of obtaining proper tx status for NULL function will be
9 fixed. Also update the comments for feature flag added to be
10 useless and not working
11
12 Fixes: 2cdce425aa33 "ath10k: Fix broken NULL func data frame status for
13 10.4"
14 Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
15 ---
16
17 --- a/drivers/net/wireless/ath/ath10k/core.h
18 +++ b/drivers/net/wireless/ath/ath10k/core.h
19 @@ -556,10 +556,8 @@ enum ath10k_fw_features {
20 */
21 ATH10K_FW_FEATURE_BTCOEX_PARAM = 14,
22
23 - /* Older firmware with HTT delivers incorrect tx status for null func
24 - * frames to driver, but this fixed in 10.2 and 10.4 firmware versions.
25 - * Also this workaround results in reporting of incorrect null func
26 - * status for 10.4. This flag is used to skip the workaround.
27 + /* Unused flag and proven to be not working, enable this if you want
28 + * to experiment sending NULL func data frames in HTT TX
29 */
30 ATH10K_FW_FEATURE_SKIP_NULL_FUNC_WAR = 15,
31
32 --- a/drivers/net/wireless/ath/ath10k/mac.c
33 +++ b/drivers/net/wireless/ath/ath10k/mac.c
34 @@ -3274,8 +3274,6 @@ ath10k_mac_tx_h_get_txmode(struct ath10k
35 if (ar->htt.target_version_major < 3 &&
36 (ieee80211_is_nullfunc(fc) || ieee80211_is_qos_nullfunc(fc)) &&
37 !test_bit(ATH10K_FW_FEATURE_HAS_WMI_MGMT_TX,
38 - ar->running_fw->fw_file.fw_features) &&
39 - !test_bit(ATH10K_FW_FEATURE_SKIP_NULL_FUNC_WAR,
40 ar->running_fw->fw_file.fw_features))
41 return ATH10K_HW_TXRX_MGMT;
42