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.

WL1835 Dual mode : Link is not ready

Hello everyone,


My purpose is to have both AP mode and station mode working at the same time, like creating a second virtual wifi network. I'm using the AM33 development kit of Variscite.

Log of /usr/bin/wlcore/configure-device.sh :

root@varsomam33:/usr/bin/wlconf# ./configure-device.sh 

Please provide the following information.

Are you using a TI module? [y/n] : y
What is the chip flavor? [1801/1805/1807/1831/1835/1837 or 0 for unknown] : 1835
How many 2.4GHz antennas are fitted? [1/2] : 1
Should SISO40 support be applied? [y/n] : n
[   66.464918] wlcore: down
[   66.472618] br1: port 2(wlan0) entered disabled state
[   66.500887] device wlan0 left promiscuous mode
[   66.505402] br1: port 2(wlan0) entered disabled state

The device has been successfully configured.
TI Module: y
Chip Flavor: 1835
Number of 2.4GHz Antennas Fitted: 1
Number of 5GHz Antennas Fitted: 0
Diversity Support: n
SISO40 Support: n
Japanese Standards Applied: n

root@varsomam33:/usr/bin/wlconf# [   67.231604] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[   67.262903] wlcore: loaded
[   67.641315] wlcore: PHY firmware version: Rev 8.2.0.0.232
[   67.694511] wlcore: firmware booted (Rev 8.9.0.0.48)
[   67.712617] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

To achieve my goal, I plan to do :

$ iw dev wlan0 interface add wlan1 type station

$ dhclient wlan1

=> "No DHCPOFFERS received.
No working leases in persistent database - sleeping."

$ iwlist wlan1 scan

=> "Interface doesn't support scanning."

Some logs :

$ dmesg | grep wlan

root@varsomam33:/usr/bin/wlconf# dmesg | grep wlan
[    3.256428] wlan-en-regulator: disabling
[   16.702630] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   16.987905] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   17.470976] device wlan0 entered promiscuous mode
[   17.504710] br1: port 2(wlan0) entered forwarding state
[   17.510114] br1: port 2(wlan0) entered forwarding state
[   32.520585] br1: port 2(wlan0) entered forwarding state
[   66.472618] br1: port 2(wlan0) entered disabled state
[   66.500887] device wlan0 left promiscuous mode
[   66.505402] br1: port 2(wlan0) entered disabled state
[   67.712617] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

$ lsmod

root@varsomam33:/usr/bin/wlconf# lsmod
Module                  Size  Used by
wlcore_sdio             6153  0 
bluetooth             326946  0 
bridge                 91091  0 
stp                     1881  1 bridge
ipv6                  305283  27 bridge
llc                     5175  2 stp,bridge
iptable_filter          1361  0 
ipt_MASQUERADE           911  1 
nf_nat_masquerade_ipv4     2497  1 ipt_MASQUERADE
iptable_nat             1655  1 
nf_conntrack_ipv4      11393  1 
nf_defrag_ipv4          1328  1 nf_conntrack_ipv4
nf_nat_ipv4             5268  1 iptable_nat
nf_nat                 14093  2 nf_nat_ipv4,nf_nat_masquerade_ipv4
nf_conntrack           74699  4 nf_nat,nf_nat_ipv4,nf_nat_masquerade_ipv4,nf_conntrack_ipv4
ip_tables              10876  2 iptable_filter,iptable_nat
x_tables               16976  3 ip_tables,ipt_MASQUERADE,iptable_filter
arc4                    1587  2 
wl18xx                 90509  0 
wlcore                180413  1 wl18xx
mac80211              357870  2 wl18xx,wlcore
cfg80211              219069  3 mac80211,wl18xx,wlcore
musb_dsps               7797  0 
musb_hdrc              69330  1 musb_dsps
udc_core               11612  1 musb_hdrc
usbcore               190145  1 musb_hdrc
ti_am335x_adc           5332  0 
kfifo_buf               3124  1 ti_am335x_adc
industrialio           39483  2 ti_am335x_adc,kfifo_buf
omapdrm_pvr           335113  0 
pm33xx                  4633  0 
evdev                  10100  2 
joydev                  9160  0 
omap_rng                4470  0 
rng_core                7648  1 omap_rng
c_can_platform          6499  0 
c_can                   9607  1 c_can_platform
can_dev                11835  1 c_can
ti_am335x_tsc           5655  0 
musb_am335x             1240  0 
rtc_omap                7578  0 
omap_wdt                4483  0 
ti_am335x_tscadc        5770  2 ti_am335x_adc,ti_am335x_tsc
cpufreq_voltdm          3369  0 
thermal_sys            39403  1 cpufreq_voltdm
gpio_keys               8107  0 
hwmon                   3915  1 thermal_sys

Any idea ? The driver maybe ?

  • Hi,

    Please refer to the demo guide at: processors.wiki.ti.com/.../WiLink8_WLAN_Demo:_Linux

    Regards,
    Gigi Joseph.
  • Hi,


    Actually I did, and when I do :

    $ udhcpc -R -b -p /var/run/udhcpc.wlan0.pid -i wlan0 

    I keep receiving "Sending discover..."

    Besides that, when I try to connect to a network and get an IP address, here's what I get :

    root@varsomam33:/etc# iw wlan0 connect NETGEAR37 key 0:largetulip563 
    root@varsomam33:/etc# [  842.622605] wlan0: authenticate with 04:a1:51:17:8d:05
    [  842.634185] wlan0: send auth to 04:a1:51:17:8d:05 (try 1/3)
    [  842.840572] wlan0: send auth to 04:a1:51:17:8d:05 (try 2/3)
    [  842.865436] wlan0: authenticated
    [  842.869192] wl18xx_driver wl18xx.0.auto wlan0: disabling HT/VHT due to WEP/TKIP use
    [  842.880603] wlan0: associate with 04:a1:51:17:8d:05 (try 1/3)
    [  842.895544] wlan0: RX AssocResp from 04:a1:51:17:8d:05 (capab=0x1411 status=0 aid=4)
    [  842.917921] wlcore: Association completed.
    [  842.925310] wlan0: associated
    
    root@varsomam33:/etc# iw wlan0 link
    Connected to 04:a1:51:17:8d:05 (on wlan0)
            SSID: NETGEAR37
            freq: 2462
            RX: 597 bytes (8 packets)
            TX: 858 bytes (5 packets)
            signal: -47 dBm
            tx bitrate: 54.0 MBit/s
    
            bss flags:      short-preamble short-slot-time
            dtim period:    2
            beacon int:     100
    root@varsomam33:/etc# udhcpc -i wlan0
    udhcpc (v1.23.1) started
    Sending discover...
    Sending discover...
    Sending discover...
    

  • Hi,

    Looks like DHCP server is not running.
    Can you try with another AP?

    Regards,
    Gigi Joseph.