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

Commit 8798dde4 authored by Mohammed Javid's avatar Mohammed Javid Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: rmnet: Update wan IOCTL function in SSR scenario



During SSR scenario in IP-PASS through config,
IPA driver miss to update lan client info.

Which is breaking IPACM functionality,
leads to data stall in lan stats enabled
with IP-PASS through.

Allow wan IOCTL function only for setting and
clearing the lan client info during SSR.

Change-Id: I391641ac8712aa44c4b26e2ccc8e26d940ffe7bd
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent e93c99aa
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -79,9 +79,18 @@ static long ipa3_wan_ioctl(struct file *filp,
		DRIVER_NAME);

	if (!ipa3_process_ioctl) {
		IPAWANDBG("modem is in SSR, ignoring ioctl\n");

		if ((cmd == WAN_IOC_SET_LAN_CLIENT_INFO) ||
			(cmd == WAN_IOC_CLEAR_LAN_CLIENT_INFO)) {
			IPAWANDBG("Modem is in SSR\n");
			IPAWANDBG("Still allow IOCTL for exceptions (%d)\n",
				cmd);
		} else {
			IPAWANERR("Modem is in SSR, ignoring ioctl (%d)\n",
				cmd);
			return -EAGAIN;
		}
	}

	switch (cmd) {
	case WAN_IOC_ADD_FLT_RULE: