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.

WL1271 driver to disable low power mode

Other Parts Discussed in Thread: AM3505, WL1271

Hello TI,

We are working on AM3505 based custom board for our customer.
We are using wl1271 Wilink chipset  for wireless connectivity.

We are using linux-2.6.37-psp04.02.00.07 kernel in our system,

so, please tell me how i can change or disable low power mode in WL1271 using drivers??


Thank You,

Dhaval Radiya.

  • Hi Dhaval,

    Can you tell me which driver release?
    Do you mean the elp mode?

    I am not sure if you can disable it, but it would be possible to change the timeout value.

    Regards,
    Gigi Joseph.

  • Hi Joseph,


    we are using R5_SP7 driver release and i am talking about Low Power Mode disable.And what is that elp mode?Do you mean that enhanced low power mode??is both modes are same or not?


    Thank You,

    Dhaval Radiya.

  • Hi Dhaval,

    Yes, both the modes are the same.
    Like I said before, you can increase the elp timeout value.

    To disable it, you might want to make some modification in the driver and have a debugfs exported for this. You can take a look at debugfs.c (drivers\net\wireless\wl12xx\) 


    Regards,
    Gigi Joseph.

  • Hi TI,

    Thank You for your reply.

    now, we are configuring wl12xx chipset for multi-role support and we follow below link steps :

    http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_NLCP_Multi_Role_Configuration#Configuring_AP


    but after entering some command like:

    Add NAT and DHCP server capability to the AP

    echo 1 > /proc/sys/net/ipv4/ip_forward
    udhcpd /etc/udhcpd.conf
    iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

    we get below error message:

    FATAL: Module ip_tables not found.
    iptables v1.4.9.1: can't initialize iptables table `nat': iptables who? (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.

    so any solution for that??

    Thank You.
  • Hi Dhaval,

    Please check: https://github.com/TI-ECS/build-utilites/blob/master/wlan_enable_config.sh 
    and confirm if you have the same in your defconfig. Specifically: CONFIG_IP_NF_IPTABLES=y

    Regards,
    Gigi Joseph.

  • Hi Joseph,

    Thank For your reply. Now I have query about multi-Role configuration for Single channel – Station (wlan0) and AP (wlan1) works on same channel.

    In that , when we change Channel=1 in hostapd.conf we got the below error message.

    root@am3517-evm:~# hostapd -B /etc/hostapd.conf -P /var/run/hostapd.pid
    Configuration file: /etc/hostapd.conf
    [  113.737030] wl12xx: removing interface 00:00:00:00:00:02
    [  113.760894] wl12xx: state: 2
    Could not set channel for kernel driver
    wlan1: Unable to setup interface.
    [  113.825561] wl12xx: removing interface 00:00:00:00:00:02

    So, can you give any suggestion??


    Thank You

    Dhaval.

  • Hi Dhaval,

    For multirole to work, the AP on the wl12xx side should be in the same channel as the one that the wl12xx station is connected to. In the case where the commercial AP changes the channel (which I believe is not very common) , then you would need to kill the hostapd and start it again with the new channel in hostapd.conf.

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    Please can you explain me how traffic is relayed from AP interface to STA interface??

    Thank You.
  • Hi Dhaval,

    This is taken care of by the firmware.

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    Can you tell me the scenario of traffic relay in short??
    Thank You.
  • Hi Dhaval,

    I cannot give too much details as it is proprietary information... But I can tell you that this is based on TDM-Time Division Multiplexing.

    Regards,
    Gigi Joseph.