From 76d313e0f73581f8018c3e3c778d4f1318983b50 Mon Sep 17 00:00:00 2001 From: Chaitanya Pratapa Date: Thu, 24 Jun 2021 18:34:37 -0700 Subject: [PATCH] msm: ipa: fix IPA_COALESCE_DISABLE handling Make changes to populate qmap_id when disabling coalescing. Change-Id: Iaf0981bd22948b87bb8f9c548fe74e789eaf689c Signed-off-by: Chaitanya Pratapa --- drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c b/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c index 3eb145ba5162..3916ecc9b469 100644 --- a/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c +++ b/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c @@ -2232,16 +2232,14 @@ static int rmnet_ipa_send_coalesce_notification(uint8_t qmap_id, if (!coalesce_info) return -ENOMEM; - if (enable) { - coalesce_info->qmap_id = qmap_id; - coalesce_info->tcp_enable = tcp; - coalesce_info->udp_enable = udp; + coalesce_info->qmap_id = qmap_id; + coalesce_info->tcp_enable = tcp; + coalesce_info->udp_enable = udp; + msg_meta.msg_len = sizeof(struct ipa_coalesce_info); + if (enable) msg_meta.msg_type = IPA_COALESCE_ENABLE; - msg_meta.msg_len = sizeof(struct ipa_coalesce_info); - } else { + else msg_meta.msg_type = IPA_COALESCE_DISABLE; - msg_meta.msg_len = sizeof(struct ipa_coalesce_info); - } rc = ipa_send_msg(&msg_meta, coalesce_info, ipa3_wwan_msg_free_cb); if (rc) { IPAWANERR("ipa_send_msg failed: %d\n", rc);