ath10k: add recalc RTS/CTS protection method
PATCH 1/1 ath10k: add recalc RTS/CTS protection method
From: Marek Kwaczynski <[email protected]>
Add recalculation of RTS/CTS protection when one or more legacy stations are connected to ath10k. In this case enable RTS/CTS protection and set sw retry profile are needed in the FW. Without this change legacy station is starved and has very low throughput.
--- drivers/net/wireless/ath/ath10k/core.h | 3 ++ drivers/net/wireless/ath/ath10k/mac.c | 57 +++++++++++++++++++++++++------- drivers/net/wireless/ath/ath10k/wmi.h | 13 ++++++++ 3 files changed, 61 insertions(+), 12 deletions(-)
drivers/net/wireless/ath/ath10k/core.h +3 -0
@@ -289,6 +289,9 @@ struct ath10k_vif {u8 fixed_rate;u8 fixed_nss;u8 force_sgi; + +bool use_cts_prot; +int num_legacy_stations; };struct ath10k_vif_iter {
drivers/net/wireless/ath/ath10k/mac.c +45 -12
84 lines not on this page · raw message
drivers/net/wireless/ath/ath10k/wmi.h +13 -0
@@ -2210,6 +2210,19 @@ enum ath10k_protmode { ATH10K_PROT_RTSCTS = 2, /* RTS-CTS */ }; +enum wmi_rtscts_profile { +WMI_RTSCTS_FOR_NO_RATESERIES =0 , +WMI_RTSCTS_FOR_SECOND_RATESERIES , +WMI_RTSCTS_ACROSS_SW_RETRIES +}; + +#define WMI_RTSCTS_ENABLED 1 +#define WMI_RTSCTS_SET_MASK 0x0f +#define WMI_RTSCTS_SET_LSB 0 + +#define WMI_RTSCTS_PROFILE_MASK 0xf0 +#define WMI_RTSCTS_PROFILE_LSB 4 +enum wmi_beacon_gen_mode {WMI_BEACON_STAGGERED_MODE =0 ,WMI_BEACON_BURST_MODE =1
Signature · 1 line
1.7.10
drivers/net/wireless/ath/ath10k/mac.c static void ath10k_bss_info_changed(struct ieee80211_hw *hw, · line 2888
Quoted 12 lines · On 02/27/2014 11:18 PM, [email protected] wrote:
From: Marek Kwaczynski <[email protected]>
Add recalculation of RTS/CTS protection when one or more legacy stations are connected to ath10k. In this case enable RTS/CTS protection and set sw retry profile are needed in the FW. Without this change legacy station is starved and has very low throughput.
drivers/net/wireless/ath/ath10k/mac.c +2
-2-ath10k_warn ("Failed to set CTS prot for VDEV: %d\n" , - arvif->vdev_id); +ath10k_warn ("failed to recalc RTS/CTS prot %d\n" , + ret);
Did you remove the vdev ID from the logging message on purpose?
I find having vdev ID in logging messages helps, especially when trying to compare firmware logs with the driver logs...
Thanks,
Ben
Signature · 8 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 14 lines · Ben Greear
drivers/net/wireless/ath/ath10k/mac.c static void ath10k_bss_info_changed(struct ieee80211_hw *hw, · line 2888
Quoted 12 lines · On 02/27/2014 11:18 PM, [email protected] wrote:
From: Marek Kwaczynski <[email protected]>
Add recalculation of RTS/CTS protection when one or more legacy stations are connected to ath10k. In this case enable RTS/CTS protection and set sw retry profile are needed in the FW. Without this change legacy station is starved and has very low throughput.
drivers/net/wireless/ath/ath10k/mac.c +2
-2-ath10k_warn ("Failed to set CTS prot for VDEV: %d\n" , - arvif->vdev_id); +ath10k_warn ("failed to recalc RTS/CTS prot %d\n" , + ret);
Quoted 4 lines
Did you remove the vdev ID from the logging message on purpose?
I find having vdev ID in logging messages helps, especially when trying to compare firmware logs with the driver logs...
Not on purpose. Thanks for pointing it out.
Kalle, please ignore this patch, there'll be v2.
Signature · 1 line
Bartosz