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.

udhcpc and WEP-enabled connection

Other Parts Discussed in Thread: WL1271, OMAP3530

I am having the craziest problem.  I'm running OMAP3530 and WL1271 using DVSDK 4.00.00.17.

Wi-fi startup script:
insmod sdio.ko
insmod bmtrace.ko
insmod tiwlan_drv.ko
./tiwlan_loader
ifconfig tiwlan0 up
./wpa_supplicant -Dwext -itiwlan0 -c wpa_supplicant.txt & 
udhcpc -i tiwlan0 

Supplicant entry (with WEP):
network={
ssid="devwireless"
key_mgmt=NONE
pairwise=NONE
group=WEP40
auth_alg=OPEN
wep_key0=0000000000
wep_key1=deadbeefde
wep_key2=0000000000
wep_key3=0000000000
wep_tx_keyidx=1
}

When I turn WEP off on the access point and connect without WEP enabled, udhcpc grabs a new IP and we're great.

I turn WEP on and re-connect with the settings above, udhcpc sits there and spams "Sending Discovery...".

It must be something in my configuration here - any idea?

  • Glenn,

    The above mentioned behaviour is seen when the Station is not connected to the AP.

    Are you getting the message that says that Station is connected to the AP?

    We are not facing any issue regarding the same. We were able to connect and get the IP succesfully

    ** Attached are the logs for your further reference

     

    Regards

    Salma

     

    \> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
    p
    .../Privacy> Authentication, Eap, encRyption, Keytype, Mixedmode, aNywpamode, Credentials,pskPassphrase, cerTificate, Supplicant/, Wep/
    a 0
    Setting privacy authentication to 0
    r 1
    Setting privacy encryption to 1
    w
    .../Wep> Add, Remove, Get default key id
    a 1234567890 1 1 hex
    ..
    .../Privacy> Authentication, Eap, encRyption, Keytype, Mixedmode, aNywpamode, Credentials,pskPassphrase, cerTificate, Supplicant/, Wep/
    ..
    \> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVen ts/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
    a
    .../scAn> Start, sTop, Wextstart, configApp/, configpEriodic/, configPolicy/
    s
    Application scan started
    t
    Application scan stopped
    ..
    \> 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=8
             MAC        Privacy Rssi  Mode    Channel    SSID
     00.0e.38.62.63.f0     1    -52  Infra      8        cisco
    c cisco
    57
    OK
    ADDRCONF(NETDEV_CHANGE): tiwlan0: link becomes ready
    TIWLAN: 3781.312210: ************ NEW CONNECTION ************
    TIWLAN: 3781.319389: -- SSID  = cisco
    TIWLAN: 3781.322995: -- BSSID = 0-e-38-62-63-f0
    TIWLAN: 3781.329158: ****************************************

    .../Connection> Bssid_list, Connect, Disassociate, Status, Full_bssid_list, wPs/
    ..
    \> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
    q

    # udhcpc -i tiwlan0
    udhcpc (v1.13.2) started
    Sending discover...
    Sending select for 192.168.13.136...
    Lease of 192.168.13.136 obtained, lease time 14400
    adding dns 192.168.10.51
    adding dns 192.168.10.54
    #
    # ping google.com
    PING google.com (209.85.231.104): 56 data bytes
    64 bytes from 209.85.231.104: seq=0 ttl=53 time=68.832 ms
    64 bytes from 209.85.231.104: seq=1 ttl=53 time=76.222 ms

    --- google.com ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max = 68.832/72.527/76.222 ms


    wpa_supplicant.txt contents:

    network={
            ssid="cisco"
            key_mgmt=NONE
            pairwise=NONE
            group=WEP40
            auth_alg=OPEN
            wep_key0=0000000000
            wep_key1=1234567890
            wep_key2=0000000000
            wep_key3=0000000000
            wep_tx_keyidx=1
    }

  • Thank you for your reply.  I seem to be following the exact same process as you are.  I have attached similar logs for comparison.  I perform the same steps, and I receive the appropriate CTRL-EVENT-CONNECTED message with the correct ssid - and I can even see my device on the list of attached devices on the wireless router, so I am most definitely connected to the AP.  But still, no IP.  What on earth could I be doing wrong?

    .../Privacy> Authentication, Eap, encRyption, Keytype, Mixedmode, aNywpamode, Cr
    edentials, pskPassphrase, cerTificate, Supplicant/, Wep/                        
    a 0                                                                             
    Setting privacy authentication to 0                                             
    r 1                                                                             
    Setting privacy encryption to 1                                                 
    w                                                                               
    .../Wep> Add, Remove, Get default key id                                        
    a deadbeefde 1 1 hex                                                            
    / a                                                                             
    \> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, po
    Wer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit             
    .../scAn> Start, sTop, Wextstart, configApp/, configpEriodic/, configPolicy/    
    s                                                                               
    Application scan started                                                        
    t                                                                               
    Application scan stopped                                                        
    / c                                                                             
    \> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, po
    Wer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit             
    .../Connection> Bssid_list, Connect, Disassociate, Status, Full_bssid_list, wPs/
    b                                                                               
    BssId List: Num=7                                                               
             MAC        Privacy Rssi  Mode    Channel    SSID                       
     28.93.fe.c4.be.50     0    -61  Infra      1        verathon                   
     fc.fb.fb.03.a4.30     0    -83  Infra      3        verathon                   
     c4.7d.4f.c6.d0.08     1    -45  Infra     11        4dxu2d@y                   
     a4.0c.c3.0d.87.78     0    -85  Infra     11        verathon                   
     c4.7d.4f.c6.83.68     1    -58  Infra     11        4dxu2d@y                   
     c4.7d.4f.c6.d3.d8     1    -81  Infra     11        4dxu2d@y                   
     c0.3f.0e.14.48.f0     1    -45  Infra      6        devwireless                            
    c devwireless                                                                   
    4                                                                               
    Trying to associate with SSID 'devwireless'                                     
    OK                                                                              
    Associated with c0:3f:0e:14:48:fTIWLAN: 257.057880: ************ NEW CONNECTION 
    ************                                                                    
    0                                                                               
    CTRL-EVENT-CONNECTED - ConnecTIWLAN: 257.064136: -- SSID  = devwireless         
    tion to c0:3f:0e:14:48:f0 compleTIWLAN: 257.070881: -- BSSID = c0-3f-e-14-48-f0 
    ted (auth) [id=4 id_str=]                                                       
    TIWLAN: 257.077991: ****************************************                    
    / q                                                                             
    \> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, po
    Wer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit             
    root@omap3evm:/opt/ti-wireless# udhcpc -i tiwlan0                               
    udhcpc (v1.13.2) started                                                        
    Sending discover...                                                             
    Sending discover...                                                             
    Sending discover...                                                             
    Sending discover...                                                             
    Sending discover...                                                             
    Sending discover...
    [and so on]

  • Glenn

    Station is sending the DHCP request but the server does not seem to respond. There might be some issue with the server.

    Regards

    Salma

  • This DHCP server seems to respond quite nicely when WEP is turned off.  Also, I have tried this now on two different networks with the same effect - an effect which other wireless devices do not reproduce.  

    Do you know of a good way to determine whether the server is receiving the the request and not responding, or whether the server simply never gets the request, or if the response is sent but never received by the client?

  • Hi Glenn,

    From your procedure it seems you are following the correct procedure. But i am not sure why you are not receiving DHCP  IP. However to isolate the issue van please follow the below procedure:

    Configure the AP with security mode and connect any WiFi laptop to AP. Verify Laptop ables to receive DHCP IP address of your  network series. If the Laptop receive DHCP IP address of your network series then your AP and DHCP server is working fine.

    In Laptop if you are not able get IP address of your network series, but you are able to get IP address of AP DHCP configure series, then your AP is not configure in brige mode. 

     

    Best Regards

    Sanjay

  • I have verified that a WiFi laptop is able to connect to and get an IP from that same network.

  • Glenn Wainwright,

    I tested it again on OMAP3 EVM with a Cisco Aironet 1250 access point. Configuration is same as yours;
    One thing i can suspect in your case is the key index. On EVM, key index starts from 0, however, my Access Point keys are starts from Key1, key2..
    When i set key index 1 on EVM, i need to set same key as Key2 on Cisco1250 AP. Now i can ping, run udhcpc and so on. Screen shot of AP configuration is attached;

    Please see below details;

    Content of wpa_supplicant conf file;

    ==============================================
    root@dm3730-am3715-evm:/opt/ti-wireless# cat wpa_supplicant.txt
    ctrl_interface=/var/run
    ap_scan=2
    update_config=1

    network={
    ssid="devwireless"
    key_mgmt=NONE
    pairwise=NONE
    group=WEP40
    auth_alg=OPEN
    wep_key0=0000000000
    wep_key1=deadbeefde
    wep_key2=0000000000
    wep_key3=0000000000
    wep_tx_keyidx=1
    }
    root@dm3730-am3715-evm:/opt/ti-wireless#
    ================================================

    Driver version;
     --------------------------------------------------------------------
    TIWLAN: 569.504204: Driver Version  : WiLink_Driver_6.1.0.0.130
    TIWLAN: 569.509911: Firmware Version: Rev 6.1.0.0.313
    TIWLAN: 569.514733: Station ID      : 08-00-28-12-34-56
    TIWLAN: 569.519768: --------------------------------------------------------------------

    TIWLAN: 569.527672:
    TIWLAN: 569.543480: Interrogate TX/RX parameters
    Trying to associate with SSID 'devwireless'
    Associated with 00:26:cb:f3:ed:1TIWLAN: 570.191002: ************ NEW CONNECTION ************
    0
    CTRL-EVENT-CONNECTED - ConnecTIWLAN: 570.197167: -- SSID  = devwireless
    tion to 00:26:cb:f3:ed:10 compleTIWLAN: 570.203941: -- BSSID = 0-26-cb-f3-ed-10
    ted (auth) [id=0 id_str=]
    TIWLAN: 570.211022: ****************************************

    root@dm3730-am3715-evm:/opt/ti-wireless#
    root@dm3730-am3715-evm:/opt/ti-wireless# ifconfig tiwlan0 192.168.103.20
    root@dm3730-am3715-evm:/opt/ti-wireless# ping 192.168.103.143
    PING 192.168.103.143 (192.168.103.143): 56 data bytes
    64 bytes from 192.168.103.143: seq=0 ttl=255 time=165.985 ms
    64 bytes from 192.168.103.143: seq=1 ttl=255 time=108.948 ms
    64 bytes from 192.168.103.143: seq=2 ttl=255 time=44.493 ms
    64 bytes from 192.168.103.143: seq=3 ttl=255 time=88.929 ms
    64 bytes from 192.168.103.143: seq=4 ttl=255 time=30.548 ms
    64 bytes from 192.168.103.143: seq=5 ttl=255 time=76.020 ms
    64 bytes from 192.168.103.143: seq=6 ttl=255 time=116.150 ms
    64 bytes from 192.168.103.143: seq=7 ttl=255 time=56.061 ms
    64 bytes from 192.168.103.143: seq=8 ttl=255 time=99.822 ms
    
    --- 192.168.103.143 ping statistics ---
    9 packets transmitted, 9 packets received, 0% packet loss
    round-trip min/avg/max = 30.548/87.439/165.985 ms
    root@dm3730-am3715-evm:/opt/ti-wireless# udhcpc -i tiwlan0
    udhcpc (v1.13.2) started
    Sending discover...
    Sending select for 192.168.13.65...
    Lease of 192.168.13.65 obtained, lease time 14400
    adding dns 192.168.10.51
    adding dns 192.168.10.54
    root@dm3730-am3715-evm:

     

    Hope this helps.

    Thanks,

    Sinoj

     

  • Thank you, Sinoj; that appears to be the problem exactly!  Everything works as it's supposed to now.