Modify

Opened 22 months ago

Last modified 22 months ago

#22237 new defect

Wireless radio not fully disabled on startup (TL-WA850re)

Reported by: anm.nov Owned by: developers
Priority: normal Milestone:
Component: base system Version: Trunk
Keywords: Cc:

Description

Wireless radio seems to be "somewhat enabled" on startup, when it should be disabled ("option disabled 1" in /etc/config/wireless).

It wouldn't be much of a problem if not for a device in question - TL-WA850RE is a small, fully closed device with no holes for air circulation. Which means little more heat = noticeably less lifespan (provided you do not wish to use wireless part, of course).

1) After startup (wireless disabled):

Wireless LED: off
Power consumption: about 1.6 W

iwinfo output:

root@OpenWrt:~# iwinfo
wlan0     ESSID: unknown
          Access Point: 00:00:00:00:00:00
          Mode: Client  Channel: unknown (unknown)
          Tx-Power: 20 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

2) I've enabled wireless after that:

Wireless LED: on
Power consumption: about 1.6 W

iwinfo output:

root@OpenWrt:/etc/config# iwinfo
wlan0     ESSID: "OpenWrt"
          Access Point: 14:CC:20:3F:30:9B
          Mode: Master  Channel: 11 (2.462 GHz)
          Tx-Power: 19 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: -95 dBm
          Bit Rate: unknown
          Encryption: none
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

3) Now I've disabled wireless:

Wireless LED: off
Power consumption: 1.1 W

iwinfo output:

root@OpenWrt:/etc/config# iwinfo wlan0 info
No such wireless device: wlan0

This is correct state for disabled wireless, I think.

There is also one more thing.
Let's return to 1), but do not enable wireless. Try to run wireless survey:

1a)

root@OpenWrt:~# iwinfo wlan0 scan

... list of networks ...

After that:

Wireless LED: on
Power consumption: 1.1 W

iwinfo output:

root@OpenWrt:~# iwinfo
wlan0     ESSID: unknown
          Access Point: 00:00:00:00:00:00
          Mode: Client  Channel: unknown (unknown)
          Tx-Power: 3 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: -94 dBm
          Bit Rate: unknown
          Encryption: unknown
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

Now it seems that radio is disabled (low power consumption), but wireless LED is on and repeated wireless survey is done correctly... Quite a confusing state.

HW: TP-LINK TL-WA850RE(EU) v1.25 (SoC Atheros AR9341)
SW: latest official snapshot

root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Bleeding Edge'
DISTRIB_REVISION='r49195'
DISTRIB_CODENAME='designated_driver'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_DESCRIPTION='OpenWrt Designated Driver r49195'
DISTRIB_TAINTS=''

Attachments (0)

Change History (2)

comment:1 Changed 22 months ago by anonymous

run

ubus call network.wireless status

you might have radio setting

"disabled": false,

while interfaces section shows that interface is disabled, but radio actually stays on.

the solution to have it completely disabled is to add an

option disabled '1'

to both config sections in wifi config file, config wifi-device and config wifi-iface.

even with such a configuration doing a wifi survey will create tmp wifi interface.

comment:2 Changed 22 months ago by anm.nov

ubus call network.wireless status

This seems to give the same result as

wifi status

Anyway, the output:

root@OpenWrt:~# ubus call network.wireless status
{
        "radio0": {
                "up": false,
                "pending": false,
                "autostart": true,
                "disabled": true,
                "config": {
                        "channel": "11",
                        "hwmode": "11g",
                        "path": "platform\/ar934x_wmac",
                        "htmode": "HT20",
                        "disabled": true
                },
                "interfaces": [
                        {
                                "section": "@wifi-iface[0]",
                                "config": {
                                        "mode": "ap",
                                        "ssid": "OpenWrt",
                                        "encryption": "none",
                                        "network": [
                                                "lan"
                                        ],
                                        "mode": "ap"
                                }
                        }
                ]
        }
}

When I put 'disabled' option in wifi-iface section, I get this:

root@OpenWrt:~# ubus call network.wireless status
{
        "radio0": {
                "up": false,
                "pending": false,
                "autostart": true,
                "disabled": true,
                "config": {
                        "channel": "11",
                        "hwmode": "11g",
                        "path": "platform\/ar934x_wmac",
                        "htmode": "HT20",
                        "disabled": true
                },
                "interfaces": [

                ]
        }
}

Unfortunately, this seems to be the only change. I saw no other changes from situation described in previous post.

even with such a configuration doing a wifi survey will create tmp wifi interface.

I don't think so. When wireless is properly disabled (item 3 in previous post), there is no interface and no survey is possible:

root@OpenWrt:/etc/config# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP qlen 1000
    link/ether 14:cc:20:3f:30:9b brd ff:ff:ff:ff:ff:ff
4: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether 14:cc:20:3f:30:9b brd ff:ff:ff:ff:ff:ff
root@OpenWrt:/etc/config# iw dev wlan0 scan
command failed: No such device (-19)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.