[FS#550] hostapd (wpad-mesh) fails to start interface at same time with meshpoint interface
LEDE Bugs
lede-bugs at lists.infradead.org
Wed Feb 22 07:20:56 PST 2017
A new Flyspray task has been opened. Details are below.
User who did this - Charlemagne Lasse (charlemagnelasse)
Attached to Project - LEDE Project
Summary - hostapd (wpad-mesh) fails to start interface at same time with meshpoint interface
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - Test device: OM2P from 2011 with ath9k and ar71xx subtarget
Version: LEDE 17.01.0-rc1 branch commit reboot-3208-g349577adbf
Build the image with following .config
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_DEVICE_OM2P=y
CONFIG_OPENSSL_WITH_DEPRECATED=y
CONFIG_OPENSSL_WITH_EC=y
CONFIG_OPENSSL_WITH_NPN=y
CONFIG_OPENSSL_WITH_PSK=y
CONFIG_OPENSSL_WITH_SRP=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_PACKAGE_wpad-mesh=y
# CONFIG_PACKAGE_wpad-mini is not set
Then modify /etc/config/wireless to look like this:
config wifi-device 'radio0'
option type 'mac80211'
option channel '1'
option hwmode '11g'
option path 'pci0000:00/0000:00:00.0'
option htmode 'HT20'
option disabled '0'
config wifi-iface 'ap2'
option device 'radio0'
option ifname 'ap-2'
option network 'lan'
option mode 'ap'
option ssid 'meshedAP'
option macaddr 'ac:86:74:00:00:01'
option encryption 'none'
config wifi-iface 'mesh2'
option device 'radio0'
option ifname 'mesh-2'
option network 'lan'
option mode 'mesh'
option mesh_id 'mymesh'
option disabled '0'
option mcast_rate '54000'
option macaddr 'ae:86:74:00:00:01'
option mesh_ttl 1
option mesh_fwding 0
option encryption 'none'
option ieee80211w 1
option encryption 'psk2+aes'
option key 'reallysecretkey'
The iw dev output looks then like this:
phy#0
Interface ap-2
ifindex 8
wdev 0x3
addr ac:86:74:00:00:01
type AP
txpower 20.00 dBm
Interface mesh-2
ifindex 7
wdev 0x2
addr ae:86:74:00:00:01
type mesh point
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
txpower 20.00 dBm
Setting encryption to "none" doesn't help. But it seems to work fine when the mesh interface is disabled in uci
phy#0
Interface ap-2
ifindex 11
wdev 0x6
addr ac:86:74:00:00:01
ssid meshedAP
type AP
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
txpower 20.00 dBm
This could become a big problem for freifunk-gluon when 802.11s is used instead of IBSS in the site.conf. Their setup is using AP + mesh on the same PHY
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=550
More information about the lede-bugs
mailing list