Explorar el Código

qmi_rmnet: Fix PS off 1st session state notif

Previously the 1st traffic session would not notify shs of PS off
state leading to shs wq not starting up.
On subsequent sessions notification would be sent so state would be
corrected and this issue would go unnoticed.

This change should notify shs of power save state correctly for the
first data session.

CRs-Fixed: 3291630
Change-Id: I7cf9458f999adb1aa3c645ade29bb8c970aa495e
Signed-off-by: Raul Martinez <[email protected]>
Raul Martinez hace 2 años
padre
commit
55822d308b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      core/qmi_rmnet.c

+ 2 - 1
core/qmi_rmnet.c

@@ -1,6 +1,6 @@
 /*
 /*
  * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
  * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
- * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * This program is free software; you can redistribute it and/or modify
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 and
  * it under the terms of the GNU General Public License version 2 and
@@ -626,6 +626,7 @@ qmi_rmnet_setup_client(void *port, struct qmi_info *qmi, struct tcmsg *tcm)
 	}
 	}
 
 
 	qmi->flag = tcm->tcm_ifindex;
 	qmi->flag = tcm->tcm_ifindex;
+	qmi->ps_enabled = true;
 	qmi->ps_ext = FLAG_TO_PS_EXT(qmi->flag);
 	qmi->ps_ext = FLAG_TO_PS_EXT(qmi->flag);
 	svc.instance = tcm->tcm_handle;
 	svc.instance = tcm->tcm_handle;
 	svc.ep_type = tcm->tcm_info;
 	svc.ep_type = tcm->tcm_info;