Эх сурвалжийг харах

qcacld-3.0: Report thermal target shutdown level

Target added a new thermal level - THERMAL_SHUTDOWN_TARGET
to indicate that target will shutdown entirely.
Report QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY to upper layer
for equal or above of THERMAL_SHUTDOWN_TARGET.

Change-Id: Ic617411cda326b954511d2d41a595685b379447b
CRs-Fixed: 2835959
Liangwei Dong 4 жил өмнө
parent
commit
205f43d7a0

+ 2 - 0
core/hdd/src/wlan_hdd_thermal.c

@@ -158,6 +158,8 @@ convert_level_to_vendor_thermal_level(enum thermal_throttle_level level)
 		return QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE;
 	else if (level == THERMAL_MITIGATION)
 		return QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE;
+	else if (level == THERMAL_SHUTOFF)
+		return QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL;
 	else
 		return QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY;
 }