ads

samedi 12 septembre 2015

[CM12.1] THL t100s Wifi drop issues



Hi all, I've got a problem I cannot get fixed so my best guess is to ask the experts here.
I've succesfully ported the CM12.1 - 5.1.1 Rom from the Jiayu G4S to the THL t100s.
I've take the modem and all other belongings so that a nice goos fairly stable ROM is ready.

3G/2G is very stable but Wifi drops are very frequent. As I've googled, this is a CM12 thing because almost all other developers report this issue aswell. There are aparently fixes for the One-plus-One but they have offcourse a different Wifi module with different drivers.

I've started running logcat over the Wifi to capture the drops and it seems that the driver sometimes sends a SUSPEND to the hardware for no reason. So I went into the Settings > Wifi > Advanced and set Wifi Sleep mode so that it never goes to sleep but this still makes the driver send SUSPENDs to the hardware module.

I will copy and paste here a piece of the logcat log to hopefully get some help from the higher level developers here, since I cannot debug how to get this solved by myself.


Code:


D/wpa_supplicant(26734): wlan0: Control interface command 'SCAN TYPE=ONLY'
D/wpa_supplicant(26734): wlan0: Setting scan request: 0.000000 sec
D/wpa_supplicant(26734): wlan0: Starting AP scan for wildcard SSID
D/wpa_supplicant(26734): WPS: Building WPS IE for Probe Request
D/wpa_supplicant(26734): WPS:  * Version (hardcoded 0x10)
D/wpa_supplicant(26734): WPS:  * Request Type
D/wpa_supplicant(26734): WPS:  * Config Methods (4288)
D/wpa_supplicant(26734): WPS:  * UUID-E
D/wpa_supplicant(26734): WPS:  * Primary Device Type
D/wpa_supplicant(26734): WPS:  * RF Bands (3)
D/wpa_supplicant(26734): WPS:  * Association State
D/wpa_supplicant(26734): WPS:  * Configuration Error (0)
D/wpa_supplicant(26734): WPS:  * Device Password ID (0)
D/wpa_supplicant(26734): WPS:  * Manufacturer
D/wpa_supplicant(26734): WPS:  * Model Name
D/wpa_supplicant(26734): WPS:  * Model Number
D/wpa_supplicant(26734): WPS:  * Device Name
D/wpa_supplicant(26734): WPS:  * Version2 (0x20)
D/wpa_supplicant(26734): P2P: * P2P IE header
D/wpa_supplicant(26734): P2P: * Capability dev=25 group=00
D/wpa_supplicant(26734): P2P: * Listen Channel: Regulatory Class 81 Channel 1
D/wpa_supplicant(26734): wlan0: Add radio work 'scan'@0xb6038218
D/wpa_supplicant(26734): wlan0: First radio work item in the queue - schedule start immediately
D/wpa_supplicant(26734): wlan0: Starting radio work 'scan'@0xb6038218 after 0.000032 second wait
D/wpa_supplicant(26734): wlan0: nl80211: scan request
D/wpa_supplicant(26734): nl80211: Scan SSID - hexdump(len=0): [NULL]
D/wpa_supplicant(26734): nl80211: Scan extra IEs - hexdump(len=143): dd 7a 00 50 f2 04 10 4a 00 01 10 10 3a 00 01 00 10 08 00 02 42 88 10 47 00 10 6e 48 0c 78 b5 d6 ...
D/wpa_supplicant(26734): Scan requested (ret=0) - scan timeout 30 seconds
D/wpa_supplicant(26734): nl80211: Event message available
D/wpa_supplicant(26734): nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
D/wpa_supplicant(26734): wlan0: nl80211: Scan trigger
D/wpa_supplicant(26734): wlan0: Event SCAN_STARTED (49) received
D/wpa_supplicant(26734): wlan0: Own scan request started a scan in 0.000231 seconds
D/wpa_supplicant(26734): CTRL_IFACE monitor sent successfully to /data/misc/wifi/sockets/wpa_ctrl_607-8\x00
D/MdnsClient( 1686): Multicast lock held. Releasing
D/wpa_supplicant(26734): wlan0: Control interface command 'DRIVER RXFILTER-STOP'
D/wpa_supplicant(26734): iface wlan0 recv cmd RXFILTER-STOP
D/wpa_supplicant(26734): wlan0: Control interface command 'DRIVER RXFILTER-REMOVE 2'
D/wpa_supplicant(26734): iface wlan0 recv cmd RXFILTER-REMOVE 2
D/wpa_supplicant(26734): wlan0: Control interface command 'DRIVER RXFILTER-START'
D/wpa_supplicant(26734): iface wlan0 recv cmd RXFILTER-START
D/AudioMTKHardware(  168): +setParameters(): screen_state=off
D/AudioMTKHardware(  168): -setParameters(): screen_state=off
E/WifiStateMachine(  607): cancelDelayedScan -> 100
D/wpa_supplicant(26734): wlan0: Control interface command 'DRIVER SETSUSPENDMODE 1'
D/wpa_supplicant(26734): iface wlan0 recv cmd SETSUSPENDMODE 1
I/wpa_supplicant(26734): Unsupported command
D/wpa_supplicant(26734): wpa_driver_nl80211_driver_cmd: ret = 0 used = 4096 total = 4096
I/wpa_supplicant(26734): wpa_driver_nl80211_driver_cmd: buf = SETSUSPENDMODE 1 ret = 4096 used = 4096 total = 4096
D/agps    (  175): [agps] WARNING: [CP] cp2_fd_1_req_sim_num_timeout
D/agps    (  175): [agps][n][CP] [MD_1] write  sim_info_req
D/wpa_supplicant(26734): RTM_NEWLINK: ifi_index=16 ifname=wlan0 wext ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
D/wpa_supplicant(26734): nl80211: Event message available
D/wpa_supplicant(26734): nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
D/wpa_supplicant(26734): wlan0: nl80211: New scan results available
D/wpa_supplicant(26734): nl80211: Scan probed for SSID ''
D/wpa_supplicant(26734): nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825 5845 5865
D/wpa_supplicant(26734): wlan0: Event SCAN_RESULTS (3) received
D/wpa_supplicant(26734): wlan0: Scan completed in 2.910987 seconds
D/wpa_supplicant(26734): nl80211: Associated on 2462 MHz
D/wpa_supplicant(26734): nl80211: Associated with 60:02:92:2f:71:76
D/wpa_supplicant(26734): nl80211: Received scan results (13 BSSes)
D/wpa_supplicant(26734): nl80211: Scan results indicate BSS status with 60:02:92:2f:71:76 as associated
D/wpa_supplicant(26734): wlan0: BSS: Start scan result update 46
D/wpa_supplicant(26734): wlan0: BSS: Add new id 53 BSSID 60:02:92:05:66:76 SSID 'Ziggo65822'
D/wpa_supplicant(26734): CTRL_IFACE monitor sent successfully to /data/misc/wifi/sockets/wpa_ctrl_607-8\x00
D/wpa_supplicant(26734): wlan0: BSS: Add new id 54 BSSID b0:c2:87:e5:ad:bf SSID 'Ziggo01613'
D/wpa_supplicant(26734): CTRL_IFACE monitor sent successfully to /data/misc/wifi/sockets/wpa_ctrl_607-8\x00
D/wpa_supplicant(26734): wlan0: BSS: Add new id 55 BSSID b2:c2:87:e5:ad:b0 SSID 'Ziggo'
D/wpa_supplicant(26734): CTRL_IFACE monitor sent successfully to /data/misc/wifi/sockets/wpa_ctrl_607-8\x00
D/wpa_supplicant(26734): BSS: last_scan_res_used=13/32
D/wpa_supplicant(26734): wlan0: Scan-only results received
D/wpa_supplicant(26734): CTRL_IFACE monitor sent successfully to /data/misc/wifi/sockets/wpa_ctrl_607-8\x00
D/wpa_supplicant(26734): wlan0: Radio work 'scan'@0xb6038218 done in 2.916573 seconds
D/wpa_supplicant(26734): RTM_NEWLINK: ifi_index=16 ifname=wlan0 wext ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
D/wpa_supplicant(26734): wlan0: Control interface command 'BSS RANGE=0- MASK=0x21987'
D/wpa_supplicant(26734): wlan0: Control interface command 'STATUS-NO_EVENTS'





Aucun commentaire:

Enregistrer un commentaire