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.

Can't scan any networks with wifi in AM3517 Android Froyo .

Other Parts Discussed in Thread: AM3517

I am planning ro use wifi on AM3517 , the OS is Android FroYo, Now I have downloaded the firmware into wifi module, but when start to scan the network, it could not scan any networks.Then it will unload the driver of wifi from OS.  Is anybody know why? The following message is from the console when I turn on the wifi on seetings.

TIWLAN: driver init
sdioDrv_init
setting SDIO F&I clock Configuration
done setting SDIO F&I clock Configuration
tiwlan_sdio_probe
tiwlan_sdio_probe called
TIWLAN: Found TI/WLAN SDIO controller (vendor 0x104c, device 0x9066, class 0x7)
TI WiLink 1271 SDIO: Driver loaded
wlanDrvIf_Open
wlanDrvIf_Start
TIWLAN: 51.963806: pInitParams->RoamingScanning_2_4G_enable 1
TIWLAN: 52.072570: CHIP VERSION... set 1273 chip top registers
TIWLAN: 52.079589: Working on a 1273 PG 2.0 board.
TIWLAN: 52.084136: Starting to process NVS...
TIWLAN: 52.088287: No Nvs, Setting default MAC address
TIWLAN: 52.093139: pHwInit->uEEPROMCurLen: 1c
TIWLAN: 52.097259: ERROR: If you are not calibating the device, you will soon get errors !!!
TIWLAN: 52.106353: Chip ID is 0x4030111.
TIWLAN: 52.111480: FEM Type 1
TIWLAN: 52.198455: Firmware successfully downloaded.
TIWLAN: 52.203155: FW download OK...
TIWLAN: 52.230010: Firmware successfully downloaded.
TIWLAN: 52.234741: FW download OK...
TIWLAN: 52.238586: Firmware successfully downloaded.
TIWLAN: 52.243286: FW download OK...
TIWLAN: 52.249603: Firmware successfully downloaded.
TIWLAN: 52.254364: FW download OK...
TIWLAN: 52.260009: Firmware successfully downloaded.
TIWLAN: 52.264709: FW download OK...
TIWLAN: 52.269348: Finished downloading firmware.
TIWLAN: 52.273895: Firmware running.
TIWLAN: 52.293457: Firmware successfully downloaded.
TIWLAN: 52.298187: FW download OK...
TIWLAN: 52.302124:
TIWLAN: 52.303985: -----------------------------------------------------
TIWLAN: 52.310455: Driver Version  : WiLink_Driver_6.1.0.0.144
TIWLAN: 52.316040: Firmware Version: Rev 6.1.0.0.335
TIWLAN: 52.320770: Station ID      : 08-00-28-96-86-7E
TIWLAN: 52.325653: -----------------------------------------------------
TIWLAN: 52.332092:
TIWLAN: 52.355041: Interrogate TX/RX parameters


wlanDrvIf_Release
wlanDrvIf_Stop
tiwlan_sdio_remove
TI WiLink 1271 SDIO Driver unloaded
TI WLAN: driver unloaded

  • Can you also paste the relevant portions from the logcat output?

    Something appears to have caused the driver to stop

  • here is the logcat, it's seem that there is not tiwan0. why?

     

    TIWLAN: driver init
    sdioDrv_init
    setting SDIO F&I clock Configuration
    done setting SDIO F&I clock Configuration
    tiwlan_sdio_probe
    tiwlan_sdio_probe called
    TIWLAN: Found TI/WLAN SDIO controller (vendor 0x104c, device 0x9066, class 0x7)
    TI WiLink 1271 SDIO: Driver loaded
    I/ethernet(  866): recvmsg get data
    I/ethernet(  866):  event :16  found
    I/ethernet(  866): the device flag :1002
    I/ethernet(  866): Done parsing
    I/ethernet(  866): poll state :, left:4096
    I/ethernet(  866): Poll events from ethernet devices
    D/Tethering(  866): tiwlan0 is not a tetherable iface, ignoring
    I/EthernetMonitor(  866): get event
    I/EthernetMonitor(  866): go poll events
    I/ethernet(  866): recvmsg get data
    I/ethernet(  866):  event :16  found
    I/ethernet(  866): the device flag :1002
    I/ethernet(  866): Done parsing
    I/ethernet(  866): poll state :, left:4096
    I/ethernet(  866): Poll events from ethernet devices
    I/EthernetMonitor(  866): get event
    I/EthernetMonitor(  866): go poll events
    E/WifiHW  (  866): Unable to open connection to supplicant on "tiwlan0": No such file or directory
    D/WifiService(  866): ACTION_BATTERY_CHANGED pluggedType: 1
    D/wpa_supplicant( 1157): Initializing interface 'tiwlan0' conf '/data/misc/wifi/wpa_supplicant.conf'
     driver 'tiwlan0' ctrl_interface 'N/A' bridge 'N/A'
    D/wpa_swlanDrvIf_Open
    upplicant( 1157): Configuration wlanDrvIf_Start
    file '/data/misc/wifi/wpa_supplicant.conf' -> '/data/misc/wifi/wpa_supplicant.conf'
    D/wpa_supplicant( 1157): Reading configuration file '/data/misc/wifi/wpa_supplicant.conf'
    TIWLAN: 89.849151: pInitParams->RoamingScanning_2_4G_enable 0
    D/wpa_supplicant( 1157): update_TIWLAN: 89.944793: CHIP VERSION... set 1273 chip top registers
    config=1
    D/wpa_supplicant( 1157TIWLAN: 89.954559: Working on a 1273 PG 2.0 board.
    ): ctrl_interface='tiwlan0'
    D/wTIWLAN: 89.959381: Starting to process NVS...
    pa_supplicant( 1157): eapol_versTIWLAN: 89.966186: No Nvs, Setting default MAC address
    ion=1
    D/wpa_supplicant( 1157): TIWLAN: 89.973846: pHwInit->uEEPROMCurLen: 1c
    ap_scan=1
    D/wpa_supplicant( 115TIWLAN: 89.980712: ERROR: If you are not calibating the device, you will soon g
    et errors !!!
    7): fast_reauth=1
    D/wpa_supplicTIWLAN: 89.992095: Chip ID is 0x4030111.
    ant( 1157): Initializing interfaTIWLAN: 89.999206: FEM Type 1
    ce (2) 'tiwlan0'
    I/ethernet(  866): recvmsg get data
    I/ethernet(  866):  event :16  found
    I/ethernet(  866): the device flag :1002
    I/ethernet(  866): Done parsing
    I/ethernet(  866): poll state :, left:4096
    I/ethernet(  866): Poll events from ethernet devices
    I/EthernetMonitor(  866): get event
    I/EthernetMonitor(  866): go poll events
    TIWLAN: 90.100372: Firmware successfully downloaded.
    TIWLAN: 90.105133: FW download OK...
    TIWLAN: 90.127685: Firmware successfully downloaded.
    TIWLAN: 90.132385: FW download OK...
    TIWLAN: 90.136199: Firmware successfully downloaded.
    TIWLAN: 90.140930: FW download OK...
    TIWLAN: 90.148437: Firmware successfully downloaded.
    TIWLAN: 90.153167: FW download OK...
    TIWLAN: 90.158782: Firmware successfully downloaded.
    TIWLAN: 90.163482: FW download OK...
    TIWLAN: 90.168121: Finished downloading firmware.
    TIWLAN: 90.172668: Firmware running.
    TIWLAN: 90.194763: Firmware successfully downloaded.
    TIWLAN: 90.199462: FW download OK...
    TIWLAN: 90.203033:
    TIWLAN: 90.204895: -----------------------------------------------------
    TIWLAN: 90.211364: Driver Version  : WiLink_Driver_6.1.0.0.144
    TIWLAN: 90.216918: Firmware Version: Rev 6.1.0.0.335
    TIWLAN: 90.221618: Station ID      : 08-00-28-7E-F7-41
    TIWLAN: 90.226501: -----------------------------------------------------
    TIWLAN: 90.232940:
    I/ethernet(  866): recvmsg get data
    I/ethernet(  866):  event :16  found
    I/ethernet(  866): the device flag :1043
    I/ethernet(  866): Done parsing
    I/ethernet(  866): poll state :, left:4096
    I/ethernet(  866): Poll events from ethernet devices
    I/ethernet(  866): recvmsg get data
    I/eTIWLAN: 90.259368: Interrogate TX/RX parameters
    thernet(  866):  event :16  found
    I/ethernet(  866): the device flag :1042
    I/ethernet(  866): Done parsing
    I/ethernet(  866): poll state :, left:4096
    I/ethernet(  866): Poll events from ethernet devices
    D/wpa_supplicant( 1157): Interface tiwlan0 set UP - waiting a second for the driver to complete init
    ialization
    I/EthernetMonitor(  866): get event
    I/EthernetMonitor(  866): go poll events
    I/EthernetMonitor(  866): get event
    I/EthernetMonitor(  866): go poll events
    D/wpa_supplicant( 1157): SIOCGIWRANGE: WE(compiled)=22 WE(source)=19 enc_capa=0xf
    D/wpa_supplicant( 1157):   capabilities: key_mgmt 0xf enc 0xf flags 0x0
    D/wpa_supplicant( 1157): WEXT: Operstate: linkmode=1, operstate=5
    D/wpa_supplicant( 1157): wpa_driver_tista_private_send ioctl_cmd = 800508  res = 0
    D/wpa_supplicant( 1157): Macaddr = 08:00:28:7e:f7:41
    D/wpa_supplicant( 1157): wpa_driver_tista_get_mac_addr success
    D/wpa_supplicant( 1157): Own MAC address: 08:00:28:7e:f7:41
    D/wpa_supplicant( 1157): wpa_driver_tista_set_key
    D/wpa_supplicant( 1157): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
    D/wpa_supplicant( 1157): wpa_driver_tista_set_key
    D/wpa_supplicant( 1157): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
    D/wpa_supplicant( 1157): wpa_driver_tista_set_key
    D/wpa_supplicant( 1157): wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
    D/wpa_supplicant( 1157): wpa_driver_tista_set_key
    D/wpa_supplicant( 1157): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
    D/wpa_supplicant( 1157): wpa_driver_tista_set_countermeasures
    D/wpa_supplicant( 1157): wpa_driver_tista_set_drop_unencrypted
    D/wpa_supplicant( 1157): RSN: flushing PMKID list in the driver
    D/wpa_supplicant( 1157): wpa_driver_tista_flush_pmkid
    D/wpa_supplicant( 1157): Setting scan request: 0 sec 100000 usec
    D/wpa_supplicant( 1157): WPS: Build Beacon and Probe Response IEs
    D/wpa_supplicant( 1157): WPS:  * Version
    D/wpa_supplicant( 1157): WPS:  * Wi-Fi Protected Setup State (0)
    D/wpa_supplicant( 1157): WPS:  * Version
    D/wpa_supplicant( 1157): WPS:  * Wi-Fi Protected Setup State (0)
    D/wpa_supplicant( 1157): WPS:  * Response Type (2)
    D/wpa_supplicant( 1157): WPS:  * UUID-E
    I/ethernet(  866): recvmsg get data
    D/wpa_supplicant( 1157): WPS:  * Manufacturer
    D/wpa_supplicant( 1157): WPS:  * Model Name
    I/ethernet(  866):  event :16  found
    D/wpa_supplicant( 1157): WPS:  * Model Number
    D/wpa_supplicant( 1157): WPS:  * Serial Number
    I/ethernet(  866): the device flag :1043
    D/wpa_supplicant( 1157): WPS:  * Primary Device Type
    I/ethernet(  866): Done parsing
    D/wpa_supplicant( 1157): WPS:  * Device Name
    I/ethernet(  866): poll state :, left:4096
    D/wpa_supplicant( 1157): WPS:  * Config Methods (0)
    D/wpa_supplicant( 1157): WPS:  * RF Bands (3)
    I/EthernetMonitor(  866): get event
    I/ethernet(  866): Poll events from ethernet devices
    I/ethernet(  866): recvmsg get data
    I/ethernet(  866):  event :16  found
    I/ethernet(  866): the device flag :1003
    I/ethernet(  866): Done parsing
    I/ethernet(  866): poll state :, left:4096
    I/ethernet(  866): Poll events from ethernet devices
    D/wpa_supplicant( 1157): EAPOL: SUPP_PAE entering state DISCONNECTED
    D/wpa_supplicant( 1157): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
    D/wpa_supplicant( 1157): EAPOL: SUPP_BE entering state INITIALIZE
    D/wpa_supplicant( 1157): EAP: EAP entering state DISABLED
    D/wpa_supplicant( 1157): Added interface tiwlan0
    D/wpa_supplicant( 1157): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
    D/wpa_supplicant( 1157): RTM_NEWLINK, IFLA_IFNAME: Interface 'tiwlan0' added
    D/wpa_supplicant( 1157): RTM_NEWLINK: operstate=0 ifi_flags=0x1043 ([UP][RUNNING])
    D/wpa_supplicant( 1157): RTM_NEWLINK, IFLA_IFNAME: Interface 'tiwlan0' added
    I/EthernetMonitor(  866): go poll events
    I/EthernetMonitor(  866): get event
    I/EthernetMonitor(  866): go poll events
    D/wpa_supplicant( 1157): RTM_NEWLINK: operstate=0 ifi_flags=0x1042 ([RUNNING])
    D/wpa_supplicant( 1157): RTM_NEWLINK, IFLA_IFNAME: Interface 'tiwlan0' added
    D/wpa_supplicant( 1157): Wireless event: cmd=0x8c02 len=164
    D/wpa_supplicant( 1157): RTM_NEWLINK: operstate=0 ifi_flags=0x1043 ([UP][RUNNING])
    D/wpa_supplicant( 1157): RTM_NEWLINK, IFLA_IFNAME: Interface 'tiwlan0' added
    D/wpa_supplicant( 1157): Wireless event: cmd=0x8b06 len=8
    D/wpa_supplicant( 1157): RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    D/wpa_supplicant( 1157): RTM_NEWLINK, IFLA_IFNAME: Interface 'tiwlan0' added
    D/wpa_supplicant( 1157): State: DISCONNECTED -> SCANNING
    I/wpa_supplicant( 1157): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
    D/wpa_supplicant( 1157): Starting AP scan (broadcast SSID)
    D/wpa_supplicant( 1157): Trying to get current scan results first without requesting a new scan to s
    peed up initial association
    D/wpa_supplicant( 1157): Received 0 bytes of scan results (0 BSSes)
    D/wpa_supplicant( 1157): Actual APs number 0
    D/wpa_supplicant( 1157): After merge, APs number 0
    D/wpa_supplicant( 1157): Cached scan results are empty - not posting
    D/wpa_supplicant( 1157): No suitable AP found.
    D/wpa_supplicant( 1157): Setting scan request: 0 sec 0 usec
    D/wpa_supplicant( 1157): Starting AP scan (broadcast SSID)
    D/wpa_supplicant( 1157): wpa_driver_tista_scan
    D/wpa_supplicant( 1157): wpa_driver_tista_private_send ioctl_cmd = 8021501  res = 0
    D/wpa_supplicant( 1157): wpa_driver_tista_scan success
    D/wpa_supplicant( 1157): Scan requested (ret=0) - scan timeout 30 sec
    D/wpa_supplicant( 1157): EAPOL: disable timer tick
    E/WifiHW  (  866): Unable to open connection to supplicant on "tiwlan0": No such file or directory
    D/wpa_supplicant( 1157): RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
    D/wpa_supplicant( 1157): RTM_NEWLINK, IFLA_IFNAME: Interface 'tiwlan0' added
    D/wpa_supplicant( 1157): Wireless event: cmd=0x8b19 len=8
    D/wpa_supplicant( 1157): Received 0 bytes of scan results (0 BSSes)
    D/wpa_supplicant( 1157): Actual APs number 0
    D/wpa_supplicant( 1157): After merge, APs number 0
    D/wpa_supplicant( 1157): New scan results available
    D/wpa_supplicant( 1157): No suitable AP found.
    D/wpa_supplicant( 1157): State: SCANNING -> INACTIVE
    I/wpa_supplicant( 1157): CTRL-EVENT-STATE-CHANGE id=-1 state=1 BSSID=00:00:00:00:00:00
    I/ethernet(  866): recvmsg get data
    I/ethernet(  866):  event :16  found
    I/ethernet(  866): the device flag :1003
    I/ethernet(  866): Done parsing
    I/ethernet(  866): poll state :, left:4096
    I/EthernetMonitor(  866): get event
    I/ethernet(  866): Poll events from ethernet devices
    I/EthernetMonitor(  866): go poll events
    E/WifiHW  (  866): Unable to open connection to supplicant on "tiwlan0": No such file or directory
    E/WifiHW  (  866): Unable to open connection to supplicant on "tiwlan0": No such file or directory
    V/WifiStateTracker(  866): Supplicant died unexpectedly
    D/WifiStateTracker(  866): Reset connections and stopping DHCP
    wlanDrvIf_Release
    D/WifiStateTracker(  866): Disabling interface
    D/wpa_supplicant( 1157): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
    D/wpa_supplicant( 1157): RTM_NEWLINK, IFLA_IFNAME: Interface 'tiwlan0' added
    I/ethernet(  866): recvmsg get data
    I/ethernet(  866):  event :16  found
    I/ethernet(  866): the device flag :1002
    I/ethernet(  866): Done parsing
    I/ethernet(  866): poll state :, left:4096
    I/ethernet(  866): Poll events from ethernet devices
    I/EthernetMonitor(  866): get event
    I/EthernetMonitor(  866): go poll events
    D/NetworkStateTracker(  866): setDetailed state, old =IDLE and new state=DISCONNECTED
    I/wpa_supplicant( 1157): CTRL-EVENT-TERMINATING - signal 15 received
    I/wpa_supplicant( 1157): CTRL-EVENT-TERMINATING - signal 0 received
    D/wpa_supplicant( 1157): Removing interface tiwlan0
    D/wpa_supplicant( 1157): No keys have been configured - skip key clearing
    D/wpa_supplicant( 1157): State: INACTIVE -> DISCONNECTED
    I/wpa_supplicant( 1157): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00:00:00:00:00:00
    D/wpa_supplicant( 1157): wpa_driver_tista_set_operstate: operstate 0 (DORMANT)
    D/wpa_supplicant( 1157): wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
    D/wpa_supplicant( 1157): WEXT: Operstate: linkmode=-1, operstate=5
    D/wpa_supplicant( 1157): EAPOL: External notification - portEnabled=0
    D/wpa_supplicant( 1157): EAPOL: External notification - portValid=0
    D/wpa_supplicant( 1157): wpa_driver_tista_set_drop_unencrypted
    D/wpa_supplicant( 1157): wpa_driver_tista_set_countermeasures
    D/wpa_supplicant( 1157): No keys have been configured - skip key clearing
    D/ConnectivityService(  866): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
    D/wpa_supplicant( 1157): Cancelling scan request
    D/wpa_supplicant( 1157): Cancelling authentication timeout
    D/wpa_supplicant( 1157): WEXT: Operstate: linkmode=0, operstate=6
    D/ConnectivityService(  866): getMobileDataEnabled returning true
    I/EthernetService(  866): setEthState from 2 to 2
    D/WifiStateTracker(  866): Reset connections and stopping DHCP
    I/EthernetStateTracker(  866): reset device eth0
    wlanDrvIf_Stop
    D/WifiStateTracker(  866): Disabling interface
    I/ethernet(  866): recvmsg get data
    I/ethernet(  866):  event :17  found
    I/ethernet(  866): the device flag :1002
    I/ethernet(  866): Done parsing
    I/ethernet(  866): poll state :, left:4096
    I/ethernet(  866): Poll events from ethernet devices
    E/Tethering(  866): attempting to remove unknown iface (tiwlan0), ignoring
    I/ethernet(  866): recvmsg get data
    I/EthernetMonitor(  866): get event
    I/EthernetMonitor(  866): go poll events
    I/ethernet(  866):  event :16  found
    I/ethernet(  866): the device flag :1002
    I/ethernet(  866): Done parsing
    I/ethernet(  866): poll state :, left:4096
    I/ethernet(  866): Poll events from ethernet devices
    I/EthernetMonitor(  866): get event
    I/EthernetMonitor(  866): go poll events
    I/EthernetStateTracker(  866): trigger dhcp for device eth0
    V/ConnectivityService(  866): Attempting to switch to ETH
    D/EthernetStateTracker(  866): DhcpHandler: DHCP request started
    D/Tethering(  866): Tethering got CONNECTIVITY_ACTION
    D/Tethering(  866): MasterInitialState.processMessage what=3
    E/HierarchicalStateMachine(  866): TetherMaster - unhandledMessage: msg.what=3
    tiwlan_sdio_remove
    TI WiLink 1271 SDIO Driver unloaded
    TI WLAN: driver unloaded

  • Perhaps your init.rc is not seup fully for wlan

    Have a look at the init.rc for omap3evm in the TI Android DevKit v2.2 to see how wifi is setup for omap3evm rev G

    here's the direct link for the community version http://gitorious.org/rowboat/vendor-ti-omap3evm/blobs/rowboat-froyo/init.rc