Fix wake_lock delay after start/stop command

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/wilink_6_1/platforms/os/linux/src/WlanDrvIf.c b/wilink_6_1/platforms/os/linux/src/WlanDrvIf.c
index 39f1b49..fd76b74 100644
--- a/wilink_6_1/platforms/os/linux/src/WlanDrvIf.c
+++ b/wilink_6_1/platforms/os/linux/src/WlanDrvIf.c
@@ -611,8 +611,8 @@
      *  Insert Start command in DrvMain action queue, request driver scheduling 
      *      and wait for action completion (all init process).
      */
-    drvMain_InsertAction (drv->tCommon.hDrvMain, ACTION_TYPE_START);
     os_wake_lock_timeout_enable(drv);
+    drvMain_InsertAction (drv->tCommon.hDrvMain, ACTION_TYPE_START);
     return 0;
 }
 
@@ -671,8 +671,8 @@
      *  Insert Stop command in DrvMain action queue, request driver scheduling 
      *      and wait for Stop process completion.
      */
-    drvMain_InsertAction (drv->tCommon.hDrvMain, ACTION_TYPE_STOP);
     os_wake_lock_timeout_enable(drv);
+    drvMain_InsertAction (drv->tCommon.hDrvMain, ACTION_TYPE_STOP);
     return 0;
 }