I am setting up a wifi router in my car. I will have a small network of devices. I want to be able to add my Epic 4g to this network and use it as an internet gateway.
I have wifi tether installed and it works wonderfully, however I don't want my car network to depend on the phone as the wifi hotspot. I need the network to function if the phone is not present.
I would essential like to do this: Tethering via WiFi - Troubleshooting.
However, wlan_loader doesn't seem to exist on my phone. I'm running midnight rom 5.1. When I run wifi tether, netcfg shows me that both ppp0 and eth0 are enabled (along with another iface called wl0.1). However, like I said, I don't want my phone to be the hotspot, I want it to be a client to my other hotspot and 3g (or 4g) simultaneously. If wifi tether can enable both interfaces at the same time, how do I do it. Or, can I just use wifi tether to enable both interfaces, and then use some commands to connect eth0 to the hotspot?
On a side note, the wifi router I'm using is a cradlepoint PHS300. I was hoping I might be able to hook it to my phone by USB and get the direct connection working with either the wired tether or wifi tether, but neither work. It seems you must have the legit Sprint wifi hotspot working for it to work that way. The cradlepoint sees the phone as a ppp device when I run wired tether, but it says it's not configured correctly. If anybody knows how to make that work without using the paid sprint hotspot service, that would be a great alternative.
No thanks to Custodian and nullghost, I got it working. k0nane, thanks for being respectful and for moving my post to the correct location.
Back on topic, I don't really care if I can't use 4G and wifi simultaneously, I don't have 4G service in my area any way. My goal is to use my phone as a gateway, and 3G will serve the purpose. I'll take your word that you can't use 4g and wifi simultaneously. Maybe I'll try sometime when I'm in a 4g town just for fun.
I connected to the AP using the built in wifi gui first and got the settings added to my /data/wifi/bcm_supp.conf file. My phone has several firmware configs on it. The only one of the 3 that works correctly with wpa is bcm4329_sta.bin.
Here's my scripts that I "developed" :
#!/system/bin/sh # need this so getprop and networking stuff to work export ANDROID_PROPERTY_WORKSPACE=9,32768 # unload and load the wifi driver module /system/xbin/killall wpa_supplicant /sbin/rmmod dhd /sbin/insmod /lib/modules/dhd.ko "firmware_path=/system/etc/wifi/bcm4329_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt dhd_watchdog_ms=200 dhd_poll=1" /system/bin/wpa_supplicant -B -Dwext -ieth0 -c/data/wifi/bcm_supp.conf # set ip address /sbin/ifconfig eth0 192.168.10.2 netmask 255.255.255.0 # set up iptables so we can use device as a gateway /system/bin/iptables -F FORWARD /system/bin/iptables -t nat -F POSTROUTING /system/bin/iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT /system/bin/iptables -I FORWARD -s 192.168.10.0/24 -j ACCEPT /system/bin/iptables -P FORWARD DROP /system/bin/iptables -t nat -I POSTROUTING -s 192.168.10.0/24 -j MASQUERADE /system/xbin/echo 1 > /proc/sys/net/ipv4/ip_forward
#!/system/bin/sh # need this so getprop and networking stuff to work export ANDROID_PROPERTY_WORKSPACE=9,32768 # unload and load the wifi driver module /system/xbin/killall wpa_supplicant /sbin/rmmod dhd