Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b31591db authored by Mohit Aggarwal's avatar Mohit Aggarwal
Browse files

diag: Set mask_size properly before sending mask updates



Currently, mask_size gets accumulated when all the masks
are enabled. This patch updates the mask_size properly
before sending the mask updates.

Change-Id: I6564b387aa591b0b0170b92e808817f5f562897d
Signed-off-by: default avatarMohit Aggarwal <maggarwa@codeaurora.org>
parent fc31d920
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -300,6 +300,8 @@ static void diag_send_msg_mask_update(struct diag_smd_info *smd_info,
				pr_debug("diag: In %s, successfully reallocated msg_mask update buffer to len: %d\n",
					 __func__, msg_mask.update_buf_len);
			}
		} else if (msg_mask.status == DIAG_CTRL_MASK_ALL_ENABLED) {
			mask_size = 1;
		}
proceed:
		header.cmd_type = DIAG_CTRL_MSG_F3_MASK;