mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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: Michael Adisumarta <madisuma@codeaurora.org>
This commit is contained in:
parent
839d05d11b
commit
db9f7f48ee
1 changed files with 6 additions and 5 deletions
|
|
@ -2144,11 +2144,12 @@ 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;
|
||||
|
||||
rc = rmnet_ipa_send_set_mtu_notification(
|
||||
ext_ioctl_data.u.mtu_params.if_name,
|
||||
mux_channel[rmnet_index].mtu_v4,
|
||||
mux_channel[rmnet_index].mtu_v6,
|
||||
iptype);
|
||||
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,
|
||||
mux_channel[rmnet_index].mtu_v6,
|
||||
iptype);
|
||||
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue