[Desire General] adroid66:
Wifi hotspot trouble

Hi

I'm now running 6.2 of that great ROM and have issues with creating WIFI hotspot.

It doesn't make any difference if I use built-in wifi tether or "Wireless tether" or "WiFi Tether" app. (either dev or stable) - it turns off instantly after I've turned it on.

Here is adb logcat when I tried to create wifi hotspot with built-in solution:

D/SoftapController( 6602): Softap fwReload - Ok

D/SoftapController( 6602): Softap startap - Ok

E/hostapd (13609): Configuration file: /data/misc/wifi/hostapd.conf

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

D/BluetoothAdapter(13200): 1101540976: getState() : mService = null. Returning STATE_OFF

W/hostapd (13609): wlan0: Could not connect to kernel driver

E/hostapd (13609): Using interface wlan0 with hwaddr 02:1a:11:f3:6e:8d and ssid 'kalkun'

E/NetdConnector( 6817): NDC Command {81 interface getcfg wlan0} took too long (524ms)

D/CommandListener( 6602): Setting iface cfg

D/CommandListener( 6602): Trying to bring up wlan0

D/Tethering( 6817): Tethering wlan0

D/Tethering( 6817): InitialState.processMessage what=2

D/BluetoothAdapter(13200): 1101540976: getState() : mService = null. Returning STATE_OFF

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

D/Tethering( 6817): Tethered wlan0

D/BluetoothAdapter(13200): 1101540976: getState() : mService = null. Returning STATE_OFF

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

D/Tethering( 6817): TetheredState.processMessage what=11

E/WifiStateMachine( 6817): Tethering reports wifi as untethered!, shut down soft Ap

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

D/CommandListener( 6602): Setting iface cfg

D/CommandListener( 6602): Trying to bring up wlan0

D/Tethering( 6817): Untethering wlan0

E/Tethering( 6817): Tried to Untethered an errored iface :wlan0, ignoring

E/WifiStateMachine( 6817): Untether initiate failed!

D/BluetoothAdapter(13200): 1101540976: getState() : mService = null. Returning STATE_OFF

E/WifiStateMachine( 6817): Failed to get tether update, force stop access point

D/SoftapController( 6602): Stopping Softap service

W/hostapd (13609): wlan0: Could not connect to kernel driver

E/hostapd (13609): Failed to remove interface (ifidx=14)

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

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

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

D/SoftapController( 6602): Softap service stopped

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

D/BluetoothAdapter(13200): 1101540976: getState() : mService = null. Returning STATE_OFF

E/NetdConnector( 6817): NDC Command {87 softap stopap} took too long (1333ms)

D/SoftapController( 6602): Softap fwReload - Ok

I think that most interesting line from first logcat is:

W/hostapd (13609): wlan0: Could not connect to kernel driver

And here is adb logcat when I tried to create wifi hotspot with Wireless Tehter app:

I/ActivityManager( 6817): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=android.tether/.MainActivity bnds=[300,510][411,633]} from pid 6994

D/TETHER -> MainActivity(11506): Calling onCreate()

D/dalvikvm(11506): GC_EXPLICIT freed 369K, 41% free 5919K/9900K, paused 3ms+14ms, total 88ms

D/TETHER -> MainActivity(11506): Calling onResume()

D/TETHER -> MainActivity(11506): Temp ==> 321 -- Celsius ==> 32 -- Fahrenheit ==> 90

V/PhoneStatusBar( 6891): setLightsOn(true)

I/ActivityManager( 6817): Displayed android.tether/.MainActivity: +516ms

D/TETHER -> MainActivity(11506): StartBtn pressed ...

D/TETHER -> CoreTask(11506): Writing 215 bytes to file: /data/data/android.tether/conf/wpa_supplicant.conf

D/TETHER -> CoreTask(11506): Writing 331 bytes to file: /data/data/android.tether/conf/tether.conf

D/TETHER -> CoreTask(11506): Writing 195 bytes to file: /data/data/android.tether/conf/dnsmasq.conf

D/TETHER -> CoreTask(11506): Writing 352 bytes to file: /data/data/android.tether/bin/blue-up.sh

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

D/TETHER -> CoreTask(11506): Writing 49 bytes to file: /data/data/android.tether/conf/resolv.conf

D/TETHER -> CoreTask(11506): Root-Command ==> su -c "/data/data/android.tether/bin/tether start 1"

D/su (13678): su invoked.

D/su (13679): db allowed

D/AndroidRuntime(13680):

D/AndroidRuntime(13680): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<

D/AndroidRuntime(13680): CheckJNI is OFF

D/dalvikvm(13680): Trying to load lib libjavacore.so 0x0

D/dalvikvm(13680): Added shared lib libjavacore.so 0x0

D/dalvikvm(13680): Trying to load lib libnativehelper.so 0x0

D/dalvikvm(13680): Added shared lib libnativehelper.so 0x0

D/AndroidRuntime(13680): Calling main entry com.android.commands.am.Am

D/dalvikvm(13680): Note: class Landroid/app/ActivityManagerNative; has 157 unimplemented (abstract) methods

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

D/AndroidRuntime(13680): Shutting down VM

D/dalvikvm(13680): GC_CONCURRENT freed 93K, 16% free 508K/604K, paused 1ms+0ms, total 7ms

I/wpa_supplicant(13707): Successfully initialized wpa_supplicant

E/wpa_supplicant(13707): wlan0: Unsupported driver 'wext'

W/InputMethodManagerService( 6817): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42020678 attribute=null, token = android.os.BinderProxy@41b75280

D/TETHER -> MainActivity(11506): Error detected. Check log.

D/dalvikvm(11506): GC_EXPLICIT freed 643K, 42% free 5838K/9900K, paused 3ms+16ms, total 79ms

D/dalvikvm(13121): GC_CONCURRENT freed 385K, 20% free 2338K/2908K, paused 14ms+5ms, total 82ms

I think that most interesting line from second logcat is:

E/wpa_supplicant(13707): wlan0: Unsupported driver 'wext'

Any help is greatly appreciated. :)