Sidvicious070724 / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
0 stars 2 forks source link

LG Optimus S crashes after turn off. #963

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which device (manufacturer, type)?
LG Optimus S
Which firmware is installed?
L5670ZVD
What version of wireless tether are you using?
3.0Pre14
What steps will reproduce the problem?
1. Start tether process. 
2. Stop tether process
3. Phone freezes up then restarts itself. This is true of both starting via 
widget or app itself.

What is the expected output? What do you see instead?
It just crashes after every use. 
Please provide any additional information below.

Original issue reported on code.google.com by GrantHep...@gmail.com on 6 May 2011 at 3:08

GoogleCodeExporter commented 9 years ago
My only real problem is turning off tethering without the app causing my phone 
to crash, is using the manage applications and hitting force stop bad to do?  
That is the only way I can stop tethering without it causing my phone to reset 
itself. 

Original comment by GrantHep...@gmail.com on 6 May 2011 at 3:37

GoogleCodeExporter commented 9 years ago
Same problem here, tether starts, broadcast in infrastructure, great speeds, 
but as soon as I stop tether the phone freezes, crashes and reboots. I tried 
the beta 1 version and it will only broadcast in ad-hoc.

Original comment by KeithDBe...@gmail.com on 23 Jul 2011 at 2:58

GoogleCodeExporter commented 9 years ago
Same here in beta 6, WPA2 works great in infrastructure mode - just that the 
phone will crash (and reboot) whenever tethering is stopped.

Original comment by da...@thedavid.net on 29 Sep 2011 at 7:42

GoogleCodeExporter commented 9 years ago
Just FYI, here's a logcat when stopping tethering - the phone reboots at the 
very end of this logcat:

D/ServiceStartupReceiver( 2708): onReceive 
com.googlecode.android.wifi.tether.intent.MANAGE
W/Service ( 2708): setForeground: ignoring old API call on 
com.googlecode.android.wifi.tether.TetherService
D/TETHER -> CoreTask( 2708): Root-Command ==> su -c 
"/data/data/com.googlecode.android.wifi.tether/bin/tether stop"
E/su      ( 2844): sudb - Opening database
E/su      ( 2844): sudb - Database opened
E/su      ( 2844): sudb - Database closed
D/su      ( 2844): 10045 com.googlecode.android.wifi.tether executing 0 
/data/data/com.googlecode.android.wifi.tether/bin/tether stop using shell /sys
tem/bin/sh : sh
D/Su.ResultService( 2754): onStartCommand()
D/Su.ResultService( 2754): onStart()
D/Su.ResultService( 2754): onHandleIntent()
D/Su.ResultService( 2754): ensurePrefs()
D/Su.ResultService( 2754): loading prefs
D/Su.ResultService( 2754): Found in database
D/Su.ResultService( 2754): appId = 8
D/Su.ResultService( 2754): ensurePrefs()
D/Su.ResultService( 2754): recycle()
D/Su.ResultService( 2754): ensurePrefs()
D/Su.ResultService( 2754): onDestroy()
I/dun_service( 2042): process rmnet event
I/dun_service( 2042): Post event 4
E/dun_service( 2042): DUN STATE [DUN_STATE_IDLE --> DUN_STATE_IDLE][4 Event]
I/dun_service( 2042): process rmnet event
D/Tethering( 1759): TetheredState.processMessage what=4
E/Tethering( 1759): attempting to remove unknown iface (wlan0), ignoring
I/dun_service( 2042): Post event 4
I/dun_service( 2042): The value returned from dun_getusbmodemstate_fromsys is 2
I/dun_service( 2042): process rmnet event
I/dun_service( 2042): Post event 4
I/dun_service( 2042): The value returned from dun_getusbmodemstate_fromsys is 2
I/dun_service( 2042): process rmnet event
I/dun_service( 2042): Post event 4
I/dun_service( 2042): process rmnet event
I/dun_service( 2042): Post event 4
I/dun_service( 2042): process rmnet event
I/dun_service( 2042): Post event 4
I/dun_service( 2042): process rmnet event
I/dun_service( 2042): Post event 4
E/dun_service( 2042): DUN STATE [DUN_STATE_IDLE --> DUN_STATE_IDLE][4 Event]
E/dun_service( 2042): DUN STATE [DUN_STATE_IDLE --> DUN_STATE_IDLE][4 Event]
E/dun_service( 2042): DUN STATE [DUN_STATE_IDLE --> DUN_STATE_IDLE][4 Event]
E/dun_service( 2042): DUN STATE [DUN_STATE_IDLE --> DUN_STATE_IDLE][4 Event]
E/dun_service( 2042): DUN STATE [DUN_STATE_IDLE --> DUN_STATE_IDLE][4 Event]

---

Here's a netcfg before tethering with WiFi on:
lo       UP    127.0.0.1       255.0.0.0       0x00000049
dummy0   DOWN  0.0.0.0         0.0.0.0         0x00000082
rmnet0   DOWN  107.3X.XXX.214   255.255.255.252 0x00001002
rmnet1   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet2   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet3   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet4   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet5   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet6   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet7   DOWN  0.0.0.0         0.0.0.0         0x00001002
usb0     DOWN  0.0.0.0         0.0.0.0         0x00001002
sit0     DOWN  0.0.0.0         0.0.0.0         0x00000080
ip6tnl0  DOWN  0.0.0.0         0.0.0.0         0x00000080
wlan0    UP    10.0.0.130      255.255.255.0   0x00001043

with WiFi off:
lo       UP    127.0.0.1       255.0.0.0       0x00000049
dummy0   DOWN  0.0.0.0         0.0.0.0         0x00000082
rmnet0   UP    107.3X.XXX.156   255.255.255.252 0x00001043
rmnet1   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet2   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet3   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet4   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet5   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet6   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet7   DOWN  0.0.0.0         0.0.0.0         0x00001002
usb0     DOWN  0.0.0.0         0.0.0.0         0x00001002
sit0     DOWN  0.0.0.0         0.0.0.0         0x00000080
ip6tnl0  DOWN  0.0.0.0         0.0.0.0         0x00000080

---

With tether on:
lo       UP    127.0.0.1       255.0.0.0       0x00000049
dummy0   DOWN  0.0.0.0         0.0.0.0         0x00000082
rmnet0   UP    107.3X.XXX.156   255.255.255.252 0x00001043
rmnet1   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet2   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet3   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet4   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet5   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet6   DOWN  0.0.0.0         0.0.0.0         0x00001002
rmnet7   DOWN  0.0.0.0         0.0.0.0         0x00001002
usb0     DOWN  0.0.0.0         0.0.0.0         0x00001002
sit0     DOWN  0.0.0.0         0.0.0.0         0x00000080
ip6tnl0  DOWN  0.0.0.0         0.0.0.0         0x00000080
wlan0    UP    0.0.0.0         0.0.0.0         0x00001043
wl0.1    UP    192.168.2.254   255.255.255.0   0x00001043

---

tether.conf:

ip.gateway=192.168.2.254
wifi.encryption=wpa2-psk
dns.secondary=4.2.2.2
wifi.firmware.path=/etc/wl/rtecdc-apsta.bin
ip.netmask=255.255.255.0
wifi.txpower=disabled
wifi.interface=wlan0
dns.primary=4.2.2.1
wifi.setup=iwconfig
wifi.channel=1
wifi.driver.reload=true
wifi.encryption.key=testing123
mss.clamping=true
dhcp.iprange=192.168.2.100,192.168.2.108,12h
ip.network=192.168.2.0
setup.section.generic=true
wifi.driver=netd
tether.interface=wl0.1
wifi.essid=AndroidTether
wifi.essid.hide=0
device.type=thunderc
tether.fix.route=false

---

prefs xml:

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<string name="devicepref">thunderc</string>
<boolean name="driverreloadpref" value="true" />
<string name="ssidpref">AndroidTether</string>
<boolean name="notifyvibrate" value="false" />
<boolean name="wakelockpref" value="true" />
<string name="encsetuppref">auto</string>
<string name="txpowerpref">disabled</string>
<boolean name="enable4gpref" value="true" />
<string name="dnssecondarypref">4.2.2.2</string>
<boolean name="mssclampingpref" value="true" />
<string name="batterytemppref">celsius</string>
<string name="setuppref">netd</string>
<string name="channelpref">1</string>
<string name="notificationpref">2</string>
<boolean name="updatepref" value="true" />
<boolean name="acpref" value="false" />
<string name="notifyring">content://media/internal/audio/media/48</string>
<boolean name="encpref" value="true" />
<string name="dnsprimarypref">4.2.2.1</string>
<boolean name="routefixpref" value="false" />
<string name="passphrasepref">testing123</string>
<string name="lannetworkpref">192.168.2.0/24</string>
<boolean name="donatepref" value="false" />
</map>

If I set driverreloadpref to false, stopping tethering will not cause system to 
crash, although the WiFi driver will become unusable by the system unless the 
system is rebooted (3G continues to work though).

Hope this helps someone investigate what the problem is. :)

Original comment by da...@thedavid.net on 1 Oct 2011 at 8:02

GoogleCodeExporter commented 9 years ago
Mmmh. Could you please provide some dmesg-output? It looks like that the phone 
crashes when the wifi-kernel-module is removed. No idea why this happens ...

Original comment by harald....@gmail.com on 3 Oct 2011 at 9:47

GoogleCodeExporter commented 9 years ago
Here are some dmesg output right before it reboots:

<4>[  144.480699] got iwpriv AP_BSS_STOP 

<4>[  144.482571]  STA ASSOC list is empty

<4>[  144.483453] unregister_mmc_card_pm: [WIFI] Unregistering suspend/resume 
callbacks.  

<4>[  144.603919] iwpriv_softap_stop Done with 0

<4>[  144.626258] =========== WLAN placed in RESET ========

<6>[  144.626319] mmc1: Slot status change detected (1 -> 0)

<3>[  144.626338] 
[host->plat->status_irq:157:MSM_GPIO_TO_INIT:157:msmsdcc_check_status:1395]

<6>[  144.634434] mmc1: card 0001 removed

<4>[  145.107491] save exit: isCheckpointed 1

<4>[  155.759203] register_mmc_card_pm: [WiFi] Callbacks registered 
successfully. 

<3>[  155.759259] [yoohoo] dhd_register_hwakeup : start 

<3>[  155.759389] [yoohoo] dhd_register_hwakeup : OK

<4>[  155.759424] [yoohoo] dhd_enable_hwakeup : succeed irq 158

<3>[  155.759448] [dhd_register_early_suspend] HostWakeup Get GPIO 94: 0

<4>[  155.759466] 

<4>[  155.759471] Dongle Host Driver, version 4.217.91.0

<4>[  156.118884] =========== WLAN going back to live  ========

<6>[  156.118964] mmc1: Slot status change detected (0 -> 1)

<3>[  156.118981] 
[host->plat->status_irq:157:MSM_GPIO_TO_INIT:157:msmsdcc_check_status:1395]

<4>[  156.242523] mmc1: queuing unknown CIS tuple 0x80 (51 bytes)

<4>[  156.251219] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)

<4>[  156.254411] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)

<4>[  156.265908] mmc1: queuing unknown CIS tuple 0x80 (10 bytes)

<4>[  156.285663] mmc1: queuing unknown CIS tuple 0x02 (1 bytes)

<6>[  156.288166] mmc1: new SDIO card at address 0001

<4>[  156.305881] mem_prealloc: section [3] size[139264]

<4>[  156.305898] mem_prealloc: This data is using!!!

<4>[  156.306126] alloc static buf at dce80000!

<4>[  156.306138] mem_prealloc: section [4] size[0]

<4>[  156.308059] DHD: dongle ram size is set to 393216(orig 393216)

<4>[  156.308179] mem_prealloc: section [0] size[10312]

<4>[  156.308191] mem_prealloc: This data is using!!!

<4>[  156.308464] mem_prealloc: section [1] size[10300]

<4>[  156.308476] mem_prealloc: This data is using!!!

<4>[  156.308504] mem_prealloc: section [2] size[32768]

<4>[  156.308514] mem_prealloc: This data is using!!!

<4>[  156.651313] [yoohoo] dhd_preinit_proc: do control roam_off (0)

<4>[  156.652449] [yoohoo] dhd_preinit_proc: docontrol power save mode (2)

<4>[  156.727604] wlan0: Broadcom Dongle Host Driver mac=44:a7:cf:<snip>

<4>[  157.099303] save exit: isCheckpointed 1

<4>[  159.833371] Enter wl_iw_control_wl_off_softap

<4>[  159.840781] dhd_dev_reset: DONE

<4>[  159.840978] =========== WLAN placed in RESET ========

<4>[  159.841204] current firmware_path[]=/etc/wl/rtecdc.bin

<4>[  159.841231] GOT APSTA FIRMWARE

<4>[  159.841248] SET firmware_path[]=/etc/wl/rtecdc-apsta.bin , str_p:bf062124

<4>[  159.841366] Enter wl_control_wl_start 

<4>[  160.018359] =========== WLAN going back to live  ========

<4>[  160.018553] sdio_reset_comm():

<4>[  160.057024] DHD: dongle ram size is set to 393216(orig 393216)

<4>[  160.489679] dhd_dev_reset: DONE

<4>[  160.505928] [yoohoo] dhd_preinit_proc: do control roam_off (0)

<4>[  160.508906] [yoohoo] dhd_preinit_proc: docontrol power save mode (2)

<4>[  160.583784] dhdsdio_setiovar: dhdsdio_setiovar failure. ret[-23]

<4>[  160.583836] dhdsdio_set_filter: Error in add filter. ret[-1] 

<4>[  160.584616] dhdsdio_setiovar: dhdsdio_setiovar failure. ret[-23]

<4>[  160.584663] dhdsdio_set_filter: Error in add filter. ret[-1] 

<4>[  160.585418] dhdsdio_setiovar: dhdsdio_setiovar failure. ret[-23]

<4>[  160.585459] dhd_set_pktfilter_mode : failed!!

<4>[  160.585494] Exited wl_control_wl_start 

<4>[  161.329014]  Got str param in iw_point:

<4>[  161.329029]  
ASCII_CMD=AP_CFG,SSID=AndroidTether,SEC=wpa2-psk,KEY=<snip>,CHANNEL=1,PREAMBLE=0
,MAX_SCB=8,END

<4>[  161.329088] wl_iw: set ap profile:

<4>[  161.329103]   ssid = 'AndroidTether'

<4>[  161.329114]   security = 'wpa2-psk'

<4>[  161.329128]   key = '<snip>'

<4>[  161.329148]   channel = 1

<4>[  161.329158]   max scb = 8

<4>[  161.334768] wl_iw_event: dev is null

<4>[  161.435521] ~~~~START SET AUTO CHANNEL~~~~[channel = 1]

<4>[  161.435548] ~~~~END SET AUTO CHANNEL~~~~ [channel : 1]

<4>[  161.437048] set_ap_cfg exit with 0

<4>[  161.446018] wl0.1: Broadcom Dongle Host Driver mac=44:a7:cf:<snip>

<4>[  161.937493] 

<4>[  161.937504] setting SOFTAP security mode:

<4>[  161.937514] wl_iw: set ap profile:

<4>[  161.937526]   ssid = 'AndroidTether'

<4>[  161.937536]   security = 'wpa2-psk'

<4>[  161.937546]   key = '<snip>'

<4>[  161.937561]   channel = 1

<4>[  161.937569]   max scb = 8

<4>[  161.952824] AP UP 16

<4>[  162.106651] iwpriv_en_ap_bss done with res 0 

<3>[  165.171391] init: untracked pid 2796 exited

<4>[  169.095708] save exit: isCheckpointed 1

<7>[  171.520119] wlan0: no IPv6 routers present

<7>[  172.670116] wl0.1: no IPv6 routers present

<3>[  178.655786] init: untracked pid 2797 exited

<4>[  178.732353] unregister_mmc_card_pm: [WIFI] Unregistering suspend/resume 
callbacks.  

<4>[  178.732714] got iwpriv AP_BSS_STOP 

<4>[  179.730181] dhd_bus_rxctl: resumed on timeout
<6>[    0.000000] Initializing cgroup subsys cpu

<5>[    0.000000] Linux version 2.6.35.7-GingerKernel-v05.1+ 
(drewwalton@drewwalton-MS-7549) (gcc version 4.5.2 (Ubuntu/Linaro 
4.5.2-8ubuntu3) ) #2 PREEMPT Fri Sep 30 07:20:29 MDT 2011

<4>[    0.000000] CPU: ARMv6-compatible processor [4117b365] revision 5 
(ARMv6TEJ), cr=00c5387f

<4>[    0.000000] CPU: VIPT aliasing data cache, VIPT aliasing instruction cache

<4>[    0.000000] Machine: THUNDER Sprint board (LGE LS670)

<6>[    0.000000] Partition (from atag) boot -- Offset:141 Size:38

<6>[    0.000000] Partition (from atag) cache -- Offset:179 Size:3e1

<6>[    0.000000] Partition (from atag) recovery -- Offset:55a Size:38

<6>[    0.000000] Partition (from atag) splash -- Offset:592 Size:a

<6>[    0.000000] Partition (from atag) FOTA_STO -- Offset:59c Size:38

<6>[    0.000000] Partition (from atag) system -- Offset:5d4 Size:4f4

<6>[    0.000000] Partition (from atag) userdata -- Offset:ac8 Size:527

<6>[    0.000000] Partition (from atag) misc -- Offset:fef Size:4

<6>[    0.000000] Partition (from atag) persist -- Offset:ff3 Size:c

<4>[    0.000000] Memory policy: ECC disabled, Data cache writeback

Original comment by da...@thedavid.net on 3 Oct 2011 at 11:29

GoogleCodeExporter commented 9 years ago
Quick note - Right after Android reboots, I can usually stop WiFi tether quick 
enough right after I start it in such a way that the phone would not crash... 
It differs slightly from the previous dmesg:

<4>[  208.873188] AP UP 16
<4>[  209.025764] iwpriv_en_ap_bss done with res 0 
<3>[  212.443888] init: untracked pid 2745 exited
<4>[  217.101311] save exit: isCheckpointed 1
<3>[  217.260713] init: untracked pid 2746 exited
<4>[  217.387816] got iwpriv AP_BSS_STOP 
<4>[  217.390186] unregister_mmc_card_pm: [WIFI] Unregistering suspend/resume 
callbacks.  
<4>[  217.390653]  STA ASSOC list is empty
<4>[  217.390689] iwpriv_softap_stop failed to del BSS err = 
-19iwpriv_softap_stop Done with -19
<4>[  217.514163] =========== WLAN placed in RESET ========
<6>[  217.514234] mmc1: Slot status change detected (1 -> 0)
<3>[  217.514256] 
[host->plat->status_irq:157:MSM_GPIO_TO_INIT:157:msmsdcc_check_status:1395]
<6>[  217.520813] mmc1: card 0001 removed

Original comment by da...@thedavid.net on 3 Oct 2011 at 11:40

GoogleCodeExporter commented 9 years ago
I have the same issue and I'm using ls670zvh and 2.3.3.  The default 
configuration of the app doesn't.  I manually set the device profile to LG 
Optimus S and the setup methid to Netd and it works, but crashes upon stopping 
the tethering.

Original comment by luisito....@gmail.com on 5 Nov 2011 at 11:51

GoogleCodeExporter commented 9 years ago
Having the same issue.

It most likely has to do with the netd setting. The softap method fails but the 
netd works.

Original comment by wbeoug...@gmail.com on 28 Nov 2011 at 9:49

GoogleCodeExporter commented 9 years ago
I too found the same issue as commenter #8, LG Optimus S, LS670ZVH under 2.3.3, 
using Netd.  Unfortunately, Netd is the only way to get any kind of reliable 
tethering session on the Optimus S..  

Thanks for your work guys!!  Hopeful for a cure, but the reboot solution can be 
tolerated for now.  Considering this is the only app I've tried that works 
reliably for tethering to HP TouchPads (which cannot use AdHoc), we'll be 
patient until you come up with a fix.
I can also provide Logcats and dmesgs upon request if you need more info.

Original comment by AceyT...@gmail.com on 20 Dec 2011 at 6:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Still happening on build #11 on CM7 it seems... :(

Original comment by da...@thedavid.net on 25 Jan 2012 at 4:54

GoogleCodeExporter commented 9 years ago
I have the same exact problem.

adhoc works fine
ndat crashes phone and auto reboots when turning off
softap does not work fails to start softap and fails activating wifi

Original comment by aka...@gmail.com on 19 Feb 2012 at 8:12