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.

wpa_supplicant throws alignment trap in kernel

Other Parts Discussed in Thread: AM1808

Greetings,

I am working on a custom board based  am1808 with ti wl127 wireless chipset. While I enable wifi from android GUI  it shows  alignment trap error from  wpa_supplicant.

Is this error is expected? How do I solve this error?

Please see the logs

init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
TI WiLink 1271 SDIO: Driver loaded
/ # eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=1:00, id=7c0f1)
PHY: 1:00 - Link is Up - 100/Full
warning: `zygote' uses 32-bit capabilities (legacy support in use)
NET: Registered protocol family 10
TIWLAN: driver init
TIWLAN: 1141.656472:
Zoom2 use external board configuration as well
wifi_probe: got wlan irq 181
wifi_probe: got wlan irq trigger falling flag
am1808_wifi_set_carddetect(0)
am1808_wifi_power(0)
pInitParams->RoamingScanning_2_4G_enable 0
am1808_wifi_power(1)
am1808_wifi_power(0)
am1808_wifi_power(1)
am1808_wifi_set_carddetect(1)
mmc0: card claims to support voltages below the defined range. These will be ignored.
mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
mmc0: new SDIO card at address 0001
TIWLAN: Found TI/WLAN SDIO controller (vendor 0x97, device 0x4076, class 0x0)
TIWLAN: 1143.835443: CHIP VERSION... set 1273 chip top registers
TIWLAN: 1143.843687: Working on a 1273 PG 2.0 board.
TIWLAN: 1143.848585: Starting to process NVS...
TIWLAN: 1143.854535: No Nvs, Setting default MAC address
TIWLAN: 1143.859679: pHwInit->uEEPROMCurLen: 1c
TIWLAN: 1143.864137: ERROR: If you are not calibating the device, you will soon get errors !!!
TIWLAN: 1143.873605: Chip ID is 0x4030111.
TIWLAN: 1143.879636: FEM Type 1
TIWLAN: 1143.935792: Firmware successfully downloaded.
TIWLAN: 1143.940758: FW download OK...
TIWLAN: 1143.958208: Firmware successfully downloaded.
TIWLAN: 1143.963290: FW download OK...
TIWLAN: 1143.967601: Firmware successfully downloaded.
TIWLAN: 1143.973961: FW download OK...
TIWLAN: 1143.982154: Firmware successfully downloaded.
TIWLAN: 1143.987119: FW download OK...
TIWLAN: 1143.993314: Firmware successfully downloaded.
TIWLAN: 1143.998275: FW download OK...
TIWLAN: 1144.004753: Finished downloading firmware.
TIWLAN: 1144.009644: Firmware running.
TIWLAN: 1144.033537: Firmware successfully downloaded.
TIWLAN: 1144.038497: FW download OK...
TIWLAN: 1144.049102:
TIWLAN: 1144.052131: --------------------------------------------------------------------
TIWLAN: 1144.060157: Driver Version  : WiLink_Driver_6.1.0.0.144
TIWLAN: 1144.077313: Firmware Version: Rev 6.1.0.1.349
TIWLAN: 1144.095598: Station ID      : 08-00-28-12-34-56
TIWLAN: 1144.101216: --------------------------------------------------------------------
TIWLAN: 1144.109670: Interrogate TX/RX parameters

ADDRCONF(NETDEV_UP): tiwlan0: link is not ready
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d9754 Instr=0xe5053004 Address=0xc75397da FSR 0x801
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d95ac Instr=0xe5931014 Address=0xc75397da FSR 0x001
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d9754 Instr=0xe5053004 Address=0xc75397da FSR 0x801
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d95ac Instr=0xe5931014 Address=0xc75397da FSR 0x001
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d9754 Instr=0xe5053004 Address=0xc75393ba FSR 0x801
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d95ac Instr=0xe5931014 Address=0xc75393ba FSR 0x001
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d9754 Instr=0xe5053004 Address=0xc33ea45f FSR 0x801
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d95ac Instr=0xe5931014 Address=0xc33ea45f FSR 0x001
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d9754 Instr=0xe5053004 Address=0xc33ea45f FSR 0x801
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d95ac Instr=0xe5931014 Address=0xc33ea45f FSR 0x001
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d9754 Instr=0xe5053004 Address=0xc33ea45f FSR 0x801
Alignment trap in kernel: wpa_supplicant (1106) PC=0xbf0d95ac Instr=0xe5931014 Address=0xc33ea45f FSR 0x001


Regards

Krish

  • Krish,

    Can you tell us where you obtained the WLAN driver? The WiLink driver you are using is considered as legacy driver. The DevKit currently supports the open source NLCP mac80211 drivers.

    You may also wish to ask at the WLAN e2e forum:
    http://e2e.ti.com/support/low_power_rf/f/307.aspx

  • Hi Vishveshwar,

    I am using WG7310-2A WLAN Module from JORGIN (and they have provided the driver). This is module is based on TI WL1270 chipset.

    Driver is able to load the firmware and  wpa_supplicant is able to scan for APs but not able to list any APs. Verified access point configuration using another wi-fi enabled phone.

    Any pointers?

    Please see the logcat messages.

    I/ethernet(am1808_wifi_power(1)
      811): recvmsg get data
    I/ethernet(  811):  event :16  found
    I/ethernet(  811): the device flag :1002
    I/ethernet(  811): Done parsing
    I/ethernet(  811): poll state :, left:4096
    I/EthernetMonitor(  811): get event
    D/wpa_supplicant( 1216): RTM_NEWLINK: operstate=0 iam1808_wifi_power(0)
    fi_flags=0x1003 am1808_wifi_power(1)
    ([UP])
    D/wpa_supplicant( 1216): RTM_NEWLINK, IFLA_IFNAME: Interface 'tiwlan0' added
    D/wpa_supplicant( 1216): Wireless event: cmd=0x8c02 len=164
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd START
    D/wpa_supplicant( 1216): Start command
    I/ethernet(  811): Poll events from ethernet devices
    I/ethernet(  811): recvmsg get data
    I/ethernet(  811):  event :16  found
    I/ethernet(  811): the device flag :1003
    I/ethernet(  811): Done parsing
    I/ethernet(  811): poll state :, left:4096
    I/ethernet(  811): Poll events from ethernet devices
    I/EthernetMonitor(  811): go poll events
    I/EthernetMonitor(  811): get event
    I/EthernetMonitor(  811): go poll events
    am1808_wifi_set_carddetect(1)
    mmc0: card claims to support voltages below the defined range. These will be ignored.
    mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    mmc0: new SDIO card at address 0001
    TIWLAN: Found TI/WLAN SDIO controller (vendor 0x97, device 0x4076, class 0x0)
    TIWLAN: 1453.354014: CHIP VERSION... set 1273 chip top registers
    TIWLAN: 1453.361946: Working on a 1273 PG 2.0 board.
    TIWLAN: 1453.370995: Starting to process NVS...
    TIWLAN: 1453.375535: No Nvs, Setting default MAC address
    TIWLAN: 1453.380662: pHwInit->uEEPROMCurLen: 1c
    TIWLAN: 1453.385077: ERROR: If you are not calibating the device, you will soon get errors !!!
    TIWLAN: 1453.395835: Chip ID is 0x4030111.
    TIWLAN: 1453.401815: FEM Type 1
    TIWLAN: 1453.457853: Firmware successfully downloaded.
    TIWLAN: 1453.462921: FW download OK...
    TIWLAN: 1453.478961: Firmware successfully downloaded.
    TIWLAN: 1453.485322: FW download OK...
    TIWLAN: 1453.489681: Firmware successfully downloaded.
    TIWLAN: 1453.494740: FW download OK...
    TIWLAN: 1453.503527: Firmware successfully downloaded.
    TIWLAN: 1453.508492: FW download OK...
    TIWLAN: 1453.515980: Firmware successfully downloaded.
    TIWLAN: 1453.520944: FW download OK...
    TIWLAN: 1453.526080: Finished downloading firmware.
    TIWLAN: 1453.530951: Firmware running.
    TIWLAN: 1453.553589: Firmware successfully downloaded.
    TIWLAN: 1453.558549: FW download OK...
    TIWLAN: 1453.562989:
    TIWLAN: 1453.565069: --------------------------------------------------------------------
    D/wpa_supplicant( 1216): wpa_driTIWLAN: 1453.574971: Driver Version  : WiLink_Driver_6.1.0.0.144
    ver_tista_privatTIWLAN: 1453.582062: Firmware Version: Rev 6.1.0.1.349
    e_send ioctl_cmdTIWLAN: 1453.588456: Station ID      : 08-00-28-12-34-56
     = 8000001  res TIWLAN: 1453.594966: --------------------------------------------------------------------
    = 0
    TIWLAN: 1453.605654:
    TIWLAN: 1453.642867: Interrogate TX/RX parameters
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_start success
    I/wpa_supplicant( 1216): CTRL-EVENT-DRIVER-STATE STARTED
    V/WifiMonitor(  811): Event [CTRL-EVENT-DRIVER-STATE STARTED]
    D/wpa_supplicant( 1216): wpa_driver_tisAlignment trap in kernel: wpa_supplicant (1216) PC=0xbf1c9754 Instr=0xe5053004 Address=0xc30d2b7a FSR 0x801
    ta_driver_cmd RSSI-APPROX
    D/wpaAlignment trap in kernel: wpa_supplicant (1216) PC=0xbf1c95ac Instr=0xe5931014 Address=0xc30d2b7a FSR 0x001
    _supplicant( 1216): rssi-approx command
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd LINKSPEED
    D/wpa_supplicant( 1216): Link Speed command
    D/wpa_supplicant( 1216): buf LinkSpeed 0
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd MACADDR
    D/wpa_supplicant( 1216): wpa_driver_tista_private_send ioctl_cmd = 800508  res = 0Alignment trap in kernel: wpa_supplicant (1216) PC=0xbf1c9754 Instr=0xe5051

    D/wpa_supplicant( 1216): Macaddr = 08:00:28:12:34:56
    D/wpa_supplicant( 1216): wpa_driver_tista_get_mac_addr sAlignment trap in kernel: wpa_supplicant (1216) PC=0xbf1c95ac Instr=0xe5931014 Address=0xc30d2a9a FS1
    uccess
    D/wpa_supplicant( 1216): Macaddr command
    D/wpa_supplicant( 1216): buf Macaddr = 08:00:28:12:34:56
    V/WifiStateTracker( Alignment trap in kernel: wpa_supplicant (1216) PC=0xbf1c9754 Instr=0xe5053004 Address=0xc4a4275f FSR 0x801
     811): Connection to supplicant established, state=SCANNING
    D/NetworkStateTracker(  811): setDeAlignment trap in kernel: wpa_supplicant (1216) PC=0xbf1c95ac Instr=0xe5931014 Address=0xc4a4275f FSR 0x001
    tailed state, old =DISCONNECTED and new state=SCANNING
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd RXFILTER-ADD 0
    D/wpa_supplicant( 1216): Rx Data Filter Add [0] comAlignment trap in kernel: wpa_supplicant (1216) PC=0xbf1c9754 Instr=0xe5053004 Address=0xc4a4275f FSR 0x81
    mand
    D/wpa_supplicant( 1216): filter type=0
    D/wpa_supplicant( Alignment trap in kernel: wpa_supplicant (1216) PC=0xbf1c95ac Instr=0xe5931014 Address=0xc4a4275f FSR 0x001
    1216): wpa_driver_tista_private_send ioctl_cmd = 800508  res = 0
    D/wpa_supplicant( 1216): Macaddr = 08:00:28:12:34:56
    D/wpa_supplicant( 1216): wpa_driver_tistAlignment trap in kernel: wpa_supplicant (1216) PC=0xbf1c9754 Instr=0xe5053004 Address=0xc4a4275f FSR 0x801
    a_get_mac_addr success
    D/wpa_supplicant( 1216): Add RX data filter
    D/wpa_supplAlignment trap in kernel: wpa_supplicant (1216) PC=0xbf1c95ac Instr=0xe5931014 Address=0xc4a4275f FSR 0x001
    icant( 1216): wpa_driver_tista_private_send ioctl_cmd = 8000305  res = 0
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_rx_data_filter success
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd RXFILTER-ADD 1
    D/wpa_supplicant( 1216): Rx Data Filter Add [1] command
    D/wpa_supplicant( 1216): filter type=1
    D/wpa_supplicant( 1216): Add RX data filter
    D/wpa_supplicant( 1216): wpa_driver_tista_private_send ioctl_cmd = 8000305  res = 0
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_rx_data_filter success
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd RXFILTER-ADD 3
    D/wpa_supplicant( 1216): Rx Data Filter Add [3] command
    D/wpa_supplicant( 1216): filter type=3
    D/wpa_supplicant( 1216): Add RX data filter
    D/wpa_supplicant( 1216): wpa_driver_tista_private_send ioctl_cmd = 8000305  res = 0
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_rx_data_filter success
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd RXFILTER-START
    D/wpa_supplicant( 1216): Rx Data Filter Start command
    D/wpa_supplicant( 1216): wpa_driver_tista_private_send ioctl_cmd = 8800304  res = 0
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_enable_rx_data_filter success
    D/dalvikvm(  811): GC_FOR_MALLOC freed 10222 objects / 567544 bytes in 215ms
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd BTCOEXSCAN-STOP
    D/wpa_supplicant( 1216): Unsupported command
    V/WifiStateTracker(  811): Changing supplicant state: SCANNING ==> SCANNING
    D/ConnectivityService(  811): Dropping ConnectivityChange for WIFI: DISCONNECTED/SCANNING
    D/wpa_supplicant( 1216): Scan timeout - try to get results
    D/wpa_supplicant( 1216): Received 0 bytes of scan results (0 BSSes)
    D/wpa_supplicant( 1216): Actual APs number 0
    D/wpa_supplicant( 1216): After merge, APs number 0
    D/wpa_supplicant( 1216): New scan results available
    D/wpa_supplicant( 1216): No suitable AP found.
    D/wpa_supplicant( 1216): State: SCANNING -> INACTIVE
    I/wpa_supplicant( 1216): CTRL-EVENT-STATE-CHANGE id=-1 state=1 BSSID=00:00:00:00:00:00
    D/wpa_supplicant( 1216): ap_scan = 1
    V/WifiMonitor(  811): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=1 BSSID=00:00:00:00:00:00]
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd SCAN-PASSIVE
    D/wpa_supplicant( 1216): Scan Passive command
    V/WifiStateTracker(  811): Changing supplicant state: SCANNING ==> INACTIVE
    D/NetworkStateTracker(  811): setDetailed state, old =SCANNING and new state=IDLE
    D/ConnectivityService(  811): Dropping ConnectivityChange for WIFI: DISCONNECTED/IDLE
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd RSSI-APPROX
    D/wpa_supplicant( 1216): rssi-approx command
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd LINKSPEED
    D/wpa_supplicant( 1216): Link Speed command
    D/wpa_supplicant( 1216): buf LinkSpeed 0
    D/wpa_supplicant( 1216): Setting scan request: 0 sec 0 usec
    D/wpa_supplicant( 1216): State: INACTIVE -> SCANNING
    I/wpa_supplicant( 1216): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
    D/wpa_supplicant( 1216): Starting AP scan (broadcast SSID)
    D/wpa_supplicant( 1216): wpa_driver_tista_scan
    D/wpa_supplicant( 1216): wpa_driver_tista_private_send ioctl_cmd = 8021501  res = 0
    D/wpa_supplicant( 1216): wpa_driver_tista_scan success
    D/wpa_supplicant( 1216): Scan requested (ret=0) - scan timeout 30 sec
    V/WifiMonitor(  811): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00]
    V/WifiStateTracker(  811): Changing supplicant state: INACTIVE ==> SCANNING
    D/NetworkStateTracker(  811): setDetailed state, old =IDLE and new state=SCANNING
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd RSSI-APPROX
    D/wpa_supplicant( 1216): rssi-approx command
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd LINKSPEED
    D/wpa_supplicant( 1216): Link Speed command
    D/wpa_supplicant( 1216): buf LinkSpeed 0
    D/ConnectivityService(  811): Dropping ConnectivityChange for WIFI: DISCONNECTED/SCANNING
    D/wpa_supplicant( 1216): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
    D/wpa_supplicant( 1216): RTM_NEWLINK, IFLA_IFNAME: Interface 'tiwlan0' added
    D/wpa_supplicant( 1216): Wireless event: cmd=0x8b19 len=8
    D/wpa_supplicant( 1216): Received 0 bytes of scan results (0 BSSes)
    D/wpa_supplicant( 1216): Actual APs number 0
    D/wpa_supplicant( 1216): After merge, APs number 0
    D/wpa_supplicant( 1216): New scan results available
    I/ethernet(  811): recvmsg get data
    I/ethernet(  811):  event :16  found
    I/ethernet(  811): the device flag :1002
    I/ethernet(  811): Done parsing
    I/ethernet(  811): poll state :, left:4096
    I/ethernet(  811): Poll events from ethernet devices
    D/wpa_supplicant( 1216): No suitable AP found.
    D/wpa_supplicant( 1216): State: SCANNING -> INACTIVE
    I/EthernetMonitor(  811): get event
    I/EthernetMonitor(  811): go poll events
    I/wpa_supplicant( 1216): CTRL-EVENT-STATE-CHANGE id=-1 state=1 BSSID=00:00:00:00:00:00
    D/wpa_supplicant( 1216): ap_scan = 1
    V/WifiMonitor(  811): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=1 BSSID=00:00:00:00:00:00]
    V/WifiStateTracker(  811): Changing supplicant state: SCANNING ==> INACTIVE
    D/NetworkStateTracker(  811): setDetailed state, old =SCANNING and new state=IDLE
    D/ConnectivityService(  811): Dropping ConnectivityChange for WIFI: DISCONNECTED/IDLE
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd RSSI-APPROX
    D/wpa_supplicant( 1216): rssi-approx command
    D/wpa_supplicant( 1216): wpa_driver_tista_driver_cmd LINKSPEED
    D/wpa_supplicant( 1216): Link Speed command
    D/wpa_supplicant( 1216): buf LinkSpeed 0

    /system/etc/wifi # killall logcat
    [1]+  Terminated                 logcat


    thanks

    Krish

  • Hi ,

    Some updates on this issue. I am able to scan and list APs using CLI . But still  not able to list from   GUI.

    Logs  ( command line scanning)

    -------------------------------------------

    /system/bin # lsmodNET: Registered protocol family 10

    ipv6 233289 10 - Live 0xbf008000
    sdio 5463 0 - Live 0xbf000000
    /system/bin # cd /system/bin
    /system/bin # insmod  ../etc/wifi/tiwlan_drv.ko
    TIWLAN: driver init
    TIWLAN: 1142.376514:
    Zoom2 use external board configuration as well
    wifi_probe: got wlan irq 181
    wifi_probe: got wlan irq trigger falling flag
    am1808_wifi_set_carddetect(0)
    am1808_wifi_power(0)
    /system/bin # ./wlan_loader
    Warning: Error in reading init_file tiwlan.ini - Using defaults
    Set property wlan.driver.status = ok - Ok
    /system/bin # ./wlan_loader  ../etc/wifi/tiwlan.ini
    Warning: Error in reading init_file tiwlan.ini - Using defaults
    ERROR - IPC_STA_Private_Send - error sending Wext private IOCTL to STA driver (ioctl_cmd = 8000000,  res = -1, errno = 19)
    Wlan_loader: Error sending init command (DRIVER_INIT_PARAM) to driver
    Set property wlan.driver.status = failed - Fail
    /system/bin # ./wlan_loader  ../etc/wifi/tiwlan.ini
    Warning: Error in reading init_file tiwlan.ini - Using defaults
    ERROR - IPC_STA_Private_Send - error sending Wext private IOCTL to STA driver (ioctl_cmd = 8000000,  res = -1, errno = 19)
    Wlan_loader: Error sending init command (DRIVER_INIT_PARAM) to driver
    Set property wlan.driver.status = failed - Ok
    /system/bin # ./wpa_supplicant -Dtiwlan0 -itiwlan0 -c/system/etc/wifi/wpa_suppli
    cant.conf -C/var/run/wpa_supplicant
    pInitParams->RoamingScanning_2_4G_enable 0
    TIWLAN: 1172.079151:  EvHandlerSendEvent 2  
    TIWLAN: 1172.084693:  EvHandlerSendEvent 2 to OS
    TIWLAN: 1172.089205: EvHandlerSendEvent Matching OS Registered event found at EvType = 2,ModuleIndex = 0  
    am1808_wifi_power(1)
    am1808_wifi_power(0)
    am1808_wifi_power(1)
    am1808_wifi_set_carddetect(1)
    mmc0: card claims to support voltages below the defined range. These will be ignored.
    mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    mmc0: new SDIO card at address 0001
    TIWLAN: Found TI/WLAN SDIO controller (vendor 0x97, device 0x4076, class 0x0)
    TIWLAN: 1172.466564: CHIP VERSION... set 1273 chip top registers
    TIWLAN: 1172.476089: Working on a 1273 PG 2.0 board.
    TIWLAN: 1172.480986: Starting to process NVS...
    TIWLAN: 1172.485461: No Nvs, Setting default MAC address
    TIWLAN: 1172.490586: pHwInit->uEEPROMCurLen: 1c
    TIWLAN: 1172.494979: ERROR: If you are not calibating the device, you will soon get errors !!!
    TIWLAN: 1172.505719: Chip ID is 0x4030111.
    TIWLAN: 1172.511731: FEM Type 1
    TIWLAN: 1172.568901: Firmware successfully downloaded.
    TIWLAN: 1172.573983: FW download OK...
    TIWLAN: 1172.590076: Firmware successfully downloaded.
    TIWLAN: 1172.596439: FW download OK...
    TIWLAN: 1172.600779: Firmware successfully downloaded.
    TIWLAN: 1172.605853: FW download OK...
    TIWLAN: 1172.614033: Firmware successfully downloaded.
    TIWLAN: 1172.618996: FW download OK...
    TIWLAN: 1172.626523: Firmware successfully downloaded.
    TIWLAN: 1172.631486: FW download OK...
    TIWLAN: 1172.636663: Finished downloading firmware.
    TIWLAN: 1172.641562: Firmware running.
    TIWLAN: 1172.663282: Firmware successfully downloaded.
    TIWLAN: 1172.668246: FW download OK...
    TIWLAN: 1172.681634:
    TIWLAN: 1172.693069: --------------------------------------------------------------------
    TIWLAN: 1172.701098: Driver Version  : WiLink_Driver_6.1.0.0.144
    TIWLAN: 1172.709881: Firmware Version: Rev 6.1.0.1.349
    TIWLAN: 1172.723103: Station ID      : 08-00-28-12-34-56
    TIWLAN: 1172.728237: --------------------------------------------------------------------
    TIWLAN: 1172.742469:
    TIWLAN: 1172.746859: Interrogate TX/RX parameters
    ADDRCONF(NETDEV_UP): tiwlan0: link is not ready
    Alignment trap in kernel: wpa_supplicant (1118) PC=0xbf0d9754 Instr=0xe5053004 Address=0xc691901a FSR 0x801
    Alignment trap in kernel: wpa_supplicant (1118) PC=0xbf0d95ac Instr=0xe5931014 Address=0xc691901a FSR 0x001
    mkdir[ctrl_interface]: No such file or directory
    am1808_wifi_set_carddetect(0)
    mmc0: card 0001 removed
    am1808_wifi_power(0)
    /system/bin # ifconfig tiwlan0 up
    am1808_wifi_power(1)
    am1808_wifi_power(0)
    am1808_wifi_power(1)
    am1808_wifi_set_carddetect(1)
    mmc0: card claims to support voltages below the defined range. These will be ignored.
    mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    mmc0: new SDIO card at address 0001
    TIWLAN: Found TI/WLAN SDIO controller (vendor 0x97, device 0x4076, class 0x0)
    TIWLAN: 1183.992513: CHIP VERSION... set 1273 chip top registers
    TIWLAN: 1184.002327: Working on a 1273 PG 2.0 board.
    TIWLAN: 1184.008458: Starting to process NVS...
    TIWLAN: 1184.012811: No Nvs, Setting default MAC address
    TIWLAN: 1184.018906: pHwInit->uEEPROMCurLen: 1c
    TIWLAN: 1184.024677: ERROR: If you are not calibating the device, you will soon get errors !!!
    TIWLAN: 1184.034213: Chip ID is 0x4030111.
    TIWLAN: 1184.040230: FEM Type 1
    TIWLAN: 1184.095812: Firmware successfully downloaded.
    TIWLAN: 1184.100775: FW download OK...
    TIWLAN: 1184.117910: Firmware successfully downloaded.
    TIWLAN: 1184.123089: FW download OK...
    TIWLAN: 1184.127381: Firmware successfully downloaded.
    TIWLAN: 1184.132339: FW download OK...
    TIWLAN: 1184.140680: Firmware successfully downloaded.
    TIWLAN: 1184.147766: FW download OK...
    TIWLAN: 1184.154025: Firmware successfully downloaded.
    TIWLAN: 1184.158989: FW download OK...
    TIWLAN: 1184.164189: Finished downloading firmware.
    TIWLAN: 1184.169085: Firmware running.
    TIWLAN: 1184.189299: Firmware successfully downloaded.
    TIWLAN: 1184.194351: FW download OK...
    ADDRCONF(NETDEV_UP): tiwlan0: link is not ready
    TIWLAN: 1184.205728:
    TIWLAN: 1184.207804: --------------------------------------------------------------------
    /system/bin # TIWLAN: 1184.217580: Driver Version  : WiLink_Driver_6.1.0.0.144
    TIWLAN: 1184.224498: Firmware Version: Rev 6.1.0.1.349
    TIWLAN: 1184.230050: Station ID      : 08-00-28-12-34-56
    TIWLAN: 1184.236655: --------------------------------------------------------------------
    TIWLAN: 1184.244795:
    TIWLAN: 1184.281670: Interrogate TX/RX parameters

    /system/bin # ./wlan_cu -b
    user_main, start
    \> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
    a
    .../scAn> Start, sTop, Wextstart, configApp/, configpEriodic/, configPolicy/
    s
    Application scan started
    TIWLAN: 1196.850600:  EvHandlerSendEvent 5  
    TIWLAN: 1196.854789:  EvHandlerSendEvent 5 to OS
    TIWLAN: 1196.859296: EvHandlerSendEvent Matching OS Registered event found at EvType = 5,ModuleIndex = 0  
    /a^H
    **Error: '/'**
    /
    \> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
    c
    .../Connection> Bssid_list, Connect, Disassociate, Status, Full_bssid_list
    b
    BssId List: Num=12
             MAC        Privacy Rssi  Mode    Channel    SSID
     b8.be.bf.68.ab.23     1    -82  Infra      1        Nomad
     b8.be.bf.b6.ca.03     1    -85  Infra      1        Nomad
     b8.be.bf.68.ab.25     1    -78  Infra      1        ****
     b8.be.bf.b6.ca.05     1    -85  Infra      1        ****
     b8.be.bf.b6.ca.00     1    -87  Infra      1        ****
     b8.be.bf.68.ab.24     1    -78  Infra      1        ****
     b8.be.bf.b6.ca.04     1    -87  Infra      1        ****
     b8.be.bf.68.fb.a3     1    -79  Infra     11        Nomad
     00.1e.e5.7f.26.c9     1    -78  Infra     11        ****
     b8.be.bf.68.fb.a0     1    -82  Infra     11        ****
     b8.be.bf.68.fb.a4     1    -81  Infra     11        ****
     34.08.04.db.c0.76     0    -45  Infra      6        dlink

    -------------------------------------------------------

    1)  init.rc  file


    on init

    sysclktz 0

    loglevel 3

    # setup the global environment
        export PATH /bin:/sbin:/usr/bin:/usr/sbin:/system/sbin:/system/bin:/system/xbin
        export LD_LIBRARY_PATH /system/lib
        export ANDROID_BOOTLOGO 1
        export ANDROID_ROOT /system
        export ANDROID_ASSETS /system/app
        export ANDROID_DATA /data
        export EXTERNAL_STORAGE /mnt/sdcard
        export ASEC_MOUNTPOINT /mnt/asec
        export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/android.supl.jar

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

    # create mountpoints
        mkdir /mnt 0775 root system
        mkdir /mnt/sdcard 0000 system system

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

    # Backwards Compat - XXX: Going away in G*
        symlink /mnt/sdcard /sdcard

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

        # Directory for putting things only root should see.
        mkdir /mnt/secure 0700 root root

        # 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

    ##    mount rootfs rootfs / ro remount

        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

    # Bump up the cpu speed to 456MHz
        write /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 456000

    # 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 0777 /dev/cpuctl/tasks
        write /dev/cpuctl/cpu.shares 1024

        mkdir /dev/cpuctl/fg_boost
        chown system system /dev/cpuctl/fg_boost/tasks
        chmod 0777 /dev/cpuctl/fg_boost/tasks
        write /dev/cpuctl/fg_boost/cpu.shares 1024

        mkdir /dev/cpuctl/bg_non_interactive
        chown system system /dev/cpuctl/bg_non_interactive/tasks
        chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
        # 5.0 %
        write /dev/cpuctl/bg_non_interactive/cpu.shares 52
        write /dev/cpuctl/bg_non_interactive/cpu.shares 52

    # mount mtd partitions
        # Mount /system rw first to give the filesystem a chance to save a checkpoint
        mount jffs2 mtd@system /system
        mount jffs2 mtd@system /system ro remount

        # We chown/chmod /data again so because mount is run as root + defaults
        mount yaffs2 /dev/block/mtdblock5 /data nosuid nodev
        chown system system /data
        chmod 0771 /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
        chown root log /data/dontpanic
        chmod 0750 /data/dontpanic

        # 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

        # Same reason as /data above
        mount yaffs2 /dev/block/mtdblock6 /cache nosuid nodev
        chown system cache /cache
        chmod 0770 /cache

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

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

        #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

    # change permissions for Camera
        chmod 0777 /dev/video0
        chmod 0777 /dev/video3

    # change permissions for Overlay
        chmod 0777 /dev/video1
        chmod 0777 /dev/video2
        chmod 0777 /dev/omap-resizer

    # create basic filesystem structure
        mkdir /data/misc 01771 system misc
        mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
        mkdir /data/misc/bluetooth 0770 system system
        mkdir /data/misc/keystore 0700 keystore keystore
        mkdir /data/misc/vpn 0770 system system
        mkdir /data/misc/systemkeys 0700 system system
        mkdir /data/misc/vpn/profiles 0770 system system
        # give system access to wpa_supplicant.conf for backup and restore
        
        mkdir /data/misc/wifi 0770 wifi wifi

    #START-  WiFi
            chmod 0666 /system/etc/wifi/wpa_supplicant.conf          
            chmod 0777 /system/etc/wifi/wpa_supplicant               
            chmod 0777 /system/etc/wifi/wlan_loader                  
            chmod 0777 /system/etc/wifi/wlan_cu            

            chown wifi wifi /data/misc/wifi                         
            chown wifi wifi /data/misc/wifi/wpa_supplicant.conf     
            mkdir /data/misc/wifi/sockets 0770 wifi wifi            
        
        chmod 0777 /system/etc/dhcpcd/dhcpcd.conf        
        chmod 0777 /system/etc/dhcpcd/dhcpcd-hooks        
        chmod 0777 /system/etc/dhcpcd/dhcpcd-run-hooks        
    # end-   WiFi

        chmod 0770 /data/misc/wifi
        mkdir /data/local 0771 shell shell
        mkdir /data/local/tmp 0771 shell shell
        mkdir /data/data 0771 system system
        mkdir /data/app-private 0771 system system
        mkdir /data/app 0771 system system
        mkdir /data/property 0700 root root
        mkdir /data/misc/dhcp 0770 dhcp dhcp
        chown dhcp dhcp /data/misc/dhcp

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

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

        # double check the perms, in case lost+found already exists, and set owner
        chown root root /data/lost+found
        chmod 0770 /data/lost+found
        chown root root /cache/lost+found
        chmod 0770 /cache/lost+found

    #    mknod -m 0666 /dev/printer c 253 0
    #    /bin/busybox run-parts /system/etc/init.d
    #    mknod /dev/printer c 253 0 1000
    #    chmod 0660 /dev/printer
        
    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

    # No battery hardware present
        setprop hw.nobattery true
        setprop hw.nophone true

    # Disable powermanagement
        setprop hw.nopm    true


    # Define the oom_adj values for the classes of processes that can be
    # killed by the kernel.  These are used in ActivityManagerService.
        setprop ro.FOREGROUND_APP_ADJ 0
        setprop ro.VISIBLE_APP_ADJ 1
        setprop ro.SECONDARY_SERVER_ADJ 2
        setprop ro.BACKUP_APP_ADJ 2
        setprop ro.HOME_APP_ADJ 4
        setprop ro.HIDDEN_APP_MIN_ADJ 7
        setprop ro.CONTENT_PROVIDER_ADJ 14
        setprop ro.EMPTY_APP_ADJ 15

    # Define the memory thresholds at which the above process classes will
    # be killed.  These numbers are in pages (4k).
        setprop ro.FOREGROUND_APP_MEM 1536
        setprop ro.VISIBLE_APP_MEM 2048
        setprop ro.SECONDARY_SERVER_MEM 4096
        setprop ro.BACKUP_APP_MEM 4096
        setprop ro.HOME_APP_MEM 4096
        setprop ro.HIDDEN_APP_MEM 5120
        setprop ro.CONTENT_PROVIDER_MEM 5632
        setprop ro.EMPTY_APP_MEM 6144

    # Write value must be consistent with the above properties.
    # Note that the driver only supports 6 slots, so we have HOME_APP at the
    # same memory level as services.
        write /sys/module/lowmemorykiller/parameters/adj 0,1,2,7,14,15

        write /proc/sys/vm/overcommit_memory 1
        write /proc/sys/vm/min_free_order_shift 4
        write /sys/module/lowmemorykiller/parameters/minfree 1536,2048,4096,5120,5632,6144

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

        # 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 radio system /sys/power/state
        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/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    4095,87380,110208,4096,16384,110208
        setprop net.tcp.buffersize.umts    4094,87380,110208,4096,16384,110208
        setprop net.tcp.buffersize.edge    4093,26280,35040,4096,16384,35040
        setprop net.tcp.buffersize.gprs    4092,8760,11680,4096,8760,11680
        setprop net.dns1 8.8.8.8
        setprop net.dns2 8.8.4.4

    # adb over TCP
        setprop service.adb.tcp.port 5555

    #mount usbfs
        mount usbfs none /proc/bus/usb -o devmode=0666


        class_start default

    ## Daemon processes to be run by init.
    ##
    #service console /system/bin/sh
    service console /bin/sh
        console


    # adbd is controlled by the persist.service.adb.enable system property
    service adbd /sbin/adbd
        disabled

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

    on property:persist.service.adb.enable=1
        start adbd

    on property:persist.service.adb.enable=0
        stop adbd

    service servicemanager /system/bin/servicemanager
        user system
        critical
        onrestart restart zygote
        onrestart restart media

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

    service netd /system/bin/netd
        socket netd stream 0660 root system

    service debuggerd /system/bin/debuggerd

    service ril-daemon /system/bin/rild
        socket rild stream 660 root radio
        socket rild-debug stream 660 radio system
        user root
        group radio cache inet misc audio

    service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
        socket zygote stream 666
        onrestart write /sys/android_power/request_state wake
        onrestart write /sys/power/state on
        onrestart restart media

    service media /system/bin/mediaserver
        user media
        group system audio camera graphics inet net_bt net_bt_admin net_raw sdcard_rw
        ioprio rt 4

    service bootanim /system/bin/bootanimation
        user graphics
        group graphics
        disabled
        oneshot

    service dbus /system/bin/dbus-daemon --system --nofork
        socket dbus stream 660 bluetooth blueto  user bluetooth
        group bluetooth net_bt_admin

    service bluetoothd /system/bin/bluetoothd -n
        socket bluetooth stream 660 bluetooth bluetooth
        socket dbus_bluetooth stream 660 bluetooth bluetooth
        # init.rc does not yet support applying capabilities, so run as root and
        # let bluetoothd drop uid to bluetooth with the right linux capabilities
        group bluetooth net_bt_admin misc
        disabled

    service hfag /system/bin/sdptool add --channel=10 HFAG
        user bluetooth
        group bluetooth net_bt_admin
        disabled
        oneshot

    service hsag /system/bin/sdptool add --channel=11 HSAG
        user bluetooth
        group bluetooth net_bt_admin
        disabled
        oneshot

    service opush /system/bin/sdptool add --channel=12 OPUSH
        user bluetooth
        group bluetooth net_bt_admin
        disabled
        oneshot

    service pbap /system/bin/sdptool add --channel=19 PBAP
        user bluetooth
        group bluetooth net_bt_admin
        disabled
        oneshot

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

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

    service racoon /system/bin/racoon
        socket racoon stream 600 system system
        # racoon will setuid to vpn after getting necessary resources.
        group net_admin
        disabled
        oneshot

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

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

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

    service dhcpcd /system/bin/dhcpcd -o domain_name_servers -ABKL
        disabled
        oneshot

    # wired ethernet
    service wired-ethernet /system/bin/ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
        oneshot
       
    #Start PPPD at init
    #service pppd /system/bin/pppd call gprs
    #    oneshot
     
    service pppd_gprs /system/bin/pppd call gprs
        user root
        group system radio cache inet misc
        disabled
     
     
    #Create Node for Printer
    service print /bin/mknod /dev/printer c 253 0
        oneshot

    service mcr /bin/chmod 0777 /dev/spidev1.0
       oneshot

    #Create Node for sdio.ko for WiFi
    service load-sdio /sbin/modprobe sdio
        oneshot

    # WLAN Related services
    service wlan_loader /system/bin/wlan_loader \
      -f /system/etc/wifi/firmware.bin -i /system/etc/wifi/tiwlan.ini -e /data/misc/wifi/nvs_map.bin
      disabled
      oneshot

    service wpa_supplicant /system/bin/wpa_supplicant -Dtiwlan0 -itiwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd
      socket wpa_tiwlan0 dgram 660 wifi wifi
      disabled
      oneshot

    #service dhcpcd_tiwlan0 /system/bin/dhcpcd -ABKL tiwlan0                                                       
    service dhcpcd_tiwlan0 /system/etc/dhcpcd -ABKL tiwlan0     
       disabled
       oneshot
    # End of WLAN Related services

    2) tiwlan.ini  file

    -------------

    # The letters in this file are case sensitive, use lower case only !!!

    SmeConnectMode = 1               #0 - auto, 1 - manual
    ScanResultAging = 0              # in Second - range 0..1000
    WME_Enable = 1                   #0=diable WME support / 1=Enable
    dot11NetworkType = 3             #2 - A only mode, 3 - B/G mode, 4 - A/G Dual mode
    SmeScanGChannelList = 1,2,3,4,5,6,7,8,9,10,11,12,13,14
    SmeScanAChannelList = 36,40,44,48,52,56,60,64
    RecoveryEnable = 1               #0 -Disabled 1- Enabled
    BThWlanCoexistEnable = 1         #0 - SG disable, 1 - SG protective
    TxAggregationPktsLimit = 0       # Disable Tx packets aggregation for Linux (degrades TP)

    #
    # Power Manager
    #
    BeaconListenInterval = 1        # the number of N-Beacon or N-DTim
    DtimListenInterval = 1          #

    ReAuthActivePriority = 0

    dot11PowerMode = 0              #0 - Auto
                                    #1 - Active
                                    #2 - Short Doze
                                    #3 - Long Doze
                        
    PowerMgmtHangOverPeriod = 10    #in mSec units

    AutoPowerModeDozeMode = 3       #2 - Short Doze
                                    #3 - Long Doze

    AutoPowerModeActiveTh = 8       #packets per second (default 15)

    AutoPowerModeDozeTh = 4         #packets per seconds - threshold for entering ELP in Auto mode (default 8)

    defaultPowerLevel = 0   #0 - ELP
                            #1 - PD
                            #2 - AWAKE

    PowerSavePowerLevel = 0 #0 - ELP
                            #1 - PD
                            #2 - AWAKE

    DcoItrimEnabled = 0  # 0 - Disabled  1 - Enabled
    DcoItrimModerationTimeout = 50000

    TxPower = 205           #set Default Tx Power Level in DBM * 10
    dot11FragmentationThreshold = 4096
    dot11RTSThreshold = 4096
    WPAMixedMode= 1
    RSNPreAuthentication = 1

    CalibrationChannel24 = 7
    CalibrationChannel5 = 36

    # Regulatury Domain tables.
    # Each byte correlates to one channel in sequential order.  Table 2.4 starts from channel 1, Table 5.0 starts from channel 36.
    # Bits 0..4 - Max power allowed in Dbm.
    # Bit 6 - Channel is allowed for Active scan
    # BIt 7 - Channel is allowed
    AllowedChannelsTable24 = FFFFFFFFFFFFFFFFFFFFFFFFFFFF
    AllowedChannelsTable5 = FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000000000000000000000000000000000000000000000000000000000000000000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000000000000000FF000000FF000000FF000000FF000000FF000000000000000000000000000000

    SpectrumManagement = 0          # 0 - Disable 802.11h, 1 - Enable

    RxBroadcastInPs = 1

    #arp ip filter - must be written 8 characters for example 10.2.43.3 -> 0a 02 2b 21 and not a 2 2b 21
    ArpIp_Addr = 0a 02 0a b7
    ArpIp_Filter_ena = 0


    #mac filter
    Mac_Filter_Enabled = 0
    numGroupAddrs = 4
    Group_addr0 = 10 01 02 03 04 05
    Group_addr1 = 11 11 12 13 14 15
    Group_addr2 = 12 21 22 23 24 25
    Group_addr3 = 13 31 32 33 34 35
    Group_addr4 = 14 41 42 43 44 45
    Group_addr5 = 15 51 52 53 54 55
    Group_addr6 = 16 61 62 63 64 65
    Group_addr7 = 17 71 72 73 74 75

    #beacon filter
    Beacon_Filter_Desired_State = 1
    Beacon_Filter_Stored = 1

    #beacon IE table
    #the size is the len of the string - spaces = number of bytes
    Beacon_IE_Num_Of_Elem = 16
    Beacon_IE_Table_Size = 37
    Beacon_IE_Table = 00 01 01 01 32 01 2a 01 03 01 06 01 07 01 20 01 25 01 23 01 30 01 28 01 2e 01 3d 01 85 01 dd 01 00 52 f2 02 00 01

    #Rate adaptation
    RateContThreshold       = 10
    RateStepUpThreshold     = 2
    FBShortInterval         = 40
    FBLongInterval          = 200
    RateAdaptationTimeout   = 300

    # rate policy - short / long retries
    RatePolicyUserShortRetryLimit   = 10
    RatePolicyUserLongRetryLimit    = 10

    #rate policies
    #rates guide: -->>mcs7,msc6,mcs5,mcs4,mcs3,mcs2,mcs1,mcs0,54,58,36,24,22,18,12,11,9,6,5.5,2,1


    OsDbgState = 0x01e9003c         # -1 or 0xffffffff -all (opens debug messages in o.s. only - sevirity+modules)

    #############################################################
    #   Configure the severity table (0 = Disable/ 1 = Enable)
    #
    #   Byte #0: Init
    #   Byte #1: Information
    #   Byte #2: Warning
    #   Byte #3: Error
    #   Byte #4: Fatal Error
    #   Byte #5: SM
    #   Byte #6: Console
    #############################################################

    ReportSeverityTable = 00001101

    BeaconReceiveTime = 50

    #
    # Mem blocks
    #
    RxMemBlksNum = 50
    QOS_txBlksThresholdBE = 20
    QOS_txBlksThresholdVI = 20
    QOS_txBlksThresholdVO = 20

    #
    # QOS UPSD
    #

    desiredPsMode       = 1          # Global Power save delivery protocol (1 - UPSD, 0 - Legacy)
    QOS_wmePsModeBE     = 1          # Power save delivery protocol for BE AC (1 - UPSD, 0 - Legacy)
    QOS_wmePsModeBK     = 1          # Power save delivery protocol for BK AC (1 - UPSD, 0 - Legacy)
    QOS_wmePsModeVI     = 1          # Power save delivery protocol for VI AC (1 - UPSD, 0 - Legacy)
    QOS_wmePsModeVO     = 1          # Power save delivery protocol for VO AC (1 - UPSD, 0 - Legacy)

    #
    # QOS Classifier
    #
    Clsfr_Type = 1                  # 1 - DSCP, 2 - Port, 3 - IP+port


    NumOfCodePoints = 4
    DSCPClassifier00_CodePoint = 0                #Best Effort          
    DSCPClassifier00_DTag = 0

    DSCPClassifier01_CodePoint = 8                #Background
    DSCPClassifier01_DTag = 1

    DSCPClassifier02_CodePoint = 40               #Video
    DSCPClassifier02_DTag = 5

    DSCPClassifier03_CodePoint = 56               #Voice
    DSCPClassifier03_DTag = 6

    dot11MaxReceiveLifetime=512000
    FracOfLifeTimeToDrop = 50

    WiFiAdhoc = 0
    WiFiWmmPS = 0    # Use 1 on WiFi test in order to configure PS to work in WMM mode

    EarlyWakeUp = 1     # 0 - Disable , 1 - Enable

    TxEnergyDetection = 0    # Use 1 for enabling

    TriggeredScanTimeOut = 50000 # Maximum time in Us between 2 channels on triggered scan
    # PsPoll delivery failure solution
    PsPollDeliveryFailureRecoveryPeriod = 20        # Time in Ms to stay ACTIVE ('0' to disable feature)
    ConsecutivePsPollDeliveryFailureThreshold = 4   # Number of failed PsPoll's to start ACTIVE time out


    # Weights in percent for RSSI/SNR Average calculations
    RssiBeaconAverageWeight = 20
    RssiPacketAverageWeight = 10
    SnrBeaconAverageWeight = 20
    SnrPacketAverageWeight = 10

    HT_Enable=1                     #0=diable 802.11n support / 1=Enable
    IbssProtectionType = 1          # 0 = CTS protaction disable ; 1 = Standard CTS protaction
    BurstModeEnable = 0             # 0 - Disabled  1 - Enabled
    RoamScanEnable = 0              # 1- roaming and immidate scan enable by deafult 0- allowing roaming & scannig due to CLI confguration
    RoamingOperationalMode = 1      # 0=Manual , 1=Auto
    RSNExternalMode = 0             # 0=Internal , 1=External
    SendTspecInReassPkt = 0 # 0=do not send, 1=send


    FmCoexuSwallowPeriod = 5
    FmCoexuNDividerFrefSet2 = 12
    FmCoexuMDividerFrefSet2 = 148

    BaPolicyTid_0 = 3


    ##############################################################################################################################
    ################################################## Radio parameters data - Start #############################################
    ##############################################################################################################################

    ################################ General parameters ################################
    STRFRefClock = 1                # Unit: Options 5'bXX000 : Bit 0,1,2 - (0: 19.2MHz; 1: 26MHz; 2: 38.4MHz  (Default); 3: 52MHz;  4: 38.4MHz XTAL) ;
                                    # 5'bX0XXX : Bit 3 - CLK_REQ type;  0 = wired-OR (Default) , 1= push-pull
                                    # 5'b0XXXX : Bit 4 - CLK_REQ polarity; 0 = Normal (Default) , 1=Inverted, Format: Unsigned, Source: Customer
    STRFRefClockSettingTime = 5
    TXBiPFEMAutoDetect = 0          # Unit: Options (0: Manual Mode; 1: Automatic mode), Format: Unsigned, Source: Customer
    TXBiPFEMManufacturer = 1        # Unit: Options (0: RFMD; 1: Triquint), Format: Unsigned, Source: Customer
    ClockValidOnWakeup = 0
    DC2DCMode = 0                   # Unit: Options (0: btSPI is not used; 1: mux DC2DC mode to BT_FUNC2), Format: Unsigned, Source: Customer
    Single_Dual_Band_Solution = 0   # Unit: Options (0: Single band. 2.4GHz only; 1: Dual band = 2.4GHz and 5GHz solution), Format: Unsigned, Source: Customer
    Settings  = 65                  #  0x41 Unit: Options (Bit0: NBI (0: Off; 1: On), Bit1: Telec channel 14 (0: Off; 1: On), Format: Unsigned, Source: Customer
                                    # Bit2: FEM0-LB, Bit3: FEM0-HB, Bit4: FEM1-LB, Bit5: FEM1-HB - TX BiP load (0: Internal; 1: External),
                                    # Bit6: LPD Low band, Bit7: LPD High band

    # Smart Reflex params
    SRState = 1                                 # Unit: Options ( 1 - Enabled     0- Disabled) Format: Decimal, Source: TI
    SRF1 = 07,03,18,10,05,fb,f0,e8, 0,0,0,0,0,0,0f,3f  # Unit: SRF1 values, Format: Signed, Source: TI
    SRF2 = 07,03,18,10,05,f6,f0,e8              # Unit: SRF2 values, Format: Signed, Source: TI
    SRF3 = 07,03,18,10,05,fb,f0,e8              # Unit: SRF3 values, Format: Signed, Source: TI

    ################################ FEM dependents parameters #######################################
    ###################### FEM1 parameters ######################

    # (for Single bend 2.4G parameters FEM1 (TQS 2.5) HDK20)

    RxTraceInsertionLoss_2_4G = 0
    TXTraceLoss_2_4G  = 0
    RxRssiAndProcessCompensation_2_4G = ec,f6,00,0c,18,f8,fc,00,08,10,f0,f8,00,0a,14
    TXBiPReferencePDvoltage_2_4G = 375  # 0x177
    TxBiPReferencePower_2_4G = 128      # 0x80
    TxBiPOffsetdB_2_4G = 0
    TxPerRatePowerLimits_2_4G_Normal = 1d, 1f, 22, 26, 28, 29
    TxPerRatePowerLimits_2_4G_Degraded = 1a, 1f, 22, 24, 26, 28
    TxPerRatePowerLimits_2_4G_Extreme = 16, 1d, 1e, 20, 24, 25 # Unit: 1/2dB, Format: Signed, Source: Customer
    DegradedLowToNormalThr_2_4G = 30 # 0x1e Unit: 1/10 volts, Format: Unsigned, Source: TI
    NormalToDegradedHighThr_2_4G = 45 # 0x2d Unit: 1/10 volts, Format: Unsigned, Source: TI
    TxPerChannelPowerLimits_2_4G_11b = 50,50,50,50,50,50,50,50,50,50,50,50,50,50
    TxPerChannelPowerLimits_2_4G_OFDM = 50,50,50,50,50,50,50,50,50,50,50,50,50,50
    TxPDVsRateOffsets_2_4G = 01,02,02,02,02,00
    TxIbiasTable_2_4G = 11,11,15,11,15,0f
    RxFemInsertionLoss_2_4G  = 14  # 0x0e


    ###################### FEM0 parameters #########################

    # (for Single bend 2.4G parameters FEM0 (RFMD 3.0) HDK20)

    #RxTraceInsertionLoss_2_4G = 0
    #TXTraceLoss_2_4G = 0
    #RxRssiAndProcessCompensation_2_4G  = ec,f6,00,0c,18,f8,fc,00,08,10,f0,f8,00,0a,14
    #TXBiPReferencePDvoltage_2_4G = 356 # 0x0164
    #TxBiPReferencePower_2_4G  = 128 # 0x80
    #TxBiPOffsetdB_2_4G = 0
    #TxPerRatePowerLimits_2_4G_Normal = 1c,1f,22,24,28,29
    #TxPerRatePowerLimits_2_4G_Degraded = 19,1f,22,23,27,28
    #TxPerRatePowerLimits_2_4G_Extreme = 50,50,50,50,50,50 # Unit: 1/2dB, Format: Signed, Source: Customer
    #DegradedLowToNormalThr_2_4G = 30 # 1e Unit: 1/10 volts, Format: Unsigned, Source: TI
    #NormalToDegradedHighThr_2_4G = 45 # 2d Unit: 1/10 volts, Format: Unsigned, Source: TI
    #TxPerChannelPowerLimits_2_4G_11b = 50,50,50,50,50,50,50,50,50,50,50,50,50,50
    #TxPerChannelPowerLimits_2_4G_OFDM = 50,50,50,50,50,50,50,50,50,50,50,50,50,50
    #TxPDVsRateOffsets_2_4G = 01,02,02,02,02,00
    #TxIbiasTable_2_4G  = 1a,1a,1a,1a,1a,21
    #RxFemInsertionLoss_2_4G  = 16 # 0x10

    ##############################################################################################################################
    ################################################## Radio parameters data - End ###############################################
    ##############################################################################################################################

    3) wpa_supplicant.conf

    ##### wpa_supplicant configuration file template #####
    update_config=1
    ctrl_interface=tiwlan0
    eapol_version=1
    ap_scan=1
    fast_reauth=1

    Please let me know if I missed some  configuration....





  • Krish,

    Which DevKit version are you using?

    Wilink legacy driver works only with our Froyo and Gingerbread1.0 releases.

    We are now using the opensource Openlink drivers and there has been some changes in Android frameworks to support these. The newer source may not work well with the legacy drivers.

  • Rats ...

    It was the problem with corrupted  tiwlan.ini file.

    I am able to scan the AP and connect  now.

    thanks for your support