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

Commit db9f7f48 authored by Michael Adisumarta's avatar Michael Adisumarta Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Add a check to see if mtu is set or SET_MTU IOCTL



Add an check for mtu set before sending an event to IPACM
so MTU will always be nonzero.

Change-Id: Ib8954865ba46743e143d72cf15d8bbce282aa013
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 839d05d1
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -2144,6 +2144,7 @@ static int ipa3_wwan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
			if (mtu_v4_set && mtu_v6_set)
				iptype = IPA_IP_MAX;

			if (mtu_v4_set || mtu_v6_set)
				rc = rmnet_ipa_send_set_mtu_notification(
						ext_ioctl_data.u.mtu_params.if_name,
						mux_channel[rmnet_index].mtu_v4,