From 55822d308b74e4dca29b9bdb0c5d3c33d05a9e29 Mon Sep 17 00:00:00 2001 From: Raul Martinez Date: Tue, 13 Sep 2022 16:02:19 -0700 Subject: [PATCH] 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 --- core/qmi_rmnet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/qmi_rmnet.c b/core/qmi_rmnet.c index 79db038c39..287faf34b4 100644 --- a/core/qmi_rmnet.c +++ b/core/qmi_rmnet.c @@ -1,6 +1,6 @@ /* * 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 * 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->ps_enabled = true; qmi->ps_ext = FLAG_TO_PS_EXT(qmi->flag); svc.instance = tcm->tcm_handle; svc.ep_type = tcm->tcm_info;