mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Add module enable check in pm_qos_notify
pm_qos_notify() should do nothing if WiFi module is not enabled. Change-Id: I8eaf78f2ec547f33921c8337b9b3ae178c1709e1 CRs-Fixed: 2618148
This commit is contained in:
parent
426d193a9e
commit
a507e41a87
1 changed files with 7 additions and 1 deletions
|
|
@ -951,8 +951,14 @@ int wlan_hdd_pm_qos_notify(struct notifier_block *nb, unsigned long curr_val,
|
|||
{
|
||||
struct hdd_context *hdd_ctx = container_of(nb, struct hdd_context,
|
||||
pm_qos_notifier);
|
||||
void *hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
|
||||
void *hif_ctx;
|
||||
|
||||
if (hdd_ctx->driver_status != DRIVER_MODULES_ENABLED) {
|
||||
hdd_debug_rl("Driver Module closed; skipping pm qos notify");
|
||||
return 0;
|
||||
}
|
||||
|
||||
hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
|
||||
if (!hif_ctx) {
|
||||
hdd_err("Hif context is Null");
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue