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.

Unable to scan for wireless access points

Other Parts Discussed in Thread: WL1271

Hi,

       I'm trying to bring up a Murata WL1271 module on a custom beagleboard platform. I've verified that the hardware is working correctly with the 2.7.37-rc6 mainline wl1271 drivers.

I need to work with android-2.2.1 and so i need to get the WiLink 6.1 drivers working. I've built it and brought the tiwlan0 interface up. However, I am unable to scan for an get a list of available access points.

./wlan_cu

Connection established with supplicant

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

/

\> 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, wPs/

b

BssId List: Num=0

         MAC        Privacy Rssi  Mode    Channel    SSID

Elvis Dowson

 

  • Hi Elvis ,

    can you please share the tiwlan.ini file content that you are using? i am specifically interested in the value of the STRFRefClock parameter.

    also you may refer to our WiKi page in link: http://processors.wiki.ti.com/index.php/ARM_Processor_Wireless_Connectivity_Hardware_specifications section "Typical SW modification needed when using a different HW"

    Regards,

    Eyal

  • Hi,

            STRFRefClock value was set to 2. On our customboard, our TXCO ref clock is set to 26MHz, so I guess this means that I have to set it to 1.

    Elvis Dowson

     

     

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

     

    SmeConnectMode = 0               #0 - auto, 1 - manual

    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

    #

    # 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 = 2       #2 - Short Doze

                                    #3 - Long Doze

     

    AutoPowerModeActiveTh = 15      #packets per second 

     

    AutoPowerModeDozeTh = 8         #packets per seconds - threshold for entering ELP in Auto mode

     

    defaultPowerLevel = 0   #0 - ELP

                            #1 - PD

                            #2 - AWAKE

     

    PowerSavePowerLevel = 0 #0 - ELP

                            #1 - PD

                            #2 - AWAKE

     

    TxPower = 205           #set Default Tx Power Level in DBM * 10

    TriggerFcs = 0          # 0 - Disabled  1 - Enabled

    dot11FragmentationThreshold = 4096

    dot11RTSThreshold = 4096

    WPAMixedMode= 1

    RSNPreAuthentication = 1

     

    CalibrationChannel24 = 1

    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 00 00 0a

    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 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 = "0001101"

     

    BeaconReceiveTime = 50

     

    #

    # QOS UPSD

    #

     

    desiredPsMode       = 1          # Global Power save delivery protocol (1 - UPSD, 0 - Legacy)

    QOS_wmePsModeBE     = 0          # Power save delivery protocol for BE AC (1 - UPSD, 0 - Legacy)

    QOS_wmePsModeBK     = 0          # Power save delivery protocol for BK AC (1 - UPSD, 0 - Legacy)

    QOS_wmePsModeVI     = 0          # 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

     

    NumOfDstIPPortClassifiers = 3   # number of classifier entries

     

    IPPortClassifier00_IPAddress = 0a 03 89 02    # IP address 10.3.137.2

    IPPortClassifier00_Port = 5001                # Port 5001

    IPPortClassifier00_DTag = 1                   # User priority 1

     

    IPPortClassifier01_IPAddress = 0a 03 89 02    # IP address 10.3.137.2

    IPPortClassifier01_Port = 5002                # Port 5002

    IPPortClassifier01_DTag = 4                   # User priority 4

     

    IPPortClassifier02_IPAddress = 0a 03 89 02    # IP address 10.3.137.2

    IPPortClassifier02_Port = 5003                # Port 5003

    IPPortClassifier02_DTag = 6                   # User priority 6

     

     

    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

     

     

    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

     

    FmCoexuSwallowPeriod = 5

    FmCoexuNDividerFrefSet2 = 12

    FmCoexuMDividerFrefSet2 = 148

     

    BaPolicyTid_0 = 3

    BaPolicyTid_1 = 3

    BaPolicyTid_2 = 3

    BaPolicyTid_3 = 3

    BaPolicyTid_4 = 3

    BaPolicyTid_5 = 3

    BaPolicyTid_6 = 3

    BaPolicyTid_7 = 3

     

    BaInactivityTimeoutTid_0 = 100

    BaInactivityTimeoutTid_1 = 100

    BaInactivityTimeoutTid_2 = 100

    BaInactivityTimeoutTid_3 = 100

    BaInactivityTimeoutTid_4 = 100

    BaInactivityTimeoutTid_5 = 100

    BaInactivityTimeoutTid_6 = 1000

    BaInactivityTimeoutTid_7 = 1000

     

     

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

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

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

     

    ################################ General parameters ################################

    STRFRefClock = 2                # 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  = 1                   # Unit: Options (Bit0: NBI (0: Off; 1: On), Bit1: Telec channel 14 (0: Off; 1: On), Format: Unsigned, Source: Customer

     

     

    # Smart Reflex params

    SRState = 0x01                              # Unit: Options ( 1 - Enabled     0- Disabled) Format: Decimal, Source: TI

    SRF1 = 07,03,18,10,05,fb,f0,e8              # 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 = 0E 

    TXTraceLoss_2_4G  = 0E

    RxRssiAndProcessCompensation_2_4G = ec,f6,00,0c,18,f8,fc,00,08,10,f0,f8,00,0a,14 

    TXBiPReferencePDvoltage_2_4G = 177  #375 mV

    TxBiPReferencePower_2_4G = 80       #128 mV 

    TxBiPOffsetdB_2_4G = 0

    TxPerRatePowerLimits_2_4G_Normal = 1c,1f,22,24,28,29 

    TxPerRatePowerLimits_2_4G_Degraded =19,1f,22,23,27,28

    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  = 0E  # 14 

     

     

    ###################### 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 = 0x0164 

    #TxBiPReferencePower_2_4G  = 0x80 

    #TxBiPOffsetdB_2_4G = 00 

    #TxPerRatePowerLimits_2_4G_Normal = 1c,1f,22,24,28,29

    #TxPerRatePowerLimits_2_4G_Degraded = 19,1f,22,23,27,28 

    #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  = 0x10

     

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

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

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

     

     

     

     

     

     

  • Hi,

           After modifying the tiwlan.ini file to set STRFRefClock=1, corresponding to a 26MHz TXCO, it works. I'm able to scan and associate with an unsecured access point.

    BssId List: Num=1
            MAC        Privacy Rssi  Mode    Channel    SSID
    68.7f.74.1c.e4.7c     0    -62  Infra      6        Olympus2

    Trying to associate with SSID 'Olympus2'
    OK
    Associated with 68:7f:74:1c:e4:7TIWLAN: 1472.499088: ************ NEW CONNECTION ************
    c
    CTRL-EVENT-CONNECTED - ConnecTIWLAN: 1472.505436: -- SSID  = Olympus2 
    tion to 68:7f:74:1c:e4:7c compleTIWLAN: 1472.512058: -- BSSID = 68-7f-74-1c-e4-7c
    ted (auth) [id=0 id_str=]
    TIWLAN: 1472.519322: ****************************************

    # ping 192.168.1.1
    PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
    64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1118 ms
    64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=115 ms
    64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=35.4 ms
    64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=58.8 ms
    ^Z[2] + Stopped                    ping 192.168.1.1

    Elvis Dowson

  • Hi Elvis Dowson ,

    Thanks for the update and i am glad that the system isworking for you,  please post all your future questions in that e2e forum.

    Thanks,

    Eyal