ath10k: Fix broken NULL func data frame status for 10.4
PATCH v5 1/1 ath10k: Fix broken NULL func data frame status for 10.4
From: Mohammed Shafi Shajakhan <[email protected]>
Older firmware with HTT delivers incorrect tx status for null func frames to driver, but this fixed in 10.2 and 10.4 firmware versions. Also this workaround results in reporting of incorrect null func status for 10.4. Fix this is by introducing a firmware feature flag for 10.4 so that this workaround is skipped and proper tx status for null func frames are reported
---
[v5 based on the review comments from Michal]
drivers/net/wireless/ath/ath10k/core.c | 1 + drivers/net/wireless/ath/ath10k/core.h | 7 +++++++ drivers/net/wireless/ath/ath10k/mac.c | 2 ++ 3 files changed, 10 insertions(+)
drivers/net/wireless/ath/ath10k/core.c +1 -0
@@ -304,6 +304,7 @@ static const char *const ath10k_core_fw_feature_str[] = { [ATH10K_FW_FEATURE_MFP_SUPPORT] = "mfp", [ATH10K_FW_FEATURE_PEER_FLOW_CONTROL] = "peer-flow-ctrl", [ATH10K_FW_FEATURE_BTCOEX_PARAM] = "btcoex-param", + [ATH10K_FW_FEATURE_SKIP_NULL_FUNC_WAR] = "skip-null-func-war", }; static unsigned int ath10k_core_get_fw_feature_str(char *buf,
drivers/net/wireless/ath/ath10k/core.h +7 -0
@@ -551,6 +551,13 @@ enum ath10k_fw_features {*/ ATH10K_FW_FEATURE_BTCOEX_PARAM =14 , +/* Older firmware with HTT delivers incorrect tx status for null func +* frames to driver, but this fixed in 10.2 and 10.4 firmware versions. +* Also this workaround results in reporting of incorrect null func +* status for 10.4. This flag is used to skip the workaround. +*/ +ATH10K_FW_FEATURE_SKIP_NULL_FUNC_WAR =15 , +/* keep last */ ATH10K_FW_FEATURE_COUNT, };
drivers/net/wireless/ath/ath10k/mac.c +2 -0
@@ -3255,6 +3255,8 @@ ath10k_mac_tx_h_get_txmode(struct ath10k *ar,if (ar->htt.target_version_major <3 && (ieee80211_is_nullfunc (fc) ||ieee80211_is_qos_nullfunc (fc)) && !test_bit (ATH10K_FW_FEATURE_HAS_WMI_MGMT_TX , + ar->running_fw->fw_file.fw_features) && + !test_bit (ATH10K_FW_FEATURE_SKIP_NULL_FUNC_WAR , ar->running_fw->fw_file.fw_features))return ATH10K_HW_TXRX_MGMT ;
Signature · 1 line
1.7.9.5
Quoted 11 lines · Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan <[email protected]>
Older firmware with HTT delivers incorrect tx status for null func frames to driver, but this fixed in 10.2 and 10.4 firmware versions. Also this workaround results in reporting of incorrect null func status for 10.4. Fix this is by introducing a firmware feature flag for 10.4 so that this workaround is skipped and proper tx status for null func frames are reported
Signed-off-by Tamizh chelvam <[email protected]>Signed-off-by Mohammed Shafi Shajakhan <[email protected]>
Thanks, 1 patch applied to ath-next branch of ath.git:
2cdce425aa33 ath10k: Fix broken NULL func data frame status for 10.4
Signature · 2 lines
Sent by pwcli https://patchwork.kernel.org/patch/9300961/
Hi Kalle,
please revert this patch, Raj suggested this patch introduced a regression in sending NULL func frames :(
We will fix the wrong tx status report for NULL func frames appropriately (if needed in ath10k firmware)
Sorry for the regression, kindly revert it until a proper fix is figured out.
regards,
shafi
________________________________________
From: Valo, Kalle
Sent: 02 September 2016 21:30
To: Shajakhan, Mohammed Shafi (Mohammed Shafi)
Cc: [email protected]; [email protected]; Raja, Tamizh Chelvam; [email protected]; Shajakhan, Mohammed Shafi (Mohammed Shafi)
Subject: Re: [v5] ath10k: Fix broken NULL func data frame status for 10.4
Quoted 11 lines · Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan <[email protected]>
Older firmware with HTT delivers incorrect tx status for null func frames to driver, but this fixed in 10.2 and 10.4 firmware versions. Also this workaround results in reporting of incorrect null func status for 10.4. Fix this is by introducing a firmware feature flag for 10.4 so that this workaround is skipped and proper tx status for null func frames are reported
Signed-off-by Tamizh chelvam <[email protected]>Signed-off-by Mohammed Shafi Shajakhan <[email protected]>
Thanks, 1 patch applied to ath-next branch of ath.git:
2cdce425aa33 ath10k: Fix broken NULL func data frame status for 10.4
--
Sent by pwcli
https://patchwork.kernel.org/patch/9300961/
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
"Shajakhan, Mohammed Shafi (Mohammed Shafi)" <[email protected]>
Quoted 6 lines · writes:
please revert this patch, Raj suggested this patch introduced a regression in sending NULL func frames :(
We will fix the wrong tx status report for NULL func frames appropriately (if needed in ath10k firmware) Sorry for the regression, kindly revert it until a proper fix is figured out.
Like we discussed privately, it is better that you send the revert (or a fix if you find one) yourself. Then we have a proper commit log etc.
Signature · 5 lines
Kalle Valo _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 5 lines · Kalle
"Shajakhan, Mohammed Shafi (Mohammed Shafi)" <[email protected]>
Quoted 3 lines · writes:
please revert this patch, Raj suggested this patch introduced a regression in sending NULL func frames :(
Quoted 7 lines
Quoted 3 lines
We will fix the wrong tx status report for NULL func frames appropriately (if needed in ath10k firmware) Sorry for the regression, kindly revert it until a proper fix is figured out.
Like we discussed privately, it is better that you send the revert (or a fix if you find one) yourself. Then we have a proper commit log etc.
[shafi] thanks Kalle, agreed the revert is under hold (to fix this properly and not make use of this workaround)
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k