• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Tether via WIFI on unlimited data plans

ladamich

Newbie
I have seen a couple of threads about not being able to tether if you are grandfathered into an unlimited data plan. I was tethering pre-ICS using wifi tether for root.

Yeah,

I know. Not working now.

I'm a developer though so I pulled down the source and took a look at what is actually happening. It's really just an edify script with some utilities that bring up a wifi access point using the standard android/linux tools. Our phone needs to use the hostapd utility to create the access point. The problem is that all the pre-defined phones that use hostapd also want to load/unload there own drivers for the wifi chips.

I haven't had time to install the android dev environment yet so I didn't patch up any code. I did however throw together a couple of quick scripts to start and stop tethering using hostapd to see if it would work.

The results - Yes. I can stop and start a wifi access point on my phone. Of course being scripts there is no fancy GUI or anything but it is working. I'm using Rom Toolbox Pro to run the scripts but you can do it from a Terminal Emulator.

So if anybody knows enough about getting to the command line you can give this a try.

You will need the following pre-requisite executables:

iwconfig
ifconfig
hostapd
iptables
dnsmasq
ip

I believe these are included in ICS except for possibly iwconfig and hostapd. If you install wifi tether for root they are included in it though. Wherever you get them from make sure they are in /system/bin so that they are in your path.

You need to have root access to be able to do this. I setup my scripts for everything to work from /data/misc/wifi so you will need to put everything there.

Here are the two scripts plus the hostapd.conf file. Hopefully someone can give these a try. I will try to check back and help anybody I can but my time is limited at the moment.

NOTE - Turn off wifi before running the scripts. You will need to change the ssid name to what you want and also the password to something you want in hostapd.conf.

Good luck!

Scipt to start tethering.

CUT HERE ----------------------------------------------

# tetherstart.sh
#
# Configure essid, channel, and transmit power
#
iwconfig wlan0 essid testapp
iwconfig wlan0 channel 11
# iwconfig wlan0 txpower
# iwconfig wlan0 commit
#
# Set IP for interface and bring it up
#
ifconfig wlan0 192.168.0.1 netmask 255.255.255.0
ifconfig wlan0 up
#
# Start hostapd to bring up the hotspot
#
hostapd -P /data/misc/wifi/hostapd.pid -e /data/misc/wifi/entropy.bin -B /data/misc/wifi/hostapd.conf
#
# Enable the routing fix
#
ip rule add to 192.168.0.0/24 lookup main priority 50
ip route flush cache
#
# Clean up iptables rules
#
iptables -N wireless-tether
iptables -F wireless-tether
iptables -F FORWARD
iptables -t nat -F PREROUTING
iptables -t nat -F POSTROUTING
iptables -t nat -F
#
# Bring up NAT rules
#
iptables -A wireless-tether -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A wireless-tether -s 192.168.0.0/24 -j ACCEPT
iptables -A wireless-tether -p 47 -j ACCEPT
iptables -A wireless-tether -j DROP
iptables -A FORWARD -m state --state INVALID -j DROP
iptables -A FORWARD -j wireless-tether
iptables -t nat -I POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
#
# Turn on MSS Clamping
#
iptables -I FORWARD -s 192.168.0.0/24 -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
#
# Enable IP forwarding
#
echo 1 > /proc/sys/net/ipv4/ip_forward
#
# Use dnsmasq for dhcp server
#
dnsmasq -i wlan0 --dhcp-authoritative --no-negcache --user=root --no-resolv --no-hosts --server=8.8.4.4 --server=8.8.8.8 --dhcp-range=192.168.0.100,192.168.0.110 --dhcp-leasefile=/data/misc/wifi/dnsmasq.leases --pid-file=/data/misc/wifi/dnsmasq.pid


hostapd.conf file contents for above script:

CUT HERE ----------------------------------------------

interface=wlan0
driver=nl80211
ctrl_interface=/data/misc/wifi/hostapd
hw_mode=g
beacon_int=100
dtim_period=2
#max_num_sta=5
rts_threshold=2347
fragm_threshold=2346
supported_rates=10 20 55 110 60 90 120 180 240 360 480 540
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wme_enabled=0
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
wme_ac_bk_aifs=7
wme_ac_bk_txop_limit=0
wme_ac_bk_acm=0
wme_ac_be_aifs=3
wme_ac_be_cwmin=4
wme_ac_be_cwmax=10
wme_ac_be_txop_limit=0
wme_ac_be_acm=0
wme_ac_vi_aifs=2
wme_ac_vi_cwmin=3
wme_ac_vi_cwmax=4
wme_ac_vi_txop_limit=94
wme_ac_vi_acm=0
wme_ac_vo_aifs=2
wme_ac_vo_cwmin=2
wme_ac_vo_cwmax=3
wme_ac_vo_txop_limit=47
wme_ac_vo_acm=0
#ap_max_inactivity=30
#wep_rekey_period=0
#eap_server=0
#own_ip_addr=127.0.0.1
#wpa_group_rekey=0
#wpa_gmk_rekey=0
#wpa_ptk_rekey=0


ssid=testapp
channel=11
wpa_passphrase=testtest
wpa_key_mgmt=WPA-PSK
wpa=2
wpa_pairwise=CCMP
rsn_pairwise=CCMP


Scirpt to stop tethering.

CUT HERE ----------------------------------------------

# tetherstop.sh
#
# Disable forwarding and remove NAT rules.
#
echo 0 > /proc/sys/net/ipv4/ip_forward
iptables -F FORWARD
iptables -t nat -F PREROUTING
iptables -t nat -F POSTROUTING
iptables -t nat -F
iptables -X wireless-tether
#
# Kill all hotspot process
killall dnsmasq
killall hostapd
#
# Remove ip route rule to use main routing table for LAN network
#
ip rule del to 192.168.0.0/24 lookup main priority 50
ip route flush cache
#
# Remove old dnsmasq.leases and pid-files
#
rm /data/misc/wifi/dnsmasq.leases
rm /data/misc/wifi/dnsmasq.pid
rm /data/misc/wifi/hostapd.pid
 
Thanks. I haven't tried this yet but I wanted to say thanks for your contribution. Hopefully Neph is already on this and can give us some feedback.
 
Thanks. I haven't tried this yet but I wanted to say thanks for your contribution. Hopefully Neph is already on this and can give us some feedback.
Yeah, it's working for me. I've been doing this since the ICS release and finally got around to posting here. I thought somebody would patch "wifi tether for root" but that hasn't happened and I have been to busy myself to do it. I guess I could do the patch myself and post it. Once I can find time:)
 
This looks to be much easier then what I was running in to. Does this broadcast a SSID or do you manually need to add one in to connect to the spectrum?
 
Yeah, it's working for me. I've been doing this since the ICS release and finally got around to posting here. I thought somebody would patch "wifi tether for root" but that hasn't happened and I have been to busy myself to do it. I guess I could do the patch myself and post it. Once I can find time:)

You seem to know your stuff. Maybe you could look at data on cm9 for us and see if you can get that working :-P

I understand you're busy but it sure would be awesome if you could simplify this method for the masses. This method seems pretty straight forward but I know there are many who would love to have an easier method. Thanks again for your contribution
 
You seem to know your stuff. Maybe you could look at data on cm9 for us and see if you can get that working :-P

I understand you're busy but it sure would be awesome if you could simplify this method for the masses. This method seems pretty straight forward but I know there are many who would love to have an easier method. Thanks again for your contribution
I guess the easiest thing would be to do an svn checkout of the source for wifi tether and add our phone into it. I'll see if I can pull it down. Anybody else is welcome to also. It's here:

Source Checkout - android-wifi-tether - Wireless Tether for Root Users - Google Project Hosting
 
I guess the easiest thing would be to do an svn checkout of the source for wifi tether and add our phone into it. I'll see if I can pull it down. Anybody else is welcome to also. It's here:

Source Checkout - android-wifi-tether - Wireless Tether for Root Users - Google Project Hosting
Can someone go over to

Downloads - android-wifi-tether - Wireless Tether for Root Users - Google Project Hosting

Download the latest experimental build wifi_tether_v3_3-pre2.apk

Give it a try using the generic ICS wlan0 setup. Make sure to select hostapd for the setup method.

Pull a logcat for me if you can so I can see what is happenning.
 

Attachments

  • shot_000019.r.png
    shot_000019.r.png
    51.7 KB · Views: 218
When I was working on this, I had to replace wpa_supplicant with the old GB binary to get around the wifi tether issues in that screen shot. I could never get it to broadcast an SSID to connect to thou. I was on 3.2-b2 at the time.
 
Code:
D/TETHER -> MainActivity( 3124): StartBtn pressed ...

D/ServiceStartupReceiver( 3124): onReceive com.googlecode.android.wifi.tether.intent.MANAGE

D/TETHER -> TetherService( 3124): >>>>>>>>>>>>> Tethering-Service started! <<<<<<<<<<<<<

D/ServiceStartupReceiver( 3124): onReceive com.googlecode.android.wifi.tether.intent.MANAGE

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/bin/tether' ...

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/bin/dnsmasq' ...

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/bin/iptables' ...

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/bin/iwconfig' ...

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/bin/ifconfig' ...

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/conf/tether.edify' ...

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/TETHER -> Configuration( 3124): Device [ Model / SDK ] *User_Selected*: generic_ics / 15

D/TETHER -> Configuration( 3124): Device [ Model / SDK ] *User_Selected*: generic_ics / 15

D/TETHER -> CoreTask( 3124): Writing 835 bytes to file: /data/data/com.googlecode.android.wifi.tether/conf/tether.conf

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/conf/hostapd.conf' ...

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/TETHER -> CoreTask( 3124): Writing 115 bytes to file: /data/data/com.googlecode.android.wifi.tether/conf/hostapd.conf

D/TETHER -> TetherApplication( 3124): Creation of configuration-files took ==> 24 milliseconds.

D/TETHER -> TetherService( 3124): Driver Setup Method Check for driver reload

D/TETHER -> CoreTask( 3124): Root-Command ==> su -c "/data/data/com.googlecode.android.wifi.tether/bin/tether start"

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/su      ( 3821): sudb - Opening database

E/su      ( 3821): sudb - Database opened

E/su      ( 3821): sudb - Database closed

D/su      ( 3821): 10131 /system/bin/mksh executing 0 /data/data/com.googlecode.android.wifi.tether/bin/tether start using shell /system/bin/sh : sh

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/ThermalDaemon(  221): Sensor 'tsens_tz_sensor0' - alarm raised 3 at 50.0 degC

D/ConnectivityService(  442): handleInetConditionHoldEnd: net=0, condition=0, published condition=0

D/ConnectivityService(  442): sendStickyBroadcast: action=android.net.conn.INET_CONDITION_ACTION

D/StatusBar.NetworkController(  625): TYPE_MOBILE is Connected = true

E/ThermalDaemon(  221): Sensor 'tsens_tz_sensor0' - alarm cleared 3 at 48.0 degC

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

D/hostapd ( 3409): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

D/hostapd ( 3409): nl80211: Interface up

D/hostapd ( 3409): Unknown event 29

D/hostapd ( 3409): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3409): Unknown event 5

D/Tethering(  442): interfaceLinkStateChanged wlan0, true

D/Tethering(  442): interfaceStatusChanged wlan0, true

D/NetdConnector(  442): RCV <- {600 Iface linkstate wlan0 up}

D/Tethering(  442): sendTetherStateChangedBroadcast 2, 0, 0

D/Tethering(  442): portforwardingstatus = 0 : sendTetherStateChangedBroadcast

D/MobileDataStateTracker(  442): default: setPolicyDataEnable(enabled=true)

D/hostapd ( 3835): random: Trying to read entropy from /dev/random

E/hostapd ( 3835): Configuration file: /data/data/com.googlecode.android.wifi.tether/conf/hostapd.conf

E/hostapd ( 3835): Line 2: unknown configuration item 'channel_num'

D/hostapd ( 3835): nl80211: interface wlan0 in phy phy0

I/hostapd ( 3835): rfkill: Cannot open RFKILL control device

D/hostapd ( 3835): nl80211: RFKILL status not available

D/hostapd ( 3835): nl80211: Using driver-based off-channel TX

D/hostapd ( 3835): nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)

D/hostapd ( 3835): nl80211: Failed to register Action frame processing - ignore for now

D/hostapd ( 3835): nl80211: Add own interface ifindex 22

D/hostapd ( 3409): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3409): nl80211: Interface down

D/hostapd ( 3409): Unknown event 30

D/hostapd ( 3409): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3409): Unknown event 5

D/Tethering(  442): interfaceLinkStateChanged wlan0, false

D/Tethering(  442): interfaceStatusChanged wlan0, false

D/Tethering(  442): InitialState.processMessage what=4

D/Tethering(  442): sendTetherStateChangedBroadcast 1, 0, 0

D/Tethering(  442): portforwardingstatus = 0 : sendTetherStateChangedBroadcast

D/NetdConnector(  442): RCV <- {600 Iface linkstate wlan0 down}

D/Tethering(  442): interfaceAdded m.wlan0

D/Tethering(  442): m.wlan0 is not a tetherable iface, ignoring

D/hostapd ( 3409): nl80211: Ignore event for foreign ifindex 24

D/NetdConnector(  442): RCV <- {600 Iface added m.wlan0}

D/hostapd ( 3835): nl80211: New interface m.wlan0 created: ifindex=24

D/hostapd ( 3835): nl80211: Add own interface ifindex 24

D/hostapd ( 3409): nl80211: Ignore event for foreign ifindex 24

D/Tethering(  442): interfaceLinkStateChanged m.wlan0, false

D/Tethering(  442): interfaceStatusChanged m.wlan0, false

D/Tethering(  442): interfaceLinkStateChanged m.wlan0, true

D/Tethering(  442): interfaceStatusChanged m.wlan0, true

D/NetdConnector(  442): RCV <- {600 Iface linkstate m.wlan0 down}

D/NetdConnector(  442): RCV <- {600 Iface linkstate m.wlan0 up}

D/MobileDataStateTracker(  442): default: setPolicyDataEnable(enabled=true)

D/hostapd ( 3409): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

D/hostapd ( 3409): nl80211: Interface up

D/hostapd ( 3409): Unknown event 29

D/hostapd ( 3409): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3409): Unknown event 5

D/Tethering(  442): interfaceLinkStateChanged wlan0, true

D/Tethering(  442): interfaceStatusChanged wlan0, true

D/NetdConnector(  442): RCV <- {600 Iface linkstate wlan0 up}

D/Tethering(  442): sendTetherStateChangedBroadcast 2, 0, 0

D/Tethering(  442): portforwardingstatus = 0 : sendTetherStateChangedBroadcast

D/hostapd ( 3835): BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)

D/hostapd ( 3835): nl80211: Regulatory information - country=00

D/hostapd ( 3835): nl80211: 2402-2472 @ 40 MHz

D/hostapd ( 3835): nl80211: 2457-2482 @ 20 MHz

D/hostapd ( 3835): nl80211: 2474-2494 @ 20 MHz

D/hostapd ( 3835): nl80211: 5170-5250 @ 40 MHz

D/hostapd ( 3835): nl80211: 5735-5835 @ 40 MHz

D/hostapd ( 3835): nl80211: Added 802.11b mode based on 802.11g information

E/hostapd ( 3835): ACS: automatic channel selection started...

E/hostapd ( 3835): ACS was disabled on your build, rebuild hostapd with CONFIG_ACS=1

D/hostapd ( 3835): Completing interface initialization

D/hostapd ( 3835): RATE[0] rate=10 flags=0x1

D/hostapd ( 3835): RATE[1] rate=20 flags=0x1

D/hostapd ( 3835): RATE[2] rate=55 flags=0x0

D/hostapd ( 3835): RATE[3] rate=110 flags=0x0

D/hostapd ( 3835): Flushing old station entries

W/hostapd ( 3835): Could not connect to kernel driver.

D/hostapd ( 3835): Deauthenticate all stations

D/hostapd ( 3835): wpa_driver_nl80211_send_mlme: Sending frame on ap_oper_freq 0 using nl80211_send_frame_cmd

D/hostapd ( 3835): nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)

D/hostapd ( 3835): wpa_driver_nl80211_set_key: ifindex=22 alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0

D/hostapd ( 3835): wpa_driver_nl80211_set_key: ifindex=22 alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0

D/hostapd ( 3835): wpa_driver_nl80211_set_key: ifindex=22 alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0

D/hostapd ( 3835): wpa_driver_nl80211_set_key: ifindex=22 alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0

E/hostapd ( 3835): Using interface wlan0 with hwaddr f0:1c:13:47:5f:7b and ssid 'AndroidTether'

D/hostapd ( 3835): wpa_driver_set_ap_wps_p2p_ie: Entry

D/hostapd ( 3835): nl80211: Set beacon (beacon_set=0)

D/hostapd ( 3835): nl80211: Set beacon (ignore_broadcast_ssid=0)

D/MobileDataStateTracker(  442): default: setPolicyDataEnable(enabled=true)

D/hostapd ( 3835): nl80211: Register frame command failed (type=64): ret=-114 (Operation already in progress)

D/hostapd ( 3835): wpa_driver_nl80211_set_operstate: operstate 0->1 (UP)

D/hostapd ( 3835): netlink: Operstate: linkmode=-1, operstate=6

D/hostapd ( 3835): Failed to set TX queue parameters for queue 0.

D/hostapd ( 3835): Failed to set TX queue parameters for queue 1.

D/hostapd ( 3835): Failed to set TX queue parameters for queue 2.

D/hostapd ( 3835): Failed to set TX queue parameters for queue 3.

D/hostapd ( 3835): wlan0: Setup of interface done.

D/hostapd ( 3836): random: Got 20/20 bytes from /dev/random

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3836): nl80211: Interface down

D/hostapd ( 3836): Unknown event 30

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'm.wlan0' added

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

D/hostapd ( 3836): nl80211: Interface up

D/hostapd ( 3836): Unknown event 29

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'm.wlan0' added

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3836): Unknown event 5

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

W/InputManagerService(  442): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@427bda70

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/ServiceStartupReceiver( 3124): onReceive com.googlecode.android.wifi.tether.intent.MANAGE

D/TETHER -> Configuration( 3124): Device [ Model / SDK ] *User_Selected*: generic_ics / 15

D/TETHER -> CoreTask( 3124): Root-Command ==> su -c "/data/data/com.googlecode.android.wifi.tether/bin/tether stop"

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/su      ( 3915): sudb - Opening database

E/su      ( 3915): sudb - Database opened

E/su      ( 3915): sudb - Database closed

D/su      ( 3915): 10131 /system/bin/mksh executing 0 /data/data/com.googlecode.android.wifi.tether/bin/tether stop using shell /system/bin/sh : sh

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3836): nl80211: Interface down

D/hostapd ( 3836): Unknown event 30

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'm.wlan0' added

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3409): nl80211: Ignore event for foreign ifindex 24

D/Tethering(  442): interfaceLinkStateChanged m.wlan0, false

D/Tethering(  442): interfaceStatusChanged m.wlan0, false

D/hostapd ( 3836): RTM_DELLINK, IFLA_IFNAME: Interface 'm.wlan0' removed

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3409): RTM_DELLINK, IFLA_IFNAME: Interface 'm.wlan0' removed

D/hostapd ( 3409): Unknown event 5

W/Netd    (  209): No subsystem found in netlink event

D/NetdConnector(  442): RCV <- {600 Iface linkstate m.wlan0 down}

D/NetlinkEvent(  209): Unexpected netlink message. type=0x11

D/NetdConnector(  442): RCV <- {600 Iface removed m.wlan0}

D/Tethering(  442): interfaceRemoved m.wlan0

E/Tethering(  442): attempting to remove unknown iface (m.wlan0), ignoring

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3409): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3409): nl80211: Interface down

D/hostapd ( 3409): Unknown event 30

D/hostapd ( 3409): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3409): Unknown event 5

D/Tethering(  442): interfaceLinkStateChanged wlan0, false

D/Tethering(  442): interfaceStatusChanged wlan0, false

D/Tethering(  442): InitialState.processMessage what=4

D/Tethering(  442): sendTetherStateChangedBroadcast 1, 0, 0

D/Tethering(  442): portforwardingstatus = 0 : sendTetherStateChangedBroadcast

D/NetdConnector(  442): RCV <- {600 Iface linkstate wlan0 down}

D/TETHER -> TetherService( 3124): Driver Setup Method Check for driver reload

E/ThermalDaemon(  221): Sensor 'tsens_tz_sensor0' - alarm raised 3 at 51.0 degC

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/MobileDataStateTracker(  442): default: setPolicyDataEnable(enabled=true)

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

W/InputManagerService(  442): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42912f50

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/ServiceStartupReceiver( 3124): onReceive com.googlecode.android.wifi.tether.intent.MANAGE

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/TETHER -> TetherService( 3124): >>>>>>>>>>>>> Tethering-Service stopped! <<<<<<<<<<<<<

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/ConnectivityService(  442): reportNetworkCondition(0, 100)

D/ConnectivityService(  442): handleInetConditionChange: net=0, condition=100,mActiveDefaultNetwork=0

D/ConnectivityService(  442): handleInetConditionChange: starting a change hold

D/ConnectivityService(  442): handleInetConditionHoldEnd: net=0, condition=100, published condition=0

D/ConnectivityService(  442): sendStickyBroadcast: action=android.net.conn.INET_CONDITION_ACTION
Still the same base error I was getting:
E/msm8660.hwcomposer( 212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I've been digging thru the framework jars and there is a whole section that belongs to tethering. I'm having issues getting it to anything other then .smali , so reading thru it is a pain and I'm not even sure if that is what is causing the issue.

This above log comes from 3.3-b2.
 
After pasting what files I could find to the data/misc/wifi folder, i got this.
 

Attachments

  • shot_000021.png
    shot_000021.png
    52 KB · Views: 195
Can someone go over to

Downloads - android-wifi-tether - Wireless Tether for Root Users - Google Project Hosting

Download the latest experimental build wifi_tether_v3_3-pre2.apk

Give it a try using the generic ICS wlan0 setup. Make sure to select hostapd for the setup method.

Pull a logcat for me if you can so I can see what is happenning.

Working for me too! I am posting this from my laptop wirelessly tethered thru my phone... thank you ladamich!

Edit: BTW, I am currently running Eclipse A3. I will try it again this evening on Icy Fusion 5.2.
 
Code:
D/TETHER -> MainActivity( 3124): StartBtn pressed ...

D/ServiceStartupReceiver( 3124): onReceive com.googlecode.android.wifi.tether.intent.MANAGE

D/TETHER -> TetherService( 3124): >>>>>>>>>>>>> Tethering-Service started! <<<<<<<<<<<<<

D/ServiceStartupReceiver( 3124): onReceive com.googlecode.android.wifi.tether.intent.MANAGE

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/bin/tether' ...

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/bin/dnsmasq' ...

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/bin/iptables' ...

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/bin/iwconfig' ...

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/bin/ifconfig' ...

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/conf/tether.edify' ...

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/TETHER -> Configuration( 3124): Device [ Model / SDK ] *User_Selected*: generic_ics / 15

D/TETHER -> Configuration( 3124): Device [ Model / SDK ] *User_Selected*: generic_ics / 15

D/TETHER -> CoreTask( 3124): Writing 835 bytes to file: /data/data/com.googlecode.android.wifi.tether/conf/tether.conf

D/TETHER -> TetherApplication( 3124): Copying file '/data/data/com.googlecode.android.wifi.tether/conf/hostapd.conf' ...

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/TETHER -> CoreTask( 3124): Writing 115 bytes to file: /data/data/com.googlecode.android.wifi.tether/conf/hostapd.conf

D/TETHER -> TetherApplication( 3124): Creation of configuration-files took ==> 24 milliseconds.

D/TETHER -> TetherService( 3124): Driver Setup Method Check for driver reload

D/TETHER -> CoreTask( 3124): Root-Command ==> su -c "/data/data/com.googlecode.android.wifi.tether/bin/tether start"

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/su      ( 3821): sudb - Opening database

E/su      ( 3821): sudb - Database opened

E/su      ( 3821): sudb - Database closed

D/su      ( 3821): 10131 /system/bin/mksh executing 0 /data/data/com.googlecode.android.wifi.tether/bin/tether start using shell /system/bin/sh : sh

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/ThermalDaemon(  221): Sensor 'tsens_tz_sensor0' - alarm raised 3 at 50.0 degC

D/ConnectivityService(  442): handleInetConditionHoldEnd: net=0, condition=0, published condition=0

D/ConnectivityService(  442): sendStickyBroadcast: action=android.net.conn.INET_CONDITION_ACTION

D/StatusBar.NetworkController(  625): TYPE_MOBILE is Connected = true

E/ThermalDaemon(  221): Sensor 'tsens_tz_sensor0' - alarm cleared 3 at 48.0 degC

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

D/hostapd ( 3409): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

D/hostapd ( 3409): nl80211: Interface up

D/hostapd ( 3409): Unknown event 29

D/hostapd ( 3409): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3409): Unknown event 5

D/Tethering(  442): interfaceLinkStateChanged wlan0, true

D/Tethering(  442): interfaceStatusChanged wlan0, true

D/NetdConnector(  442): RCV <- {600 Iface linkstate wlan0 up}

D/Tethering(  442): sendTetherStateChangedBroadcast 2, 0, 0

D/Tethering(  442): portforwardingstatus = 0 : sendTetherStateChangedBroadcast

D/MobileDataStateTracker(  442): default: setPolicyDataEnable(enabled=true)

D/hostapd ( 3835): random: Trying to read entropy from /dev/random

E/hostapd ( 3835): Configuration file: /data/data/com.googlecode.android.wifi.tether/conf/hostapd.conf

E/hostapd ( 3835): Line 2: unknown configuration item 'channel_num'

D/hostapd ( 3835): nl80211: interface wlan0 in phy phy0

I/hostapd ( 3835): rfkill: Cannot open RFKILL control device

D/hostapd ( 3835): nl80211: RFKILL status not available

D/hostapd ( 3835): nl80211: Using driver-based off-channel TX

D/hostapd ( 3835): nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)

D/hostapd ( 3835): nl80211: Failed to register Action frame processing - ignore for now

D/hostapd ( 3835): nl80211: Add own interface ifindex 22

D/hostapd ( 3409): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3409): nl80211: Interface down

D/hostapd ( 3409): Unknown event 30

D/hostapd ( 3409): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3409): Unknown event 5

D/Tethering(  442): interfaceLinkStateChanged wlan0, false

D/Tethering(  442): interfaceStatusChanged wlan0, false

D/Tethering(  442): InitialState.processMessage what=4

D/Tethering(  442): sendTetherStateChangedBroadcast 1, 0, 0

D/Tethering(  442): portforwardingstatus = 0 : sendTetherStateChangedBroadcast

D/NetdConnector(  442): RCV <- {600 Iface linkstate wlan0 down}

D/Tethering(  442): interfaceAdded m.wlan0

D/Tethering(  442): m.wlan0 is not a tetherable iface, ignoring

D/hostapd ( 3409): nl80211: Ignore event for foreign ifindex 24

D/NetdConnector(  442): RCV <- {600 Iface added m.wlan0}

D/hostapd ( 3835): nl80211: New interface m.wlan0 created: ifindex=24

D/hostapd ( 3835): nl80211: Add own interface ifindex 24

D/hostapd ( 3409): nl80211: Ignore event for foreign ifindex 24

D/Tethering(  442): interfaceLinkStateChanged m.wlan0, false

D/Tethering(  442): interfaceStatusChanged m.wlan0, false

D/Tethering(  442): interfaceLinkStateChanged m.wlan0, true

D/Tethering(  442): interfaceStatusChanged m.wlan0, true

D/NetdConnector(  442): RCV <- {600 Iface linkstate m.wlan0 down}

D/NetdConnector(  442): RCV <- {600 Iface linkstate m.wlan0 up}

D/MobileDataStateTracker(  442): default: setPolicyDataEnable(enabled=true)

D/hostapd ( 3409): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

D/hostapd ( 3409): nl80211: Interface up

D/hostapd ( 3409): Unknown event 29

D/hostapd ( 3409): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3409): Unknown event 5

D/Tethering(  442): interfaceLinkStateChanged wlan0, true

D/Tethering(  442): interfaceStatusChanged wlan0, true

D/NetdConnector(  442): RCV <- {600 Iface linkstate wlan0 up}

D/Tethering(  442): sendTetherStateChangedBroadcast 2, 0, 0

D/Tethering(  442): portforwardingstatus = 0 : sendTetherStateChangedBroadcast

D/hostapd ( 3835): BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)

D/hostapd ( 3835): nl80211: Regulatory information - country=00

D/hostapd ( 3835): nl80211: 2402-2472 @ 40 MHz

D/hostapd ( 3835): nl80211: 2457-2482 @ 20 MHz

D/hostapd ( 3835): nl80211: 2474-2494 @ 20 MHz

D/hostapd ( 3835): nl80211: 5170-5250 @ 40 MHz

D/hostapd ( 3835): nl80211: 5735-5835 @ 40 MHz

D/hostapd ( 3835): nl80211: Added 802.11b mode based on 802.11g information

E/hostapd ( 3835): ACS: automatic channel selection started...

E/hostapd ( 3835): ACS was disabled on your build, rebuild hostapd with CONFIG_ACS=1

D/hostapd ( 3835): Completing interface initialization

D/hostapd ( 3835): RATE[0] rate=10 flags=0x1

D/hostapd ( 3835): RATE[1] rate=20 flags=0x1

D/hostapd ( 3835): RATE[2] rate=55 flags=0x0

D/hostapd ( 3835): RATE[3] rate=110 flags=0x0

D/hostapd ( 3835): Flushing old station entries

W/hostapd ( 3835): Could not connect to kernel driver.

D/hostapd ( 3835): Deauthenticate all stations

D/hostapd ( 3835): wpa_driver_nl80211_send_mlme: Sending frame on ap_oper_freq 0 using nl80211_send_frame_cmd

D/hostapd ( 3835): nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)

D/hostapd ( 3835): wpa_driver_nl80211_set_key: ifindex=22 alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0

D/hostapd ( 3835): wpa_driver_nl80211_set_key: ifindex=22 alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0

D/hostapd ( 3835): wpa_driver_nl80211_set_key: ifindex=22 alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0

D/hostapd ( 3835): wpa_driver_nl80211_set_key: ifindex=22 alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0

E/hostapd ( 3835): Using interface wlan0 with hwaddr f0:1c:13:47:5f:7b and ssid 'AndroidTether'

D/hostapd ( 3835): wpa_driver_set_ap_wps_p2p_ie: Entry

D/hostapd ( 3835): nl80211: Set beacon (beacon_set=0)

D/hostapd ( 3835): nl80211: Set beacon (ignore_broadcast_ssid=0)

D/MobileDataStateTracker(  442): default: setPolicyDataEnable(enabled=true)

D/hostapd ( 3835): nl80211: Register frame command failed (type=64): ret=-114 (Operation already in progress)

D/hostapd ( 3835): wpa_driver_nl80211_set_operstate: operstate 0->1 (UP)

D/hostapd ( 3835): netlink: Operstate: linkmode=-1, operstate=6

D/hostapd ( 3835): Failed to set TX queue parameters for queue 0.

D/hostapd ( 3835): Failed to set TX queue parameters for queue 1.

D/hostapd ( 3835): Failed to set TX queue parameters for queue 2.

D/hostapd ( 3835): Failed to set TX queue parameters for queue 3.

D/hostapd ( 3835): wlan0: Setup of interface done.

D/hostapd ( 3836): random: Got 20/20 bytes from /dev/random

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3836): nl80211: Interface down

D/hostapd ( 3836): Unknown event 30

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'm.wlan0' added

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

D/hostapd ( 3836): nl80211: Interface up

D/hostapd ( 3836): Unknown event 29

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'm.wlan0' added

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3836): Unknown event 5

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

W/InputManagerService(  442): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@427bda70

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/ServiceStartupReceiver( 3124): onReceive com.googlecode.android.wifi.tether.intent.MANAGE

D/TETHER -> Configuration( 3124): Device [ Model / SDK ] *User_Selected*: generic_ics / 15

D/TETHER -> CoreTask( 3124): Root-Command ==> su -c "/data/data/com.googlecode.android.wifi.tether/bin/tether stop"

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/su      ( 3915): sudb - Opening database

E/su      ( 3915): sudb - Database opened

E/su      ( 3915): sudb - Database closed

D/su      ( 3915): 10131 /system/bin/mksh executing 0 /data/data/com.googlecode.android.wifi.tether/bin/tether stop using shell /system/bin/sh : sh

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I/Adreno200-EGLSUB(  212): <CreateImage:893>: Android Image

I/Adreno200-EGLSUB(  212): <GetImageAttributes:1102>: RGBA_8888

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3836): nl80211: Interface down

D/hostapd ( 3836): Unknown event 30

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'm.wlan0' added

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3409): nl80211: Ignore event for foreign ifindex 24

D/Tethering(  442): interfaceLinkStateChanged m.wlan0, false

D/Tethering(  442): interfaceStatusChanged m.wlan0, false

D/hostapd ( 3836): RTM_DELLINK, IFLA_IFNAME: Interface 'm.wlan0' removed

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3409): RTM_DELLINK, IFLA_IFNAME: Interface 'm.wlan0' removed

D/hostapd ( 3409): Unknown event 5

W/Netd    (  209): No subsystem found in netlink event

D/NetdConnector(  442): RCV <- {600 Iface linkstate m.wlan0 down}

D/NetlinkEvent(  209): Unexpected netlink message. type=0x11

D/NetdConnector(  442): RCV <- {600 Iface removed m.wlan0}

D/Tethering(  442): interfaceRemoved m.wlan0

E/Tethering(  442): attempting to remove unknown iface (m.wlan0), ignoring

D/hostapd ( 3836): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3836): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3836): Unknown event 5

D/hostapd ( 3409): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

D/hostapd ( 3409): nl80211: Interface down

D/hostapd ( 3409): Unknown event 30

D/hostapd ( 3409): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

D/hostapd ( 3409): Unknown event 5

D/Tethering(  442): interfaceLinkStateChanged wlan0, false

D/Tethering(  442): interfaceStatusChanged wlan0, false

D/Tethering(  442): InitialState.processMessage what=4

D/Tethering(  442): sendTetherStateChangedBroadcast 1, 0, 0

D/Tethering(  442): portforwardingstatus = 0 : sendTetherStateChangedBroadcast

D/NetdConnector(  442): RCV <- {600 Iface linkstate wlan0 down}

D/TETHER -> TetherService( 3124): Driver Setup Method Check for driver reload

E/ThermalDaemon(  221): Sensor 'tsens_tz_sensor0' - alarm raised 3 at 51.0 degC

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/MobileDataStateTracker(  442): default: setPolicyDataEnable(enabled=true)

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

W/InputManagerService(  442): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42912f50

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/ServiceStartupReceiver( 3124): onReceive com.googlecode.android.wifi.tether.intent.MANAGE

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/TETHER -> TetherService( 3124): >>>>>>>>>>>>> Tethering-Service stopped! <<<<<<<<<<<<<

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

E/msm8660.hwcomposer(  212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

D/ConnectivityService(  442): reportNetworkCondition(0, 100)

D/ConnectivityService(  442): handleInetConditionChange: net=0, condition=100,mActiveDefaultNetwork=0

D/ConnectivityService(  442): handleInetConditionChange: starting a change hold

D/ConnectivityService(  442): handleInetConditionHoldEnd: net=0, condition=100, published condition=0

D/ConnectivityService(  442): sendStickyBroadcast: action=android.net.conn.INET_CONDITION_ACTION
Still the same base error I was getting:
E/msm8660.hwcomposer( 212): isBypassDoable: Unable to enable bypass due both down-scaling and blending

I've been digging thru the framework jars and there is a whole section that belongs to tethering. I'm having issues getting it to anything other then .smali , so reading thru it is a pain and I'm not even sure if that is what is causing the issue.

This above log comes from 3.3-b2.
You are going to need to reboot to get rid of those errors. Looks like hostapd can't pull enough data from /dev/random for entropy also.

Can you reboot then try this as a hack to see if it allows hostapd to work. You need to be root.

mv /dev/random /dev/random.old
ln -s /dev/urandom /dev/random

Then start the app up and see what happens.
 
When I was working on this, I had to replace wpa_supplicant with the old GB binary to get around the wifi tether issues in that screen shot. I could never get it to broadcast an SSID to connect to thou. I was on 3.2-b2 at the time.
If you are using hostapd then it shouldn't be using wpa_supplicant.
 
After pasting what files I could find to the data/misc/wifi folder, i got this.
Strange. I think mss clamping was removed from the setup options. Can you uninstall everything and make sure there is nothing left over in /data/mis/wifi and start fresh?
 
thanks ladamich! wifi tether works! awesome work man. Wish you had more time so you could dev for us because you seem to know your stuff =D thanks again
 
Back
Top Bottom