aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>2016-11-08 20:40:57 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-12 05:39:23 -0500
commita24f1f3520e61d46ca7867871d12345b4e5c2215 (patch)
tree9ce606c8ca95fc71e5e0bf20ff93c0decec4388e /drivers/net/wireless
parent45816391e1a5f32e25b8eb2f0c18033ea4b4b6a4 (diff)
ath10k: fix failure to send NULL func frame for 10.4
commit fcf7cf1551cae54e747a771f5808240f2a37708f upstream. This partially reverts 'commit 2cdce425aa33 ("ath10k: Fix broken NULL func data frame status for 10.4")' Unfortunately this breaks sending NULL func and the existing issue of obtaining proper tx status for NULL function will be fixed. Also update the comments for feature flag added to be useless and not working Fixes: 2cdce425aa33 "ath10k: Fix broken NULL func data frame status for 10.4" Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath10k/core.h6
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c2
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h
index 521f1c55c19e..be5b527472f9 100644
--- a/drivers/net/wireless/ath/ath10k/core.h
+++ b/drivers/net/wireless/ath/ath10k/core.h
@@ -557,10 +557,8 @@ enum ath10k_fw_features {
557 */ 557 */
558 ATH10K_FW_FEATURE_BTCOEX_PARAM = 14, 558 ATH10K_FW_FEATURE_BTCOEX_PARAM = 14,
559 559
560 /* Older firmware with HTT delivers incorrect tx status for null func 560 /* Unused flag and proven to be not working, enable this if you want
561 * frames to driver, but this fixed in 10.2 and 10.4 firmware versions. 561 * to experiment sending NULL func data frames in HTT TX
562 * Also this workaround results in reporting of incorrect null func
563 * status for 10.4. This flag is used to skip the workaround.
564 */ 562 */
565 ATH10K_FW_FEATURE_SKIP_NULL_FUNC_WAR = 15, 563 ATH10K_FW_FEATURE_SKIP_NULL_FUNC_WAR = 15,
566 564
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 90eeb1c82e8b..f2e85eb22afe 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -3255,8 +3255,6 @@ ath10k_mac_tx_h_get_txmode(struct ath10k *ar,
3255 if (ar->htt.target_version_major < 3 && 3255 if (ar->htt.target_version_major < 3 &&
3256 (ieee80211_is_nullfunc(fc) || ieee80211_is_qos_nullfunc(fc)) && 3256 (ieee80211_is_nullfunc(fc) || ieee80211_is_qos_nullfunc(fc)) &&
3257 !test_bit(ATH10K_FW_FEATURE_HAS_WMI_MGMT_TX, 3257 !test_bit(ATH10K_FW_FEATURE_HAS_WMI_MGMT_TX,
3258 ar->running_fw->fw_file.fw_features) &&
3259 !test_bit(ATH10K_FW_FEATURE_SKIP_NULL_FUNC_WAR,
3260 ar->running_fw->fw_file.fw_features)) 3258 ar->running_fw->fw_file.fw_features))
3261 return ATH10K_HW_TXRX_MGMT; 3259 return ATH10K_HW_TXRX_MGMT;
3262 3260