This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x android wlan0: deauthenticating from * by local choice (Reason: 3=DEAUTH_LEAVING) when connected to an AP

Hi Es,

I have been porting android JB 4.2.2 on a custom AM335x board. So far the porting has been pretty smooth.

Lately I was porting WiFi module and faced an issue regarding sequential authenticating and deauthenticating issue with any AP.

I have WiLink 8.5 drivers and Murata chip on board. I have ported wpa_supplicant 2.1 by TI in Andoird 4.2.2.

When I connect with an AP, it gets connected and start suffering from authenticating associcating and deauthenticating and deassocication.

Logs are as follow:

root@android:/ # [ 751.917239] wlan0: deauthenticating from 02:1a:11:f2:da:24 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 752.032580] cfg80211: Calling CRDA to update world regulatory domain
[ 752.757424] wlan0: authenticate with 02:1a:11:f2:da:24
[ 752.768171] wlan0: send auth to 02:1a:11:f2:da:24 (try 1/3)
[ 752.798297] wlan0: authenticated
[ 752.808655] wlan0: associate with 02:1a:11:f2:da:24 (try 1/3)
[ 752.916174] wlan0: RX AssocResp from 02:1a:11:f2:da:24 (capab=0x421 status=0 aid=5)
[ 752.931060] wlan0: associated
[ 752.941884] wlcore: Association completed.
[ 763.494291] wlan0: deauthenticating from 02:1a:11:f2:da:24 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 763.535160] cfg80211: Calling CRDA to update world regulatory domain
[ 764.259465] wlan0: authenticate with 02:1a:11:f2:da:24
[ 764.270840] wlan0: send auth to 02:1a:11:f2:da:24 (try 1/3)
[ 764.304025] wlan0: authenticated
[ 764.318656] wlan0: associate with 02:1a:11:f2:da:24 (try 1/3)
[ 764.353537] wlan0: RX AssocResp from 02:1a:11:f2:da:24 (capab=0x421 status=0 aid=6)
[ 764.368529] wlan0: associated
[ 764.380109] wlcore: Association completed.
[ 774.827024] wlan0: deauthenticating from 02:1a:11:f2:da:24 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 774.864842] cfg80211: Calling CRDA to update world regulatory domain
[ 775.614615] wlan0: authenticate with 02:1a:11:f2:da:24
[ 775.625192] wlan0: send auth to 02:1a:11:f2:da:24 (try 1/3)
[ 775.656684] wlan0: authenticated
[ 775.668650] wlan0: associate with 02:1a:11:f2:da:24 (try 1/3)
[ 775.693621] wlan0: RX AssocResp from 02:1a:11:f2:da:24 (capab=0x421 status=0 aid=7)
[ 775.708455] wlan0: associated
[ 775.719637] wlcore: Association completed.

I have seen other such threads on TI e2e , but I think my issue is no where relevant. 

I am attaching detailed logs of the issue and also attaching wpa_supplicant debugs (which is pretty lengthy just to cover most error part).

For the reference, I am also attaching the init rc files of my android implementation.

I have tried with multiple APs and got the same result. Right now I am only checking with Open APs.

Urgent Help needed.

I would appreciate a response ASAP.

Regards,

Divyeshwpa_suppl_Isuue.txt

wpa_suppl_issue2.txt
[ 1705.030652] wlan0: send auth to 00:15:eb:ac:f0:e2 (try 1/3)
[ 1705.111010] wlan0: authenticated
[ 1705.121057] wl18xx_driver wl18xx: wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 1705.129886] wl18xx_driver wl18xx: wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 1705.148626] wlan0: associate with 00:15:eb:ac:f0:e2 (try 1/3)
[ 1705.204774] wlan0: RX AssocResp from 00:15:eb:ac:f0:e2 (capab=0x401 status=0 aid=1)
[ 1705.219416] wlan0: associated
[ 1705.230694] wlcore: Association completed.
[ 1708.068212] wlcore: Beacon loss detected. roles:0x1
[ 1709.655159] wlan0: deauthenticating from 00:15:eb:ac:f0:e2 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1709.724873] cfg80211: Calling CRDA to update world regulatory domain
[ 1710.287278] wlan0: authenticate with 00:15:eb:ac:f0:e2
[ 1710.296543] wlan0: send auth to 00:15:eb:ac:f0:e2 (try 1/3)
[ 1710.334824] wlan0: authenticated
[ 1710.342004] wl18xx_driver wl18xx: wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 1710.350857] wl18xx_driver wl18xx: wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 1710.368637] wlan0: associate with 00:15:eb:ac:f0:e2 (try 1/3)
[ 1710.385496] wlan0: RX AssocResp from 00:15:eb:ac:f0:e2 (capab=0x401 status=0 aid=1)
[ 1710.400124] wlan0: associated
[ 1710.411912] wlcore: Association completed.
[ 1713.010725] wlcore: Beacon loss detected. roles:0x1
[ 1714.756865] wlan0: deauthenticating from 00:15:eb:ac:f0:e2 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1714.825001] cfg80211: Calling CRDA to update world regulatory domain
[ 1725.386460] wlan0: authenticate with 00:15:eb:ac:f0:e2
[ 1725.395713] wlan0: send auth to 00:15:eb:ac:f0:e2 (try 1/3)
[ 1725.444192] wlan0: authenticated
[ 1725.450181] wl18xx_driver wl18xx: wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 1725.459006] wl18xx_driver wl18xx: wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 1725.471189] wlan0: associate with 00:15:eb:ac:f0:e2 (try 1/3)
[ 1725.495509] wlan0: RX AssocResp from 00:15:eb:ac:f0:e2 (capab=0x401 status=0 aid=1)
[ 1725.525271] wlan0: associated
[ 1725.537250] wlcore: Association completed.
[ 1726.949038] wlcore: Beacon loss detected. roles:0x1
[ 1728.622608] wlan0: deauthenticating from 00:15:eb:ac:f0:e2 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1728.694927] cfg80211: Calling CRDA to update world regulatory domain
[ 1729.257030] wlan0: authenticate with 00:15:eb:ac:f0:e2
[ 1729.266081] wlan0: send auth to 00:15:eb:ac:f0:e2 (try 1/3)
[ 1729.324008] wlan0: authenticated
[ 1729.330915] wl18xx_driver wl18xx: wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 1729.339751] wl18xx_driver wl18xx: wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 1729.358884] wlan0: associate with 00:15:eb:ac:f0:e2 (try 1/3)
[ 1729.393462] wlan0: RX AssocResp from 00:15:eb:ac:f0:e2 (capab=0x401 status=0 aid=1)
[ 1729.407943] wlan0: associated
[ 1729.419724] wlcore: Association completed.



###############################################################################################################


root@android:/ # logcat -t 200                                                 
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
D/StateMachine(  323): processMsg: DisconnectedState
D/WifiStateMachine(  323): DisconnectedState{ what=147461 when=-4ms }
D/StateMachine(  323): processMsg: ConnectModeState
D/WifiStateMachine(  323): ConnectModeState{ what=147461 when=-4ms }
D/wpa_supplicant( 2083): RX ctrl_iface - hexdump(len=9): 41 50 5f 53 43 41 4e 20 31
D/wpa_supplicant( 2083): wlan0: Control interface command 'AP_SCAN 1'
D/ConnectivityService(  323): Attempting to switch to ETHERNET
D/StateMachine(  323): processMsg: DriverStartedState
D/WifiStateMachine(  323): DriverStartedState{ what=147461 when=-18ms }
D/StateMachine(  323): processMsg: SupplicantStartedState
D/WifiStateMachine(  323): SupplicantStartedState{ what=147461 when=-18ms }
D/wpa_supplicant( 2083): RX ctrl_iface - hexdump(len=25): 42 53 53 20 52 41 4e 47 45 3d 41 4c 4c 20 4d 41 53 4b 3d 30 78 31 39 38 36
D/wpa_supplicant( 2083): wlan0: Control interface command 'BSS RANGE=ALL MASK=0x1986'
D/wpa_supplicant( 2083): WPS: Unknown Vendor Extension (Vendor ID 9442)
D/wpa_supplicant( 2083): WPS: Unknown Vendor Extension (Vendor ID 9442)
D/wpa_supplicant( 2083): WPS: Unknown Vendor Extension (Vendor ID 9442)
D/StateMachine(  323): handleMessage: X
W/SocketClient(   66): write error (Broken pipe)
D/wpa_supplicant( 2083): nl80211: Event message available
D/wpa_supplicant( 2083): nl80211: Drv Event 37 (NL80211_CMD_AUTHENTICATE) received for wlan0
D/wpa_supplicant( 2083): nl80211: MLME event 37 (NL80211_CMD_AUTHENTICATE) on wlan0(84:eb:18:3d:64:79) A1=84:eb:18:3d:64:79 A2=00:15:eb:ac:f0:e2
D/wpa_supplicant( 2083): nl80211: MLME event frame - hexdump(len=38): b0 00 3a 01 84 eb 18 3d 64 79 00 15 eb ac f0 e2 00 15 eb ac f0 e2 50 bb 00 00 02 00 00 00.
D/wpa_supplicant( 2083): nl80211: Authenticate event
D/wpa_supplicant( 2083): wlan0: Event AUTH (11) received
D/wpa_supplicant( 2083): wlan0: SME: Authentication response: peer=00:15:eb:ac:f0:e2 auth_type=0 auth_transaction=2 status_code=0
D/wpa_supplicant( 2083): SME: Authentication response IEs - hexdump(len=8): dd 06 00 10 18 02 01 f4
I/wpa_supplicant( 2083): wlan0: Trying to associate with 00:15:eb:ac:f0:e2 (SSID='Guest' freq=2462 MHz)
D/wpa_supplicant( 2083): CTRL_IFACE monitor send - hexdump(len=39): 2f 64 61 74 61 2f 6d 69 73 63 2f 77 69 66 69 2f 73 6f 63 6b 65 74 73 2f 77 70 61 5f 63 74 7.
D/wpa_supplicant( 2083): wlan0: State: AUTHENTICATING -> ASSOCIATING
D/wpa_supplicant( 2083): wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
D/wpa_supplicant( 2083): netlink: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 2083): CTRL_IFACE monitor send - hexdump(len=39): 2f 64 61 74 61 2f 6d 69 73 63 2f 77 69 66 69 2f 73 6f 63 6b 65 74 73 2f 77 70 61 5f 63 74 7.
D/wpa_supplicant( 2083): wlan0: WPA: clearing own WPA/RSN IE
D/wpa_supplicant( 2083): nl80211: Associate (ifindex=6)
D/wpa_supplicant( 2083):   * bssid=00:15:eb:ac:f0:e2
D/wpa_supplicant( 2083):   * freq=2462
D/wpa_supplicant( 2083):   * SSID - hexdump(len=5): 47 75 65 73 74
D/wpa_supplicant( 2083):   * IEs - hexdump(len=10): 7f 08 01 00 0a 02 01 00 00 40
D/StateMachine(  323): handleMessage: E msg.what=147462
D/StateMachine(  323): processMsg: DisconnectedState
D/WifiStateMachine(  323): DisconnectedState{ what=147462 when=-7ms obj=android.net.wifi.StateChangeResult@4102e2f0 }
D/WifiStateMachine(  323): setDetailed state, old =CONNECTING and new state=CONNECTING
D/StateMachine(  323): processMsg: ConnectModeState
D/WifiStateMachine(  323): ConnectModeState{ what=147462 when=-7ms obj=android.net.wifi.StateChangeResult@4102e2f0 }
D/StateMachine(  323): handleMessage: X
D/wpa_supplicant( 2083): nl80211: Association request send successfully
I/wpa_supplicant( 2083): nl80211: wpa_driver_nl80211_event_receive->nl_recvmsgs failed: -11
D/wpa_supplicant( 2083): RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
D/wpa_supplicant( 2083): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant( 2083): nl80211: if_removed already cleared - ignore event
D/wpa_supplicant( 2083): nl80211: Event message available
D/wpa_supplicant( 2083): nl80211: Drv Event 38 (NL80211_CMD_ASSOCIATE) received for wlan0
D/wpa_supplicant( 2083): nl80211: MLME event 38 (NL80211_CMD_ASSOCIATE) on wlan0(84:eb:18:3d:64:79) A1=84:eb:18:3d:64:79 A2=00:15:eb:ac:f0:e2
D/wpa_supplicant( 2083): nl80211: MLME event frame - hexdump(len=54): 10 00 3a 01 84 eb 18 3d 64 79 00 15 eb ac f0 e2 00 15 eb ac f0 e2 60 bb 01 04 00 00 01 c0.
D/wpa_supplicant( 2083): nl80211: Associate event
D/wpa_supplicant( 2083): wlan0: Event ASSOC (0) received
D/wpa_supplicant( 2083): wlan0: Association info event
D/wpa_supplicant( 2083): resp_ies - hexdump(len=24): 01 08 82 84 8b 96 24 30 48 6c 32 04 0c 12 18 60 dd 06 00 10 18 02 01 f4
D/wpa_supplicant( 2083): wlan0: freq=2462 MHz
D/wpa_supplicant( 2083): FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
D/wpa_supplicant( 2083): wlan0: State: ASSOCIATING -> ASSOCIATED
D/wpa_supplicant( 2083): wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
D/wpa_supplicant( 2083): netlink: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 2083): CTRL_IFACE monitor send - hexdump(len=39): 2f 64 61 74 61 2f 6d 69 73 63 2f 77 69 66 69 2f 73 6f 63 6b 65 74 73 2f 77 70 61 5f 63 74 7.
D/wpa_supplicant( 2083): wlan0: Associated to a new BSS: BSSID=00:15:eb:ac:f0:e2
I/wpa_supplicant( 2083): wlan0: Associated with 00:15:eb:ac:f0:e2
D/wpa_supplicant( 2083): CTRL_IFACE monitor send - hexdump(len=39): 2f 64 61 74 61 2f 6d 69 73 63 2f 77 69 66 69 2f 73 6f 63 6b 65 74 73 2f 77 70 61 5f 63 74 7.
D/wpa_supplicant( 2083): wlan0: WPA: Association event - clear replay counter
D/wpa_supplicant( 2083): wlan0: WPA: Clear old PTK
D/wpa_supplicant( 2083): TDLS: Remove peers on association
D/wpa_supplicant( 2083): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 2083): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 2083): nl80211: Set supplicant port unauthorized for 00:15:eb:ac:f0:e2
D/wpa_supplicant( 2083): EAPOL: External notification - portValid=0
D/wpa_supplicant( 2083): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 2083): nl80211: Set supplicant port unauthorized for 00:15:eb:ac:f0:e2
D/wpa_supplicant( 2083): EAPOL: External notification - portEnabled=1
D/wpa_supplicant( 2083): EAPOL: SUPP_PAE entering state S_FORCE_AUTH
D/wpa_supplicant( 2083): EAPOL: Supplicant port status: Authorized
D/wpa_supplicant( 2083): nl80211: Set supplicant port authorized for 00:15:eb:ac:f0:e2
D/StateMachine(  323): handleMessage: E msg.what=147462
D/StateMachine(  323): processMsg: DisconnectedState
D/WifiStateMachine(  323): DisconnectedState{ what=147462 when=-1ms obj=android.net.wifi.StateChangeResult@413bc4f0 }
D/WifiStateMachine(  323): setDetailed state, old =CONNECTING and new state=CONNECTING
D/StateMachine(  323): processMsg: ConnectModeState
D/WifiStateMachine(  323): ConnectModeState{ what=147462 when=-1ms obj=android.net.wifi.StateChangeResult@413bc4f0 }
D/StateMachine(  323): handleMessage: X
D/wpa_supplicant( 2083): EAPOL: SUPP_BE entering state IDLE
D/wpa_supplicant( 2083): wlan0: Cancelling authentication timeout
D/wpa_supplicant( 2083): wlan0: State: ASSOCIATED -> COMPLETED
I/wpa_supplicant( 2083): wlan0: CTRL-EVENT-CONNECTED - Connection to 00:15:eb:ac:f0:e2 completed (auth) [id=0 id_str=]
D/wpa_supplicant( 2083): CTRL_IFACE monitor send - hexdump(len=39): 2f 64 61 74 61 2f 6d 69 73 63 2f 77 69 66 69 2f 73 6f 63 6b 65 74 73 2f 77 70 61 5f 63 74 7.
D/StateMachine(  323): handleMessage: E msg.what=147459
D/StateMachine(  323): processMsg: DisconnectedState
D/WifiStateMachine(  323): DisconnectedState{ what=147459 when=-1ms obj=00:15:eb:ac:f0:e2 }
D/StateMachine(  323): processMsg: ConnectModeState
D/WifiStateMachine(  323): ConnectModeState{ what=147459 when=-1ms obj=00:15:eb:ac:f0:e2 }
D/WifiStateMachine(  323): Network connection established
D/WifiStateMachine(  323): setDetailed state, old =CONNECTING and new state=OBTAINING_IPADDR
D/StateMachine(  323): transitionTo: destState=ObtainingIpState
D/StateMachine(  323): handleMessage: new destination call exit
D/StateMachine(  323): setupTempStateStackWithStatesToEnter: X mTempStateStackCount=2,curStateInfo: state=ConnectModeState,active=true,parent=DriverStartedState
D/StateMachine(  323): invokeExitMethods: DisconnectedState
D/StateMachine(  323): moveTempStackToStateStack: i=1,j=4
D/StateMachine(  323): moveTempStackToStateStack: i=0,j=5
D/StateMachine(  323): moveTempStackToStateStack: X mStateStackTop=5,startingIndex=4,Top=ObtainingIpState
D/StateMachine(  323): invokeEnterMethods: L2ConnectedState
D/WifiStateMachine(  323): L2ConnectedState
D/StateMachine(  323): invokeEnterMethods: ObtainingIpState
D/WifiStateMachine(  323): ObtainingIpState
D/StateMachine(  323): handleMessage: X
D/StateMachine(  323): handleMessage: E msg.what=131155
D/StateMachine(  323): processMsg: ObtainingIpState
D/WifiStateMachine(  323): ObtainingIpState{ what=131155 when=-2ms arg1=46 }
D/StateMachine(  323): processMsg: L2ConnectedState
D/WifiStateMachine(  323): L2ConnectedState{ what=131155 when=-2ms arg1=46 }
D/wpa_supplicant( 2083): wpa_driver_nl80211_set_operstate: operstate 0->1 (UP)
D/wpa_supplicant( 2083): netlink: Operstate: linkmode=-1, operstate=6
D/wpa_supplicant( 2083): wlan0: P2P: Station mode scan operation not pending anymore (sta_scan_pending=0 p2p_cb_on_scan_complete=0)
D/wpa_supplicant( 2083): CTRL_IFACE monitor send - hexdump(len=39): 2f 64 61 74 61 2f 6d 69 73 63 2f 77 69 66 69 2f 73 6f 63 6b 65 74 73 2f 77 70 61 5f 63 74 7.
D/wpa_supplicant( 2083): wlan0: Cancelling scan request
D/wpa_supplicant( 2083): wlan0: P2P: Station mode scan operation not pending anymore (sta_scan_pending=0 p2p_cb_on_scan_complete=0)
D/wpa_supplicant( 2083): wlan0: cancel_sched_scan called when no sched scan
D/wpa_supplicant( 2083): nl80211: Drv Event 46 (NL80211_CMD_CONNECT) received for wlan0
D/wpa_supplicant( 2083): nl80211: Ignore connect event (cmd=46) when using userspace SME
I/wpa_supplicant( 2083): nl80211: wpa_driver_nl80211_event_receive->nl_recvmsgs failed: -11
D/wpa_supplicant( 2083): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
D/wpa_supplicant( 2083): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant( 2083): nl80211: if_removed already cleared - ignore event
D/wpa_supplicant( 2083): RX ctrl_iface - hexdump(len=11): 53 49 47 4e 41 4c 5f 50 4f 4c 4c
D/wpa_supplicant( 2083): wlan0: Control interface command 'SIGNAL_POLL'
D/wpa_supplicant( 2083): nl80211: survey data missing!
I/wpa_supplicant( 2083): nl80211: send_and_recv->nl_recvmsgs failed: 20
D/StateMachine(  323): handleMessage: X
D/StateMachine(  323): handleMessage: E msg.what=196612
D/StateMachine(  323): processMsg: ObtainingIpState
D/WifiStateMachine(  323): ObtainingIpState{ what=196612 when=-7ms }
D/StateMachine(  323): processMsg: L2ConnectedState
D/WifiStateMachine(  323): L2ConnectedState{ what=196612 when=-7ms }
D/wpa_supplicant( 2083): RX ctrl_iface - hexdump(len=19): 44 52 49 56 45 52 20 42 54 43 4f 45 58 4d 4f 44 45 20 31
D/wpa_supplicant( 2083): wlan0: Control interface command 'DRIVER BTCOEXMODE 1'
D/WifiStateMachine(  323): setSuspendOptimizationsNative: 1 false
D/wpa_supplicant( 2083): RX ctrl_iface - hexdump(len=8): 53 45 54 20 70 73 20 30
D/wpa_supplicant( 2083): wlan0: Control interface command 'SET ps 0'
D/wpa_supplicant( 2083): CTRL_IFACE SET 'ps'='0'
D/wpa_supplicant( 2083): nl80211: set_p2p_powersave (legacy_ps=0 opp_ps=-1 ctwindow=-1)
D/StateMachine(  323): handleMessage: X
D/StateMachine(  323): handleMessage: E msg.what=147462
D/StateMachine(  323): processMsg: ObtainingIpState
D/WifiStateMachine(  323): ObtainingIpState{ what=147462 when=-5ms obj=android.net.wifi.StateChangeResult@4117ede8 }
D/StateMachine(  323): processMsg: L2ConnectedState
D/WifiStateMachine(  323): L2ConnectedState{ what=147462 when=-5ms obj=android.net.wifi.StateChangeResult@4117ede8 }
D/StateMachine(  323): processMsg: ConnectModeState
D/WifiStateMachine(  323): ConnectModeState{ what=147462 when=-5ms obj=android.net.wifi.StateChangeResult@4117ede8 }
D/StateMachine(  323): handleMessage: X
D/StateMachine(  323): handleMessage: E msg.what=131155
D/StateMachine(  323): processMsg: ObtainingIpState
D/WifiStateMachine(  323): ObtainingIpState{ what=131155 when=-1ms arg1=45 }
D/StateMachine(  323): processMsg: L2ConnectedState
D/WifiStateMachine(  323): L2ConnectedState{ what=131155 when=-1ms arg1=45 }
D/StateMachine(  323): handleMessage: X
D/StateMachine(  323): handleMessage: E msg.what=131160
D/StateMachine(  323): processMsg: ObtainingIpState
D/WifiStateMachine(  323): ObtainingIpState{ what=131160 when=-3ms arg1=119 }
D/StateMachine(  323): processMsg: L2ConnectedState
D/WifiStateMachine(  323): L2ConnectedState{ what=131160 when=-4ms arg1=119 }
D/StateMachine(  323): processMsg: ConnectModeState
D/WifiStateMachine(  323): ConnectModeState{ what=131160 when=-4ms arg1=119 }
D/StateMachine(  323): processMsg: DriverStartedState
D/WifiStateMachine(  323): DriverStartedState{ what=131160 when=-4ms arg1=119 }
D/StateMachine(  323): processMsg: SupplicantStartedState
D/WifiStateMachine(  323): SupplicantStartedState{ what=131160 when=-4ms arg1=119 }
D/StateMachine(  323): processMsg: DefaultState
D/WifiStateMachine(  323): DefaultState{ what=131160 when=-4ms arg1=119 }
D/StateMachine(  323): handleMessage: X
D/Tethering(  323): MasterInitialState.processMessage what=3
D/StateMachine(  323): handleMessage: E msg.what=131155
D/StateMachine(  323): processMsg: ObtainingIpState
D/WifiStateMachine(  323): ObtainingIpState{ what=131155 when=-1ms arg1=46 }
D/StateMachine(  323): processMsg: L2ConnectedState
D/WifiStateMachine(  323): L2ConnectedState{ what=131155 when=-1ms arg1=46 }
D/wpa_supplicant( 2083): RX ctrl_iface - hexdump(len=11): 53 49 47 4e 41 4c 5f 50 4f 4c 4c
D/wpa_supplicant( 2083): wlan0: Control interface command 'SIGNAL_POLL'
D/wpa_supplicant( 2083): nl80211: survey data missing!
I/wpa_supplicant( 2083): nl80211: send_and_recv->nl_recvmsgs failed: 20
D/StateMachine(  323): handleMessage: X
D/StateMachine(  323): handleMessage: E msg.what=131160
D/StateMachine(  323): processMsg: ObtainingIpState
D/WifiStateMachine(  323): ObtainingIpState{ what=131160 when=-1ms arg1=120 }
D/StateMachine(  323): processMsg: L2ConnectedState
D/WifiStateMachine(  323): L2ConnectedState{ what=131160 when=-1ms arg1=120 }
D/StateMachine(  323): processMsg: ConnectModeState
D/WifiStateMachine(  323): ConnectModeState{ what=131160 when=-2ms arg1=120 }
D/StateMachine(  323): processMsg: DriverStartedState
D/WifiStateMachine(  323): DriverStartedState{ what=131160 when=-2ms arg1=120 }
D/StateMachine(  323): processMsg: SupplicantStartedState
D/WifiStateMachine(  323): SupplicantStartedState{ what=131160 when=-2ms arg1=120 }
D/StateMachine(  323): processMsg: DefaultState
D/WifiStateMachine(  323): DefaultState{ what=131160 when=-2ms arg1=120 }
D/StateMachine(  323): handleMessage: X

BoardConfig.mk.txt
#
# Copyright (C) 2011 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# These two variables are set first, so they can be overridden
# by BoardConfigVendor.mk
#BOARD_USES_GENERIC_AUDIO := true
#USE_CAMERA_STUB := true

# Enable the following if using Camera cape
#BOARD_HAVE_CAMERA_CAPE := true

# Enable the following if using USB camera
BOARD_USB_CAMERA := true

BOARD_EGL_CFG := device/ti/beaglebone/egl.cfg

# Use the non-open-source parts, if they're present
#-include vendor/ti/panda/BoardConfigVendor.mk

TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
ARCH_ARM_HAVE_TLS_REGISTER := true

TARGET_NO_KERNEL := true

BOARD_HAVE_BLUETOOTH := false
TARGET_NO_BOOTLOADER := true
TARGET_NO_RECOVERY := true

BOARD_KERNEL_BASE := 0x80000000
#BOARD_KERNEL_CMDLINE :=

TARGET_NO_RADIOIMAGE := true
TARGET_BOARD_PLATFORM := omap3
TARGET_BOOTLOADER_BOARD_NAME := beaglebone

#BOARD_USES_HGL := true
#BOARD_USES_OVERLAY := true
USE_OPENGL_RENDERER := false

TARGET_USERIMAGES_USE_EXT4 := true
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 268435456
#BOARD_SYSTEMIMAGE_PARTITION_SIZE := 16777216
BOARD_USERDATAIMAGE_PARTITION_SIZE := 536870912
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_FLASH_BLOCK_SIZE := 4096

#TARGET_PROVIDES_INIT_RC := true
#TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true

# Connectivity - Wi-Fi
USES_TI_MAC80211 := true
ifdef USES_TI_MAC80211
BOARD_WPA_SUPPLICANT_DRIVER      := NL80211
#WPA_SUPPLICANT_VERSION           := VER_0_8_X_TI
WPA_SUPPLICANT_VERSION           := VER_2_1_X_TI
BOARD_WLAN_DEVICE                := wl18xx_mac80211
WIFI_DRIVER_MODULE_PATH          := "/system/lib/modules/wl18xx.ko"
WIFI_DRIVER_MODULE_NAME          := "wl18xx"
WIFI_FIRMWARE_LOADER             := ""
COMMON_GLOBAL_CFLAGS += -DUSES_TI_MAC80211
endif
init.am335xevm.rc.txt
import init.am335xevm.usb.rc

on early-init
    mount debugfs debugfs /sys/kernel/debug

on init
    #Matrix Comsec Added for rotating screen
    setprop ro.sf.hwrotation 90
    #Matrix Comsec Added for navigation bar access
    setprop lcd.landscape true
    # See storage config details at http://source.android.com/tech/storage/
    mkdir /mnt/shell/emulated 0700 shell shell
    mkdir /storage/emulated 0555 root root

    export EXTERNAL_STORAGE /storage/emulated/legacy
    export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
    export EMULATED_STORAGE_TARGET /storage/emulated

    # Support legacy paths
    symlink /storage/emulated/legacy /sdcard
    symlink /storage/emulated/legacy /mnt/sdcard
    symlink /storage/emulated/legacy /storage/sdcard0
    symlink /mnt/shell/emulated/0 /storage/emulated/legacy

    # sdcard 4th partition - contains media samples
    export SECONDARY_STORAGE /storage/sdcard1
    mkdir /storage/sdcard1 0000 system system

    # create directory for mounting usb drives
    mkdir /storage/usb1 0666 system system
    symlink /storage/usb1 /usbdrive
    symlink /storage/usb1 /mnt/usb1

on post-fs-data
    mkdir /data/misc/dhcp 0770 dhcp dhcp
    chown dhcp dhcp /data/misc/dhcp

    mkdir /data/misc/camera 0770 media media

    # we will remap this as /storage/sdcard0 with the sdcard fuse tool
    mkdir /data/media 0770 media_rw media_rw
    chown media_rw media_rw /data/media

    # Set indication (checked by vold) that we have finished this action
    setprop vold.post_fs_data_done 1

on boot

# Default Read Ahead value for sdcards
    write /sys/block/mmcblk0/queue/read_ahead_kb 2048

# PWM-Backlight for display brightness on LCD7 Cape
    chmod 0666 /sys/class/backlight/pwm-backlight/brightness
# PWM-Backlight for display brightness on LCD3 Cape
    chmod 0666 /sys/class/backlight/tps65217-bl/brightness
    
# wi-fi   
    mkdir /data/misc/wifi/sockets 0770 wifi wifi
    mkdir /data/misc/dhcp 0770 dhcp dhcp
    insmod /system/lib/modules/compat.ko
    insmod /system/lib/modules/cfg80211.ko
    insmod /system/lib/modules/mac80211.ko
    insmod /system/lib/modules/wlcore.ko
    insmod /system/lib/modules/wlcore_sdio.ko
    #insmod /system/lib/modules/wl18xx.ko
on fs
    mount_all /fstab.am335xevm 

    # This board does not have battery, force battery-level to 100%
    setprop hw.nobattery true

    # Set Camera permission
    chmod 0666 /dev/video0
    chown root root /dev/video0
    
    #Matrix Comsec ...Enabling USB Port by GPIO
    #Please refer Linux Vega Controller for more info.

service pvr /system/bin/sgx/rc.pvr start
    class core
    oneshot

service dhcpcd_eth0 /system/bin/dhcpcd -ABKL -f/system/etc/dhcpcd/dhcpcd.conf
    class main
    disabled
    oneshot

service iprenew_eth0 /system/bin/dhcpcd -n
    class main
    disabled
    oneshot

# virtual sdcard daemon running as media_rw (1023)
service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
    class late_start

# VNC Server service
service androidvncserver /system/bin/androidvncserver
    disabled
    oneshot

service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so -- -d /dev/ttyUSB2
    class main
    socket rild stream 660 root radio
    socket rild-debug stream 660 radio system
    user root
    group radio cache inet misc audio sdcard_r sdcard_rw vpn net_admin

#Download usb_modeswitch ARM complied binrary from
#    http://www.draisberghof.de/usb_modeswitch/#download
#    and place it in "/system/bin" folder of your filesystem with "usb_modeswitch" name.
service usb_modeswitch /system/bin/usb_modeswitch -I -W -c /etc/usbmodeswitch.conf
    class main
    disabled
    oneshot
        
#service wpa_supplicant /system/bin/wpa_supplicant ‐iwlan0 -d ‐Dnl80211 ‐c/data/misc/wifi/wpa_supplicant.conf
#   class main
#   socket wpa_wlan0 dgram 660 wifi wifi
#   disabled
#   oneshot

service wpa_supplicant /system/bin/wpa_supplicant -dd -Dnl80211 -iwlan0 -c /system/etc/wifi/wpa_supplicant.conf
socket wpa_wlan0 dgram 660 wifi wifi
group system wifi inet
disabled
oneshot
   
#service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
#    class main
#    disabled
#    oneshot

service dhcpcd_wlan0 /system/bin/dhcpcd wlan0
group system dhcp
disabled
oneshot

service iprenew_wlan0 /system/bin/dhcpcd -n
    class main
    disabled
    oneshot   

init.rc.txt
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#

import /init.usb.rc
import /init.${ro.hardware}.rc
import /init.trace.rc

on early-init
    # Set init and its forked children's oom_adj.
    write /proc/1/oom_adj -16

    # Set the security context for the init process.
    # This should occur before anything else (e.g. ueventd) is started.
    setcon u:r:init:s0

    start ueventd

# create mountpoints
    mkdir /mnt 0775 root system

on init

sysclktz 0

loglevel 3

# setup the global environment
    export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
    export LD_LIBRARY_PATH /vendor/lib:/system/lib
    export ANDROID_BOOTLOGO 1
    export ANDROID_ROOT /system
    export ANDROID_ASSETS /system/app
    export ANDROID_DATA /data
    export ANDROID_STORAGE /storage
    export ASEC_MOUNTPOINT /mnt/asec
    export LOOP_MOUNTPOINT /mnt/obb
    export BOOTCLASSPATH /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar

# Backward compatibility
    symlink /system/etc /etc
    symlink /sys/kernel/debug /d

# Right now vendor lives on the same filesystem as system,
# but someday that may change.
    symlink /system/vendor /vendor

# Create cgroup mount point for cpu accounting
    mkdir /acct
    mount cgroup none /acct cpuacct
    mkdir /acct/uid

    mkdir /system
    mkdir /data 0771 system system
    mkdir /cache 0770 system cache
    mkdir /config 0500 root root

    # See storage config details at http://source.android.com/tech/storage/
    mkdir /mnt/shell 0700 shell shell
    mkdir /storage 0050 root sdcard_r

    # Directory for putting things only root should see.
    mkdir /mnt/secure 0700 root root
    # Create private mountpoint so we can MS_MOVE from staging
    mount tmpfs tmpfs /mnt/secure mode=0700,uid=0,gid=0

    # Directory for staging bindmounts
    mkdir /mnt/secure/staging 0700 root root

    # Directory-target for where the secure container
    # imagefile directory will be bind-mounted
    mkdir /mnt/secure/asec  0700 root root

    # Secure container public mount points.
    mkdir /mnt/asec  0700 root system
    mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000

    # Filesystem image public mount points.
    mkdir /mnt/obb 0700 root system
    mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000

    write /proc/sys/kernel/panic_on_oops 1
    write /proc/sys/kernel/hung_task_timeout_secs 0
    write /proc/cpu/alignment 4
    write /proc/sys/kernel/sched_latency_ns 10000000
    write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
    write /proc/sys/kernel/sched_compat_yield 1
    write /proc/sys/kernel/sched_child_runs_first 0
    write /proc/sys/kernel/randomize_va_space 2
    write /proc/sys/kernel/kptr_restrict 2
    write /proc/sys/kernel/dmesg_restrict 1
    write /proc/sys/vm/mmap_min_addr 32768
    write /proc/sys/kernel/sched_rt_runtime_us 950000
    write /proc/sys/kernel/sched_rt_period_us 1000000

# Create cgroup mount points for process groups
    mkdir /dev/cpuctl
    mount cgroup none /dev/cpuctl cpu
    chown system system /dev/cpuctl
    chown system system /dev/cpuctl/tasks
    chmod 0660 /dev/cpuctl/tasks
    write /dev/cpuctl/cpu.shares 1024
    write /dev/cpuctl/cpu.rt_runtime_us 950000
    write /dev/cpuctl/cpu.rt_period_us 1000000

    mkdir /dev/cpuctl/apps
    chown system system /dev/cpuctl/apps/tasks
    chmod 0666 /dev/cpuctl/apps/tasks
    write /dev/cpuctl/apps/cpu.shares 1024
    write /dev/cpuctl/apps/cpu.rt_runtime_us 800000
    write /dev/cpuctl/apps/cpu.rt_period_us 1000000

    mkdir /dev/cpuctl/apps/bg_non_interactive
    chown system system /dev/cpuctl/apps/bg_non_interactive/tasks
    chmod 0666 /dev/cpuctl/apps/bg_non_interactive/tasks
    # 5.0 %
    write /dev/cpuctl/apps/bg_non_interactive/cpu.shares 52
    write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_runtime_us 700000
    write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_period_us 1000000

# Allow everybody to read the xt_qtaguid resource tracking misc dev.
# This is needed by any process that uses socket tagging.
    chmod 0644 /dev/xt_qtaguid

#on fs
# mount mtd partitions
    # Mount /system rw first to give the filesystem a chance to save a checkpoint
#    mount yaffs2 mtd@system /system
#    mount yaffs2 mtd@system /system ro remount
#    mount yaffs2 mtd@userdata /data nosuid nodev
#    mount yaffs2 mtd@cache /cache nosuid nodev

on post-fs
    # once everything is setup, no need to modify /
#    mount rootfs rootfs / ro remount
    # mount shared so changes propagate into child namespaces
    mount rootfs rootfs / shared rec
    mount tmpfs tmpfs /mnt/secure private rec

    # We chown/chmod /cache again so because mount is run as root + defaults
    chown system cache /cache
    chmod 0770 /cache
    # We restorecon /cache in case the cache partition has been reset.
    restorecon /cache

    # This may have been created by the recovery system with odd permissions
    chown system cache /cache/recovery
    chmod 0770 /cache/recovery
    # This may have been created by the recovery system with the wrong context.
    restorecon /cache/recovery

    #change permissions on vmallocinfo so we can grab it from bugreports
    chown root log /proc/vmallocinfo
    chmod 0440 /proc/vmallocinfo

    chown root log /proc/slabinfo
    chmod 0440 /proc/slabinfo

    #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
    chown root system /proc/kmsg
    chmod 0440 /proc/kmsg
    chown root system /proc/sysrq-trigger
    chmod 0220 /proc/sysrq-trigger
    chown system log /proc/last_kmsg
    chmod 0440 /proc/last_kmsg

    # create the lost+found directories, so as to enforce our permissions
    mkdir /cache/lost+found 0770 root root

on post-fs-data
    # We chown/chmod /data again so because mount is run as root + defaults
    chown system system /data
    chmod 0771 /data
    # We restorecon /data in case the userdata partition has been reset.
    restorecon /data

    # Create dump dir and collect dumps.
    # Do this before we mount cache so eventually we can use cache for
    # storing dumps on platforms which do not have a dedicated dump partition.
    mkdir /data/dontpanic 0750 root log

    # Collect apanic data, free resources and re-arm trigger
    copy /proc/apanic_console /data/dontpanic/apanic_console
    chown root log /data/dontpanic/apanic_console
    chmod 0640 /data/dontpanic/apanic_console

    copy /proc/apanic_threads /data/dontpanic/apanic_threads
    chown root log /data/dontpanic/apanic_threads
    chmod 0640 /data/dontpanic/apanic_threads

    write /proc/apanic_console 1

    # create basic filesystem structure
    mkdir /data/misc 01771 system misc
    mkdir /data/misc/adb 02750 system shell
    mkdir /data/misc/bluedroid 0770 bluetooth net_bt_stack
    mkdir /data/misc/bluetooth 0770 system system
    mkdir /data/misc/keystore 0700 keystore keystore
    mkdir /data/misc/keychain 0771 system system
    mkdir /data/misc/sms 0770 system radio
    mkdir /data/misc/vpn 0770 system vpn
    mkdir /data/misc/systemkeys 0700 system system
    # give system access to wpa_supplicant.conf for backup and restore
    #mkdir /data/misc/wifi 0770 wifi wifi
    #chmod 0660 /data/misc/wifi/wpa_supplicant.conf
    #mkdir /data/local 0751 root root
    
    mkdir /system/etc/wifi 0770 wifi wifi
    chmod 0770 /system/etc/wifi
    chmod 0660 /system/etc/wifi/wpa_supplicant.conf
    chown wifi wifi /system/etc/wifi/wpa_supplicant.conf
    #wpa_supplicant control socket for android wifi.c (android private socket)
    mkdir /data/misc/wifi 0770 wifi wifi
    mkdir /data/misc/wifi/sockets 0770 wifi wifi
    chmod 0770 /data/misc/wifi
    chmod 0660 /data/misc/wifi/wpa_supplicant.conf
    chown wifi wifi /data/misc/wifi
    chown wifi wifi /data/misc/wifi/wpa_supplicant.conf

    # For security reasons, /data/local/tmp should always be empty.
    # Do not place files or directories in /data/local/tmp
    mkdir /data/local/tmp 0771 shell shell
    mkdir /data/data 0771 system system
    mkdir /data/app-private 0771 system system
    mkdir /data/app-asec 0700 root root
    mkdir /data/app-lib 0771 system system
    mkdir /data/app 0771 system system
    mkdir /data/property 0700 root root
    mkdir /data/ssh 0750 root shell
    mkdir /data/ssh/empty 0700 root root

    # create dalvik-cache, so as to enforce our permissions
    mkdir /data/dalvik-cache 0771 system system

    # create resource-cache and double-check the perms
    mkdir /data/resource-cache 0771 system system
    chown system system /data/resource-cache
    chmod 0771 /data/resource-cache

    # create the lost+found directories, so as to enforce our permissions
    mkdir /data/lost+found 0770 root root

    # create directory for DRM plug-ins - give drm the read/write access to
    # the following directory.
    mkdir /data/drm 0770 drm drm

    # If there is no fs-post-data action in the init.<device>.rc file, you
    # must uncomment this line, otherwise encrypted filesystems
    # won't work.
    # Set indication (checked by vold) that we have finished this action
    #setprop vold.post_fs_data_done 1

on boot
# basic network init
    ifup lo
    hostname localhost
    domainname localdomain

# set RLIMIT_NICE to allow priorities from 19 to -20
    setrlimit 13 40 40

# Memory management.  Basic kernel parameters, and allow the high
# level system server to be able to adjust the kernel OOM driver
# parameters to match how it is managing things.
    write /proc/sys/vm/overcommit_memory 1
    write /proc/sys/vm/min_free_order_shift 4
    chown root system /sys/module/lowmemorykiller/parameters/adj
    chmod 0664 /sys/module/lowmemorykiller/parameters/adj
    chown root system /sys/module/lowmemorykiller/parameters/minfree
    chmod 0664 /sys/module/lowmemorykiller/parameters/minfree

    # Tweak background writeout
    write /proc/sys/vm/dirty_expire_centisecs 200
    write /proc/sys/vm/dirty_background_ratio  5

    # Permissions for System Server and daemons.
    chown radio system /sys/android_power/state
    chown radio system /sys/android_power/request_state
    chown radio system /sys/android_power/acquire_full_wake_lock
    chown radio system /sys/android_power/acquire_partial_wake_lock
    chown radio system /sys/android_power/release_wake_lock
    chown system system /sys/power/autosleep
    chown system system /sys/power/state
    chown system system /sys/power/wakeup_count
    chown radio system /sys/power/wake_lock
    chown radio system /sys/power/wake_unlock
    chmod 0660 /sys/power/state
    chmod 0660 /sys/power/wake_lock
    chmod 0660 /sys/power/wake_unlock

    chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
    chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
    chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
    chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
    chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
    chown system system /sys/devices/system/cpu/cpufreq/interactive/boost
    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost
    chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
    chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost
    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost
    chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration

    # Assume SMP uses shared cpufreq policy for all CPUs
    chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

    chown system system /sys/class/timed_output/vibrator/enable
    chown system system /sys/class/leds/keyboard-backlight/brightness
    chown system system /sys/class/leds/lcd-backlight/brightness
    chown system system /sys/class/leds/button-backlight/brightness
    chown system system /sys/class/leds/jogball-backlight/brightness
    chown system system /sys/class/leds/red/brightness
    chown system system /sys/class/leds/green/brightness
    chown system system /sys/class/leds/blue/brightness
    chown system system /sys/class/leds/red/device/grpfreq
    chown system system /sys/class/leds/red/device/grppwm
    chown system system /sys/class/leds/red/device/blink
    chown system system /sys/class/leds/red/brightness
    chown system system /sys/class/leds/green/brightness
    chown system system /sys/class/leds/blue/brightness
    chown system system /sys/class/leds/red/device/grpfreq
    chown system system /sys/class/leds/red/device/grppwm
    chown system system /sys/class/leds/red/device/blink
    chown system system /sys/class/timed_output/vibrator/enable
    chown system system /sys/module/sco/parameters/disable_esco
    chown system system /sys/kernel/ipv4/tcp_wmem_min
    chown system system /sys/kernel/ipv4/tcp_wmem_def
    chown system system /sys/kernel/ipv4/tcp_wmem_max
    chown system system /sys/kernel/ipv4/tcp_rmem_min
    chown system system /sys/kernel/ipv4/tcp_rmem_def
    chown system system /sys/kernel/ipv4/tcp_rmem_max
    chown root radio /proc/cmdline

# Define TCP buffer sizes for various networks
#   ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
    setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
    setprop net.tcp.buffersize.wifi    524288,1048576,2097152,262144,524288,1048576
    setprop net.tcp.buffersize.lte     524288,1048576,2097152,262144,524288,1048576
    setprop net.tcp.buffersize.umts    4094,87380,110208,4096,16384,110208
    setprop net.tcp.buffersize.hspa    4094,87380,262144,4096,16384,262144
    setprop net.tcp.buffersize.hsupa   4094,87380,262144,4096,16384,262144
    setprop net.tcp.buffersize.hsdpa   4094,87380,262144,4096,16384,262144
    setprop net.tcp.buffersize.hspap   4094,87380,1220608,4096,16384,1220608
    setprop net.tcp.buffersize.edge    4093,26280,35040,4096,16384,35040
    setprop net.tcp.buffersize.gprs    4092,8760,11680,4096,8760,11680
    setprop net.tcp.buffersize.evdo    4094,87380,262144,4096,16384,262144

# Set this property so surfaceflinger is not started by system_init
    setprop system_init.startsurfaceflinger 0

    class_start core
    class_start main

on nonencrypted
    class_start late_start

on charger
    class_start charger

on property:vold.decrypt=trigger_reset_main
    class_reset main

on property:vold.decrypt=trigger_load_persist_props
    load_persist_props

on property:vold.decrypt=trigger_post_fs_data
    trigger post-fs-data

on property:vold.decrypt=trigger_restart_min_framework
    class_start main

on property:vold.decrypt=trigger_restart_framework
    class_start main
    class_start late_start

on property:vold.decrypt=trigger_shutdown_framework
    class_reset late_start
    class_reset main

## Daemon processes to be run by init.
##
service ueventd /sbin/ueventd
    class core
    critical
    seclabel u:r:ueventd:s0

on property:selinux.reload_policy=1
    restart ueventd
    restart installd

service console /system/bin/sh
    class core
    console
    disabled
#    user shell
    group log

on property:ro.debuggable=1
    start console

# adbd is controlled via property triggers in init.<platform>.usb.rc
service adbd /sbin/adbd
    class core
    socket adbd stream 660 system system
    disabled
    seclabel u:r:adbd:s0

# adbd on at boot in emulator
on property:ro.kernel.qemu=1
    start adbd

service servicemanager /system/bin/servicemanager
    class core
    user system
    group system
    critical
    onrestart restart zygote
    onrestart restart media
    onrestart restart surfaceflinger
    onrestart restart drm

service vold /system/bin/vold
    class core
    socket vold stream 0660 root mount
    ioprio be 2

service netd /system/bin/netd
    class main
    socket netd stream 0660 root system
    socket dnsproxyd stream 0660 root inet
    socket mdns stream 0660 root system

service debuggerd /system/bin/debuggerd
    class main

service surfaceflinger /system/bin/surfaceflinger
    class main
    user system
    group graphics drmrpc
    onrestart restart zygote

service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
    class main
    socket zygote stream 660 root system
    onrestart write /sys/android_power/request_state wake
    onrestart write /sys/power/state on
    onrestart restart media
    onrestart restart netd

service drm /system/bin/drmserver
    class main
    user drm
    group drm system inet drmrpc

service media /system/bin/mediaserver
    class main
    user media
    group audio camera inet net_bt net_bt_admin net_bw_acct drmrpc
    ioprio rt 4

#service bootanim /system/bin/bootanimation
#    class main
#    user graphics
#    group graphics
#    disabled
#    oneshot

service installd /system/bin/installd
    class main
    socket installd stream 600 system system

service flash_recovery /system/etc/install-recovery.sh
    class main
    oneshot

service racoon /system/bin/racoon
    class main
    socket racoon stream 600 system system
    # IKE uses UDP port 500. Racoon will setuid to vpn after binding the port.
    group vpn net_admin inet
    disabled
    oneshot

service mtpd /system/bin/mtpd
    class main
    socket mtpd stream 600 system system
    user vpn
    group vpn net_admin inet net_raw
    disabled
    oneshot

service keystore /system/bin/keystore /data/misc/keystore
    class main
    user keystore
    group keystore drmrpc
    socket keystore stream 666

service dumpstate /system/bin/dumpstate -s
    class main
    socket dumpstate stream 0660 shell log
    disabled
    oneshot

service sshd /system/bin/start-ssh
    class main
    disabled

service mdnsd /system/bin/mdnsd
    class main
    user mdnsr
    group inet net_raw
    socket mdnsd stream 0660 mdnsr inet
    disabled
    oneshot

  • Hi Divyesh,

    I think the reason for the disconnection is because of the below:

    [ 1708.068212] wlcore: Beacon loss detected. roles:0x1

    This could indicated some sort of an RF issue. Please fill out the module schematics checklist @ processors.wiki.ti.com/.../WL18xx_Module_Schematic_Checklist

    Does it help if you bring the wl18xx near to the AP? Can you confirm the firmware version?

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    Thanks for quick response.

    I have tested various APs at various distances, and the logs with "Beacon loss" was with an AP quite far from my device, which can be an issue due to distance.

    But for rest of the APs almost next to the device also gives same disconnection issue (which do not have 'wlcore: Beacon loss detected. roles:0x1' in them).

    As you requested.

    Driver Verison: R8.5
    Phy Firmware Version: Rev 8.2.0.0224
    Booted Firmware: Rev 8.9.0.0.31

    I am taking this data from the logs I get when I enable WiFi.

    Do you see any other issue in here??

    Appreciate your help.

    Regards,
    Divyesh M
  • Hi Divyesh,

    But for rest of the APs almost next to the device also gives same disconnection issue (which do not have 'wlcore: Beacon loss detected. roles:0x1' in them).
    >>> Can you share those logs? Please enable additional debugging option for the wpa_supplicant (-DD)

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    Thank you for the reply.

    Anyway, I have figured out the issue.

    The issue was regarding the dhcpd service not getting properly started, which has to be as per stated in TI's porting guide.

    Currently I am checking the WiFi with various authentication types using wpa_supplicant. I'd update the forum if there would be any related issue.

    Regards,
    Divyesh M
  • Hi Gigi,

    I have tried almost all possible authentication methods and it seems to be working OK.

    Currently I am having another issue :

    When I Turn On the wifi from android's UI based settings, wifi drivers get loaded OK and I can have wlan0 interface up. I can also see the Wifi UI based setting showing Wifi is ON on the display.

    I can scan, list and connect to APs using wpa_cli command in Android system.

    Now, the problem is, when I turn the wifi ON from UI based wifi settings, it keeps showing me "Searching for Wi-Fi networks.." message and does not give the scanned results (Not sure if it is initiating scan process). I have waited for long time to get the screen updated with scanned APs, but it keeps on showing the same message.

    As I have already checked the Wifi drivers with all possibilities, can you help me to enable UI based access for scanning and selecting APs from WIfi settings in android 4.2.2??

    Appreciate a response soon.

    Regards,

    Divyesh M
  • Hi Divyesh,

    Which version of wpa_supplicant are you using? Opensource/TI?

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    I'm using wpa_supplicant 2.1 by TI.

    Can you see a breach?

    Regards,
    Divyesh Maisuria
  • Hi Gigi,

    Just for your reference, I am also attaching the logs taken from "logcat" while I'm switching the Wifi on from WIFI settings and display stuck with "Searching for Wi-Fi networks.. " message in android UI. It may help you to see any gap creating the issue.

    Kindly, go through it, I appreciate your valuable help with this.

    wifilogs.txt
     
    D/StateMachine(  305): handleMessage: E msg.what=131160
    D/StateMachine(  305): processMsg: DriverUnloadedState
    D/WifiStateMachine(  305): DriverUnloadedState{ what=131160 when=-8ms arg1=1 }
    D/StateMachine(  305): processMsg: DefaultState
    D/WifiStateMachine(  305): DefaultState{ what=131160 when=-8ms arg1=1 }
    D/StateMachine(  305): handleMessage: X
    D/WifiService(  305): setWifiEnabled: true pid=1147, uid=1000
    D/StateMachine(  305): handleMessage: E msg.what=131073
    D/StateMachine(  305): processMsg: DriverUnloadedState
    D/WifiStateMachine(  305): DriverUnloadedState{ what=131073 when=-4ms arg1=2 }
    D/StateMachine(  305): transitionTo: destState=DriverLoadingState
    D/StateMachine(  305): handleMessage: new destination call exit
    D/StateMachine(  305): setupTempStateStackWithStatesToEnter: X mTempStateStackCount=1,curStateInfo: state=DefaultState,active=true,parent=null
    D/StateMachine(  305): invokeExitMethods: DriverUnloadedState
    D/StateMachine(  305): moveTempStackToStateStack: i=0,j=1
    D/StateMachine(  305): moveTempStackToStateStack: X mStateStackTop=1,startingIndex=1,Top=DriverLoadingState
    D/StateMachine(  305): invokeEnterMethods: DriverLoadingState
    D/WifiStateMachine(  305): DriverLoadingState
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=131083
    D/StateMachine(  305): processMsg: DriverLoadingState
    D/WifiStateMachine(  305): DriverLoadingState{ what=131083 when=-13ms }
    D/StateMachine(  305): deferMessage: msg=131083
    D/StateMachine(  305): handleMessage: X
    D/WifiStateMachine(  305): setWifiState: enabling
    E/WifiHW  (  305): matrixwifitest wifi_load_driver START
    E/WifiHW  (  305): matrixwifitest delay count 99
    E/WifiHW  (  305): matrixwifitest delay SUCCESS WITH DRIVER LOADED
    D/BluetoothAdapter( 1147): 1089531864: getState() :  mService = null. Returning STATE_OFF
    [  883.879259] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    [  883.890739] wlcore: loaded
    [  883.893613] wlcore: driver version: R8.5
    [  883.897714] wlcore: compilation time: Sat Jan 17 12:14:17 2015
    D/WifiStateMachine(  305): Driver load successful
    D/StateMachine(  305): handleMessage: E msg.what=131075
    D/StateMachine(  305): processMsg: DriverLoadingState
    D/WifiStateMachine(  305): DriverLoadingState{ what=131075 when=-2ms }
    D/StateMachine(  305): transitionTo: destState=DriverLoadedState
    D/StateMachine(  305): handleMessage: new destination call exit
    D/StateMachine(  305): setupTempStateStackWithStatesToEnter: X mTempStateStackCount=1,curStateInfo: state=DefaultState,active=true,parent=null
    D/StateMachine(  305): invokeExitMethods: DriverLoadingState
    D/StateMachine(  305): moveTempStackToStateStack: i=0,j=1
    D/StateMachine(  305): moveTempStackToStateStack: X mStateStackTop=1,startingIndex=1,Top=DriverLoadedState
    D/StateMachine(  305): invokeEnterMethods: DriverLoadedState
    D/WifiStateMachine(  305): DriverLoadedState
    D/StateMachine(  305): moveDeferredMessageAtFrontOfQueue; what=131083
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=131083
    D/StateMachine(  305): processMsg: DriverLoadedState
    D/WifiStateMachine(  305): DriverLoadedState{ what=131083 when=-14m45s477ms }
    D/CommandListener(   64): Setting iface cfg
    D/CommandListener(   64): Trying to bring down wlan0
    D/WifiStateMachine(  305): Kill any running supplicant
    D/WifiHW  (  305): added/removed p2p interface. add: 1
    D/WifiStateMachine(  305): Supplicant start successful
    D/StateMachine(  305): transitionTo: destState=SupplicantStartingState
    D/StateMachine(  305): handleMessage: new destination call exit
    D/StateMachine(  305): setupTempStateStackWithStatesToEnter: X mTempStateStackCount=1,curStateInfo: state=DefaultState,active=true,parent=null
    D/StateMachine(  305): invokeExitMethods: DriverLoadedState
    D/StateMachine(  305): moveTempStackToStateStack: i=0,j=1
    D/StateMachine(  305): moveTempStackToStateStack: X mStateStackTop=1,startingIndex=1,Top=SupplicantStartingState
    D/StateMachine(  305): invokeEnterMethods: SupplicantStartingState
    D/WifiStateMachine(  305): SupplicantStartingState
    D/StateMachine(  305): handleMessage: X
    I/wpa_supplicant( 1202): Successfully initialized wpa_supplicant
    I/wpa_supplicant( 1202): rfkill: Cannot open RFKILL control device
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    [  885.987840] wlcore: PHY firmware version: Rev 8.2.0.0.224
    [  886.041724] wlcore: firmware booted (Rev 8.9.0.0.31)
    [  886.059957] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplican[  886.103611] ADDRCONF(NETDEV_UP): p2p0: link is not ready
    t( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -95
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -2
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -2
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -2
    I/wpa_supplicant( 1202): rfkill: Cannot open RFKILL control device
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -67
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -95
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -2
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -2
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -2
    D/StateMachine(  305): handleMessage: E msg.what=147457
    D/StateMachine(  305): processMsg: SupplicantStartingState
    D/WifiStateMachine(  305): SupplicantStartingState{ what=147457 when=-1ms }
    D/WifiStateMachine(  305): Supplicant connection established
    D/WifiStateMachine(  305): setWifiState: enabled
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): transitionTo: destState=DriverStartedState
    D/StateMachine(  305): handleMessage: new destination call exit
    D/StateMachine(  305): setupTempStateStackWithStatesToEnter: X mTempStateStackCount=2,curStateInfo: state=DefaultState,active=true,parent=null
    D/StateMachine(  305): invokeExitMethods: SupplicantStartingState
    D/StateMachine(  305): moveTempStackToStateStack: i=1,j=1
    D/StateMachine(  305): moveTempStackToStateStack: i=0,j=2
    D/StateMachine(  305): moveTempStackToStateStack: X mStateStackTop=2,startingIndex=1,Top=DriverStartedState
    D/StateMachine(  305): invokeEnterMethods: SupplicantStartedState
    D/WifiStateMachine(  305): SupplicantStartedState
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): invokeEnterMethods: DriverStartedState
    D/WifiStateMachine(  305): DriverStartedState
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/WifiStateMachine(  305): setDetailed state, old =DISCONNECTED and new state=DISCONNECTED
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): transitionTo: destState=DisconnectedState
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/CommandListener(   64): Setting iface cfg
    D/CommandListener(   64): Trying to bring up p2p0
    D/StateMachine(  305): handleMessage: new destination call exit
    D/StateMachine(  305): setupTempStateStackWithStatesToEnter: X mTempStateStackCount=2,curStateInfo: state=DriverStartedState,active=true,parent=SupplicantStartedState
    D/StateMachine(  305): moveTempStackToStateStack: i=1,j=3
    D/StateMachine(  305): moveTempStackToStateStack: i=0,j=4
    D/StateMachine(  305): moveTempStackToStateStack: X mStateStackTop=4,startingIndex=3,Top=DisconnectedState
    D/StateMachine(  305): invokeEnterMethods: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState
    D/StateMachine(  305): invokeEnterMethods: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=131162
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=131162 when=-27ms }
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=131162 when=-27ms }
    D/StateMachine(  305): processMsg: DriverStartedState
    D/WifiStateMachine(  305): DriverStartedState{ what=131162 when=-31ms }
    E/WifiHW  (  305): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
    D/WifiStateMachine(  305): set frequency band 0
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=147462
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=147462 when=-27ms obj=android.net.wifi.StateChangeResult@41139780 }
    D/WifiStateMachine(  305): setDetailed state, old =DISCONNECTED and new state=DISCONNECTED
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=147462 when=-36ms obj=android.net.wifi.StateChangeResult@41139780 }
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=131143
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=131143 when=-10ms arg1=1 }
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=131143 when=-10ms arg1=1 }
    D/StateMachine(  305): processMsg: DriverStartedState
    D/WifiStateMachine(  305): DriverStartedState{ what=131143 when=-10ms arg1=1 }
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    I/wpa_supplicant( 1202): nl80211: wpa_driver_nl80211_event_receive->nl_recvmsgs failed: -11
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=131143
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=131143 when=-12ms arg1=1 }
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=131143 when=-12ms arg1=1 }
    D/StateMachine(  305): processMsg: DriverStartedState
    D/WifiStateMachine(  305): DriverStartedState{ what=131143 when=-12ms arg1=1 }
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=147462
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=147462 when=-14ms obj=android.net.wifi.StateChangeResult@410ca888 }
    D/WifiStateMachine(  305): setDetailed state, old =DISCONNECTED and new state=SCANNING
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=147462 when=-15ms obj=android.net.wifi.StateChangeResult@410ca888 }
    D/StateMachine(  305): handleMessage: X
    D/BluetoothAdapter( 1147): 1089531864: getState() :  mService = null. Returning STATE_OFF
    D/StateMachine(  305): handleMessage: E msg.what=131131
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=131131 when=-1ms }
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=131131 when=-1ms }
    D/StateMachine(  305): processMsg: DriverStartedState
    D/WifiStateMachine(  305): DriverStartedState{ what=131131 when=-1ms }
    D/StateMachine(  305): processMsg: SupplicantStartedState
    D/WifiStateMachine(  305): SupplicantStartedState{ what=131131 when=-1ms }
    D/StateMachine(  305): handleMessage: X
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: wpa_driver_nl80211_event_receive->nl_recvmsgs failed: -11
    D/StateMachine(  305): handleMessage: E msg.what=147461
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=147461 when=-1ms }
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=147461 when=-2ms }
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): processMsg: DriverStartedState
    D/WifiStateMachine(  305): DriverStartedState{ what=147461 when=-2ms }
    D/StateMachine(  305): processMsg: SupplicantStartedState
    D/WifiStateMachine(  305): SupplicantStartedState{ what=147461 when=-2ms }
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=147462
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=147462 when=-8ms obj=android.net.wifi.StateChangeResult@4109bdf0 }
    D/WifiStateMachine(  305): setDetailed state, old =SCANNING and new state=IDLE
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=147462 when=-9ms obj=android.net.wifi.StateChangeResult@4109bdf0 }
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=131131
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=131131 when=-4ms }
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=131131 when=-4ms }
    D/StateMachine(  305): processMsg: DriverStartedState
    D/WifiStateMachine(  305): DriverStartedState{ what=131131 when=-4ms }
    D/StateMachine(  305): processMsg: SupplicantStartedState
    D/WifiStateMachine(  305): SupplicantStartedState{ what=131131 when=-4ms }
    D/StateMachine(  305): handleMessage: X
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -2
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: -2
    E/WifiHW  (  305): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
    E/WifiHW  (  305): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
    E/WifiHW  (  305): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
    E/WifiHW  (  305): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
    E/WifiHW  (  305): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
    E/WifiP2pService(  305): P2p socket connection failed
    D/StateMachine(  305): handleMessage: E msg.what=131143
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=131143 when=0 arg1=1 }
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=131143 when=0 arg1=1 }
    D/StateMachine(  305): processMsg: DriverStartedState
    D/WifiStateMachine(  305): DriverStartedState{ what=131143 when=-1ms arg1=1 }
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    I/wpa_supplicant( 1202): nl80211: wpa_driver_nl80211_event_receive->nl_recvmsgs failed: -11
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=147462
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=147462 when=-8ms obj=android.net.wifi.StateChangeResult@410a7cc0 }
    D/WifiStateMachine(  305): setDetailed state, old =IDLE and new state=SCANNING
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=147462 when=-8ms obj=android.net.wifi.StateChangeResult@410a7cc0 }
    D/StateMachine(  305): handleMessage: X
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: send_and_recv->nl_recvmsgs failed: 20
    I/wpa_supplicant( 1202): nl80211: wpa_driver_nl80211_event_receive->nl_recvmsgs failed: -11
    D/StateMachine(  305): handleMessage: E msg.what=147461
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=147461 when=-3ms }
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=147461 when=-3ms }
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): processMsg: DriverStartedState
    D/WifiStateMachine(  305): DriverStartedState{ what=147461 when=-4ms }
    D/StateMachine(  305): processMsg: SupplicantStartedState
    D/WifiStateMachine(  305): SupplicantStartedState{ what=147461 when=-4ms }
    E/wpa_supplicant( 1202): recvfrom(ctrl_iface): Try again
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=147462
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=147462 when=-9ms obj=android.net.wifi.StateChangeResult@410fb000 }
    D/WifiStateMachine(  305): setDetailed state, old =SCANNING and new state=IDLE
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=147462 when=-11ms obj=android.net.wifi.StateChangeResult@410fb000 }
    D/StateMachine(  305): handleMessage: X
    D/StateMachine(  305): handleMessage: E msg.what=131131
    D/StateMachine(  305): processMsg: DisconnectedState
    D/WifiStateMachine(  305): DisconnectedState{ what=131131 when=-3ms }
    D/StateMachine(  305): processMsg: ConnectModeState
    D/WifiStateMachine(  305): ConnectModeState{ what=131131 when=-3ms }
    D/StateMachine(  305): processMsg: DriverStartedState
    D/WifiStateMachine(  305): DriverStartedState{ what=131131 when=-4ms }
    D/StateMachine(  305): processMsg: SupplicantStartedState
    D/WifiStateMachine(  305): SupplicantStartedState{ what=131131 when=-4ms }
    D/StateMachine(  305): handleMessage: X
    
    W/SocketClient(   64): write error (Broken pipe)
    

    Regards,

    Divyesh M

  • Hi Gigi,

    Any Update?

    Regards,
    Divyesh M
  • Hi Divyesh,

    J6 platform is what we support Android with. Please see: omappedia.org/.../6AL.1.1_Release_Notes
    I think this is an integration issue. You can take a look at the above page, and identify what is missing with your integration.

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    I have read the user guide for the devkit release which states that devkit itself doesn't really support wireless for beaglebone target board, which exactly what I'm using. So may be the problem is due to same.

    Anyway, thanks again for the support.

    Regards,
    Divyesh M
  • Hi Divyesh,

    Android support is available via 3rd party. Focal point is Scott Lawson (scott.lawson@intelligraphics.com) .

    Regards,
    Gigi Joseph.