openwrt / mt76

mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
752 stars 342 forks source link

secondary AP not running if in STA mode #473

Open alex-eri opened 4 years ago

alex-eri commented 4 years ago

STA works, but without WDS support

OpenWrt 19.07.4, r11208-ce6496d796, MediaTek MT7628AN ver:1 eco:2, Linux 4.14.195

in log I have many lines

daemon.err hostapd: Failed to set beacon parameters
daemon.notice hostapd: handle_probe_req: send failed
lukasz1992 commented 4 years ago

Don't count on WDS: https://patchwork.kernel.org/project/linux-wireless/patch/20201113101148.25268-1-johannes@sipsolutions.net/

kofec commented 4 years ago

But this is some kind of old version of WDS: https://patchwork.kernel.org/project/linux-wireless/patch/1476779337-3520-1-git-send-email-johannes@sipsolutions.net/ _The old WDS 4-addr frame support is very limited, e.g.

These make the WDS legacy mode useless in practice.

All of these are resolved by the 4-addr AP/client support, so there's also no reason to improve WDS in the future.

Therefore, add a Kconfig option to disable legacy WDS. This gives people an "emergency valve" while they migrate to the better-supported 4-addr AP/client option; we plan to remove it (and the associated cfg80211/mac80211 code, which is the ultimate goal) in the future._

alex-eri commented 4 years ago

Problem exists with WDS off. I tryed pseudobridge with relayd too.

simontretter commented 2 years ago

Similar issue here on GL-MT1300 (MT7615D) 2.4Ghz when trying to use STA/AP on the same radio.

DISTRIB_ID='OpenWrt' DISTRIB_RELEASE='SNAPSHOT' DISTRIB_REVISION='r19119-da2b97210c' DISTRIB_TARGET='ramips/mt7621' DISTRIB_ARCH='mipsel_24kc' DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r19119-da2b97210c'

Tue Mar 15 13:06:54 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0-1) --> new PHY Tue Mar 15 13:06:54 2022 kern.info kernel: [ 306.269406] br-lan: port 3(wlan0-1) entered blocking state Tue Mar 15 13:06:54 2022 kern.info kernel: [ 306.274981] br-lan: port 3(wlan0-1) entered disabled state Tue Mar 15 13:06:54 2022 kern.info kernel: [ 306.281491] device wlan0-1 entered promiscuous mode Tue Mar 15 13:06:54 2022 daemon.notice hostapd: wlan0-1: interface state UNINITIALIZED->ENABLED Tue Mar 15 13:06:54 2022 daemon.notice hostapd: wlan0-1: AP-ENABLED Tue Mar 15 13:06:56 2022 daemon.notice netifd: radio0 (6384): sh: out of range Tue Mar 15 13:06:56 2022 daemon.notice netifd: Wireless device 'radio0' is now up Tue Mar 15 13:06:56 2022 daemon.notice netifd: Interface 'test' is enabled Tue Mar 15 13:06:56 2022 daemon.notice hostapd: handle_probe_req: send failed Tue Mar 15 13:07:02 2022 daemon.notice wpa_supplicant[3621]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN Tue Mar 15 13:07:11 2022 daemon.notice hostapd: handle_probe_req: send failed Tue Mar 15 13:07:11 2022 daemon.notice hostapd: handle_probe_req: send failed Tue Mar 15 13:07:11 2022 daemon.notice hostapd: handle_probe_req: send failed Tue Mar 15 13:07:12 2022 daemon.notice hostapd: handle_probe_req: send failed Tue Mar 15 13:07:12 2022 daemon.notice hostapd: handle_probe_req: send failed Tue Mar 15 13:07:12 2022 daemon.notice hostapd: handle_probe_req: send failed Tue Mar 15 13:07:12 2022 daemon.notice hostapd: handle_probe_req: send failed Tue Mar 15 13:07:17 2022 daemon.notice hostapd: handle_probe_req: send failed Tue Mar 15 13:07:18 2022 daemon.notice hostapd: handle_probe_req: send failed Tue Mar 15 13:07:27 2022 daemon.notice hostapd: handle_probe_req: send failed