diff --git a/feeds/qca-wifi-7/mac80211/patches-sonicfi_rap7110c_341x/ath12k/0001-sonicfi_rap7110c-341x-therlaml-setting.patch b/feeds/qca-wifi-7/mac80211/patches-sonicfi_rap7110c_341x/ath12k/0001-sonicfi_rap7110c-341x-therlaml-setting.patch new file mode 100755 index 000000000..f5052e999 --- /dev/null +++ b/feeds/qca-wifi-7/mac80211/patches-sonicfi_rap7110c_341x/ath12k/0001-sonicfi_rap7110c-341x-therlaml-setting.patch @@ -0,0 +1,63 @@ +Index: backports-6.5-rc3/drivers/net/wireless/ath/ath12k/thermal.h +=================================================================== +--- backports-6.5-rc3.orig/drivers/net/wireless/ath/ath12k/thermal.h ++++ backports-6.5-rc3/drivers/net/wireless/ath/ath12k/thermal.h +@@ -13,35 +13,35 @@ + + /* Below temperatures are in celsius */ + #define ATH12K_THERMAL_LVL0_TEMP_LOW_MARK -100 +-#define ATH12K_THERMAL_LVL0_TEMP_HIGH_MARK 100 +-#define ATH12K_THERMAL_LVL1_TEMP_LOW_MARK 95 +-#define ATH12K_THERMAL_LVL1_TEMP_HIGH_MARK 105 +-#define ATH12K_THERMAL_LVL2_TEMP_LOW_MARK 100 +-#define ATH12K_THERMAL_LVL2_TEMP_HIGH_MARK 110 +-#define ATH12K_THERMAL_LVL3_TEMP_LOW_MARK 105 +-#define ATH12K_THERMAL_LVL3_TEMP_HIGH_MARK 120 ++#define ATH12K_THERMAL_LVL0_TEMP_HIGH_MARK 110 ++#define ATH12K_THERMAL_LVL1_TEMP_LOW_MARK 105 ++#define ATH12K_THERMAL_LVL1_TEMP_HIGH_MARK 115 ++#define ATH12K_THERMAL_LVL2_TEMP_LOW_MARK 110 ++#define ATH12K_THERMAL_LVL2_TEMP_HIGH_MARK 120 ++#define ATH12K_THERMAL_LVL3_TEMP_LOW_MARK 115 ++#define ATH12K_THERMAL_LVL3_TEMP_HIGH_MARK 125 + + #define ATH12K_THERMAL_LVL0_V2_TEMP_LOW_MARK -100 +-#define ATH12K_THERMAL_LVL0_V2_TEMP_HIGH_MARK 95 +-#define ATH12K_THERMAL_LVL1_V2_TEMP_LOW_MARK 90 +-#define ATH12K_THERMAL_LVL1_V2_TEMP_HIGH_MARK 100 +-#define ATH12K_THERMAL_LVL2_V2_TEMP_LOW_MARK 95 +-#define ATH12K_THERMAL_LVL2_V2_TEMP_HIGH_MARK 105 +-#define ATH12K_THERMAL_LVL3_V2_TEMP_LOW_MARK 100 +-#define ATH12K_THERMAL_LVL3_V2_TEMP_HIGH_MARK 110 +-#define ATH12K_THERMAL_LVL4_V2_TEMP_LOW_MARK 105 ++#define ATH12K_THERMAL_LVL0_V2_TEMP_HIGH_MARK 105 ++#define ATH12K_THERMAL_LVL1_V2_TEMP_LOW_MARK 100 ++#define ATH12K_THERMAL_LVL1_V2_TEMP_HIGH_MARK 110 ++#define ATH12K_THERMAL_LVL2_V2_TEMP_LOW_MARK 105 ++#define ATH12K_THERMAL_LVL2_V2_TEMP_HIGH_MARK 115 ++#define ATH12K_THERMAL_LVL3_V2_TEMP_LOW_MARK 110 ++#define ATH12K_THERMAL_LVL3_V2_TEMP_HIGH_MARK 120 ++#define ATH12K_THERMAL_LVL4_V2_TEMP_LOW_MARK 110 + #define ATH12K_THERMAL_LVL4_V2_TEMP_HIGH_MARK 120 + + #define ATH12K_THERMAL_LVL0_DUTY_CYCLE 0 +-#define ATH12K_THERMAL_LVL1_DUTY_CYCLE 50 +-#define ATH12K_THERMAL_LVL2_DUTY_CYCLE 90 +-#define ATH12K_THERMAL_LVL3_DUTY_CYCLE 100 ++#define ATH12K_THERMAL_LVL1_DUTY_CYCLE 30 ++#define ATH12K_THERMAL_LVL2_DUTY_CYCLE 50 ++#define ATH12K_THERMAL_LVL3_DUTY_CYCLE 70 + +-#define ATH12K_THERMAL_LVL0_V2_DUTY_CYCLE ATH12K_THERMAL_LVL0_DUTY_CYCLE +-#define ATH12K_THERMAL_LVL1_V2_DUTY_CYCLE ATH12K_THERMAL_LVL0_DUTY_CYCLE +-#define ATH12K_THERMAL_LVL2_V2_DUTY_CYCLE ATH12K_THERMAL_LVL1_DUTY_CYCLE +-#define ATH12K_THERMAL_LVL3_V2_DUTY_CYCLE ATH12K_THERMAL_LVL2_DUTY_CYCLE +-#define ATH12K_THERMAL_LVL4_V2_DUTY_CYCLE ATH12K_THERMAL_LVL3_DUTY_CYCLE ++#define ATH12K_THERMAL_LVL0_V2_DUTY_CYCLE 0 ++#define ATH12K_THERMAL_LVL1_V2_DUTY_CYCLE 20 ++#define ATH12K_THERMAL_LVL2_V2_DUTY_CYCLE 40 ++#define ATH12K_THERMAL_LVL3_V2_DUTY_CYCLE 80 ++#define ATH12K_THERMAL_LVL4_V2_DUTY_CYCLE 100 + + #define THERMAL_CONFIG_POUT0 0 + #define THERMAL_CONFIG_POUT1 12 diff --git a/feeds/qca-wifi-7/mac80211/patches-sonicfi_rap750w_311a/ath12k/0001-sonicfi-rap750w-311a-thermal-setting.patch b/feeds/qca-wifi-7/mac80211/patches-sonicfi_rap750w_311a/ath12k/0001-sonicfi-rap750w-311a-thermal-setting.patch new file mode 100755 index 000000000..7af472c7a --- /dev/null +++ b/feeds/qca-wifi-7/mac80211/patches-sonicfi_rap750w_311a/ath12k/0001-sonicfi-rap750w-311a-thermal-setting.patch @@ -0,0 +1,57 @@ +--- a/drivers/net/wireless/ath/ath12k/thermal.h ++++ b/drivers/net/wireless/ath/ath12k/thermal.h +@@ -13,34 +13,34 @@ + + /* Below temperatures are in celsius */ + #define ATH12K_THERMAL_LVL0_TEMP_LOW_MARK -100 +-#define ATH12K_THERMAL_LVL0_TEMP_HIGH_MARK 100 +-#define ATH12K_THERMAL_LVL1_TEMP_LOW_MARK 95 +-#define ATH12K_THERMAL_LVL1_TEMP_HIGH_MARK 105 +-#define ATH12K_THERMAL_LVL2_TEMP_LOW_MARK 100 +-#define ATH12K_THERMAL_LVL2_TEMP_HIGH_MARK 110 +-#define ATH12K_THERMAL_LVL3_TEMP_LOW_MARK 105 ++#define ATH12K_THERMAL_LVL0_TEMP_HIGH_MARK 105 ++#define ATH12K_THERMAL_LVL1_TEMP_LOW_MARK 100 ++#define ATH12K_THERMAL_LVL1_TEMP_HIGH_MARK 110 ++#define ATH12K_THERMAL_LVL2_TEMP_LOW_MARK 105 ++#define ATH12K_THERMAL_LVL2_TEMP_HIGH_MARK 115 ++#define ATH12K_THERMAL_LVL3_TEMP_LOW_MARK 110 + #define ATH12K_THERMAL_LVL3_TEMP_HIGH_MARK 120 + + #define ATH12K_THERMAL_LVL0_V2_TEMP_LOW_MARK -100 +-#define ATH12K_THERMAL_LVL0_V2_TEMP_HIGH_MARK 95 +-#define ATH12K_THERMAL_LVL1_V2_TEMP_LOW_MARK 90 +-#define ATH12K_THERMAL_LVL1_V2_TEMP_HIGH_MARK 100 +-#define ATH12K_THERMAL_LVL2_V2_TEMP_LOW_MARK 95 +-#define ATH12K_THERMAL_LVL2_V2_TEMP_HIGH_MARK 105 +-#define ATH12K_THERMAL_LVL3_V2_TEMP_LOW_MARK 100 +-#define ATH12K_THERMAL_LVL3_V2_TEMP_HIGH_MARK 110 +-#define ATH12K_THERMAL_LVL4_V2_TEMP_LOW_MARK 105 ++#define ATH12K_THERMAL_LVL0_V2_TEMP_HIGH_MARK 105 ++#define ATH12K_THERMAL_LVL1_V2_TEMP_LOW_MARK 100 ++#define ATH12K_THERMAL_LVL1_V2_TEMP_HIGH_MARK 110 ++#define ATH12K_THERMAL_LVL2_V2_TEMP_LOW_MARK 105 ++#define ATH12K_THERMAL_LVL2_V2_TEMP_HIGH_MARK 115 ++#define ATH12K_THERMAL_LVL3_V2_TEMP_LOW_MARK 110 ++#define ATH12K_THERMAL_LVL3_V2_TEMP_HIGH_MARK 120 ++#define ATH12K_THERMAL_LVL4_V2_TEMP_LOW_MARK 110 + #define ATH12K_THERMAL_LVL4_V2_TEMP_HIGH_MARK 120 + + #define ATH12K_THERMAL_LVL0_DUTY_CYCLE 0 +-#define ATH12K_THERMAL_LVL1_DUTY_CYCLE 50 +-#define ATH12K_THERMAL_LVL2_DUTY_CYCLE 90 +-#define ATH12K_THERMAL_LVL3_DUTY_CYCLE 100 ++#define ATH12K_THERMAL_LVL1_DUTY_CYCLE 30 ++#define ATH12K_THERMAL_LVL2_DUTY_CYCLE 50 ++#define ATH12K_THERMAL_LVL3_DUTY_CYCLE 70 + + #define ATH12K_THERMAL_LVL0_V2_DUTY_CYCLE ATH12K_THERMAL_LVL0_DUTY_CYCLE +-#define ATH12K_THERMAL_LVL1_V2_DUTY_CYCLE ATH12K_THERMAL_LVL0_DUTY_CYCLE +-#define ATH12K_THERMAL_LVL2_V2_DUTY_CYCLE ATH12K_THERMAL_LVL1_DUTY_CYCLE +-#define ATH12K_THERMAL_LVL3_V2_DUTY_CYCLE ATH12K_THERMAL_LVL2_DUTY_CYCLE ++#define ATH12K_THERMAL_LVL1_V2_DUTY_CYCLE ATH12K_THERMAL_LVL1_DUTY_CYCLE ++#define ATH12K_THERMAL_LVL2_V2_DUTY_CYCLE ATH12K_THERMAL_LVL2_DUTY_CYCLE ++#define ATH12K_THERMAL_LVL3_V2_DUTY_CYCLE ATH12K_THERMAL_LVL3_DUTY_CYCLE + #define ATH12K_THERMAL_LVL4_V2_DUTY_CYCLE ATH12K_THERMAL_LVL3_DUTY_CYCLE + + #define THERMAL_CONFIG_POUT0 0