Removed "route add" in rndis usb mode 04/225704/1
authorINSUN PYO <insun.pyo@samsung.com>
Mon, 24 Feb 2020 05:06:30 +0000 (14:06 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Mon, 24 Feb 2020 05:06:30 +0000 (14:06 +0900)
commit5e0411aa7b79261fc314a53dc03fa6a4a297c7ab
tree58bbce099f0df88635025fe519551124d4b43e85
parent0235fd379f29a3eeb491561d31a9f29b63e5fc67
Removed "route add" in rndis usb mode

Ifconfig command will also automatically add route information to the routing table in the kernel.
So if you run "route add" additionally, you have duplicate routing table entries.

sh-3.2# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0
cns1.sec.samsun 192.168.0.1     255.255.255.255 UGH   0      0        0 wlan0
cns2.sec.samsun 192.168.0.1     255.255.255.255 UGH   0      0        0 wlan0
192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0
192.168.0.1     *               255.255.255.255 UH    0      0        0 wlan0
192.168.129.0   *               255.255.255.0   U     0      0        0 usb0   <== here
192.168.129.0   *               255.255.255.0   U     0      0        0 usb0   <== here

Change-Id: I96c290ce5de1da81ff7b9f99cfaefc8a64b618ac
scripts/rndis.sh