[FS#644] WiFi fails with AP & Meshpoint interfaces
LEDE Bugs
lede-bugs at lists.infradead.org
Mon Mar 20 01:19:22 PDT 2017
A new Flyspray task has been opened. Details are below.
User who did this - Terry Gillett (tgillett)
Attached to Project - LEDE Project
Summary - WiFi fails with AP & Meshpoint interfaces
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - High
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details -
Since this commit:
r3307-649e766"mac80211: update to wireless-testing 2017-01-31" dated 2 Fed 2017
wifi does not correctly support concurrent AP and Meshpoint interfaces.
Immediately prior to the commit (r3306-91fce81), the problem is not in evidence.
In failure, the 'iw dev' command shows details of both interfaces, but he "channel" line is missing from the command output for the Meshpoint interface and the Meshpoint interface is not actually working.
The firmware operates correctly with two AP interfaces defined, or with two Meshpoint interfaces defined.
Also the "top" command shows a high level of CPU utilisation, typically 50% for [kworker/u2:2]
- Device problem occurs on:
Various. Tested here on AR9331 based Dragino-2 / VT MeshPotato-2 device
- Software versions of LEDE release, packages, etc.
Working
DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r3306-91fce81'
Not Working
DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r3307-649e766'
- Steps to reproduce
Check out the required version of LEDE
Remove .config
Run 'make menuconfig' and select a suitable device
Set up a suitable file in ./files/etc/config/wireless to set up AP and Meshpoint interface
Run make
Flash the sysupgrade file on to the device
Run 'iw dev' and check to see if both interface are working properly.
In failure, the Meshpoint interface will not show a "channel" line in 'iw dev output.
Sample test results
-------------------
Working
----------
DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r3306-91fce81'
DISTRIB_REVISION='r3306-91fce81' Dragino
root at MP2-20:~# iw dev
phy#0
Interface wlan0
ifindex 7
wdev 0x3
addr 02:03:7f:11:22:33
ssid MyTestAP
type AP
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
txpower 16.00 dBm
Interface wlan0-1
ifindex 6
wdev 0x2
addr 00:03:7f:11:22:33
type mesh point
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
txpower 16.00 dBm
Mem: 19992K used, 40440K free, 148K shrd, 2168K buff, 6232K cached
CPU: 5% usr 3% sys 0% nic 89% idle 0% io 0% irq 0% sirq
Load average: 0.38 0.39 0.17 1/41 1811
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
1200 1 root S 1648 3% 1% /usr/sbin/hostapd -s -P /var/run/wifi
1784 1695 root R 1180 2% 1% top -d 2
950 1 root S 1672 3% 0% /sbin/netifd
------------------------------------------------------------
Not Working
-----------
DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r3307-649e766'
DISTRIB_REVISION='r3307-649e766' Dragino
root at MP2-20:~# iw dev
phy#0
Interface wlan0
ifindex 7
wdev 0x3
addr 02:03:7f:11:22:33
ssid MyTestAP
type AP
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
txpower 16.00 dBm
Interface wlan0-1
ifindex 6
wdev 0x2
addr 00:03:7f:11:22:33
type mesh point
txpower 16.00 dBm
Mem: 19624K used, 40808K free, 56K shrd, 2128K buff, 5604K cached
CPU: 0% usr 50% sys 0% nic 47% idle 0% io 0% irq 0% sirq
Load average: 2.24 1.75 0.83 7/40 2271
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
2162 2 root RW 0 0% 50% [kworker/u2:2]
578 1 root R 1228 2% 1% /sbin/logd -S 64
2163 2130 root R 1184 2% 1% top -d2
Example wireless config file
----------------------------
config wifi-device 'radio0'
option type 'mac80211'
option phy 'phy0'
option htmode 'HT20'
option channel '1'
option disabled '0'
option coverage '5'
config wifi-iface 'ap_0'
option device 'radio0'
option ifname 'wlan0'
option network 'lan'
option mode 'ap'
option ssid 'MyTestAP'
option encryption 'psk2'
option key 'mypassword'
option hidden '0'
option disabled '0'
option isolate '0'
config wifi-iface 'ah_0'
option device 'radio0'
option ifname 'wlan0-1'
option mode 'mesh'
option mesh_id 'mytestmesh'
option network 'mesh_0'
option encryption 'none'
option disabled '0'
option mesh_fwding '0'
---------------------------------
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=644
More information about the lede-bugs
mailing list