wcn36xx: Set BTLE coexistence related configuration values to defaults
Subsystems (3)
PATCH 1/1 wcn36xx: Set BTLE coexistence related configuration values to defaults
From: Eyal Ilsar <[email protected]>
If the value for the firmware configuration parameters BTC_STATIC_LEN_LE_BT
and BTC_STATIC_LEN_LE_WLAN are not set the duty cycle between BT and WLAN
is such that if BT (including BLE) is active WLAN gets 0 bandwidth.
When tuning these parameters having a too high value for WLAN means that BLE performance degrades. The "sweet" point of roughly half of the maximal values was empirically found to achieve a balance between BLE and Wi-Fi coexistence performance.
--- drivers/net/wireless/ath/wcn36xx/smd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/wcn36xx/smd.c +3 -1
@@ -72,8 +72,10 @@ struct wcn36xx_cfg_val {WCN36XX_CFG_VAL (DYNAMIC_PS_POLL_VALUE ,0 ),WCN36XX_CFG_VAL (TX_PWR_CTRL_ENABLE ,1 ),WCN36XX_CFG_VAL (ENABLE_CLOSE_LOOP ,1 ), -WCN36XX_CFG_VAL (ENABLE_LPWR_IMG_TRANSITION ,0 ), +WCN36XX_CFG_VAL (BTC_STATIC_LEN_LE_BT ,120000 ), +WCN36XX_CFG_VAL (BTC_STATIC_LEN_LE_WLAN ,30000 ),WCN36XX_CFG_VAL (MAX_ASSOC_LIMIT ,10 ), +WCN36XX_CFG_VAL (ENABLE_LPWR_IMG_TRANSITION ,0 ), WCN36XX_CFG_VAL(ENABLE_MCC_ADAPTIVE_SCHEDULER, 0), };
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 9 lines · Ramon Fried
From: Eyal Ilsar <[email protected]>
If the value for the firmware configuration parameters
BTC_STATIC_LEN_LE_BT
andBTC_STATIC_LEN_LE_WLANare not set the duty cycle between BT and WLAN
is such that if BT (including BLE) is active WLAN gets 0 bandwidth.
When tuning these parameters having a too high value for WLAN means that BLE performance degrades. The "sweet" point of roughly half of the maximal values was empirically found to achieve a balance between BLE and Wi-Fi coexistence performance.
Thanks for the patch! Just some minor comments.
Please limit subject to 50 chars and wrap body at 72 chars.
Quoted 11 lines
Signed-off-by Eyal Ilsar <[email protected]>Signed-off-by Ramon Fried <[email protected]>--- drivers/net/wireless/ath/wcn36xx/smd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/net/wireless/ath/wcn36xx/smd.c +0
-0
drivers/net/wireless/ath/wcn36xx/smd.c struct wcn36xx_cfg_val { · line 75
Quoted 4 lines
drivers/net/wireless/ath/wcn36xx/smd.c +0
-1@@ -72,8 +72,10 @@ struct wcn36xx_cfg_val {WCN36XX_CFG_VAL (DYNAMIC_PS_POLL_VALUE ,0 ),WCN36XX_CFG_VAL (TX_PWR_CTRL_ENABLE ,1 ), WCN36XX_CFG_VAL(ENABLE_CLOSE_LOOP, 1), - WCN36XX_CFG_VAL(ENABLE_LPWR_IMG_TRANSITION, 0),
I don't see a need for moving this line.
drivers/net/wireless/ath/wcn36xx/smd.c struct wcn36xx_cfg_val { · line 76
Quoted 2 lines
drivers/net/wireless/ath/wcn36xx/smd.c +2
-0+WCN36XX_CFG_VAL (BTC_STATIC_LEN_LE_BT ,120000 ), + WCN36XX_CFG_VAL(BTC_STATIC_LEN_LE_WLAN, 30000),
These looks reasonable, are we okay leaving the other coexistence properties at their preconfigured values?
drivers/net/wireless/ath/wcn36xx/smd.c struct wcn36xx_cfg_val { · line 79
Quoted 3 lines
drivers/net/wireless/ath/wcn36xx/smd.c +1
-0WCN36XX_CFG_VAL (MAX_ASSOC_LIMIT ,10 ), +WCN36XX_CFG_VAL (ENABLE_LPWR_IMG_TRANSITION ,0 ), WCN36XX_CFG_VAL(ENABLE_MCC_ADAPTIVE_SCHEDULER, 0),
Regards,
Bjorn
Quoted 10 lines · Ramon Fried
From: Eyal Ilsar <[email protected]>
If the value for the firmware configuration parameters
BTC_STATIC_LEN_LE_BTandBTC_STATIC_LEN_LE_WLANare not set the duty cycle between BT and WLAN is such that if BT (including BLE) is active WLAN gets 0 bandwidth. When tuning these parameters having a too high value for WLAN means that BLE performance degrades. The "sweet" point of roughly half of the maximal values was empirically found to achieve a balance between BLE and Wi-Fi coexistence performance.
Quoted 2 lines
Signed-off-by Eyal Ilsar <[email protected]>Signed-off-by Ramon Fried <[email protected]>
Then submit a new version of the patch then please include the version number:
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#patch_version_missing
So after fixing Bjorn's comments the next version should be v3.
Signature · 1 line
Kalle Valo