|
@@ -16151,7 +16151,7 @@ static ssize_t wlan_hdd_state_ctrl_param_write(struct file *filp,
|
|
|
static const char wlan_on_str[] = "ON";
|
|
|
int ret;
|
|
|
unsigned long rc;
|
|
|
- struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
|
|
+ struct hdd_context *hdd_ctx;
|
|
|
|
|
|
if (copy_from_user(buf, user_buf, 3)) {
|
|
|
pr_err("Failed to read buffer\n");
|
|
@@ -16186,6 +16186,7 @@ static ssize_t wlan_hdd_state_ctrl_param_write(struct file *filp,
|
|
|
* Flush idle shutdown work for cases to synchronize the wifi on
|
|
|
* during the idle shutdown.
|
|
|
*/
|
|
|
+ hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
|
|
if (hdd_ctx)
|
|
|
hdd_psoc_idle_timer_stop(hdd_ctx);
|
|
|
|