Hotspot (ap0) starts successfully but SSID never broadcasts / invisible to any client — Tecno LG6n (MT6768, Android 12)
Device Info
- Device: Tecno Pova Neo 2 (LG6n), MediaTek MT6768
- Android version: 12 (build SP1A.210812.016 / 230510V1293)
- Root: Magisk (Kitsune fork), ReZygisk, bootloader unlocked,
secure: no - Interfaces available: both
wlan0andwlan1exist under/sys/class/net/(confirmed vials)
Problem
After running virtualap start, the script completes with no errors and reports the AP as fully active:
Auto upstream: table wlan0 (wlan0)
Creating virtual AP interface 'ap0' on wlan0...
Configuring gateway address 192.168.42.1...
Installing routes and policy rules...
Network configuration completed.
Generating service configs (band 5GHz, channel 36)...
Starting hostapd (5GHz ch 36, 80MHz)...
hostapd running (PID 7609, 80MHz)
Starting dnsmasq...
dnsmasq running (PID 7624)
VirtualAP is ACTIVE!
SSID : PAK-Link 5G (5GHz, channel 36, 80MHz)
Gateway : 192.168.42.1 (static - never changes)
Upstream: wlan0 (table wlan0)
ip link show ap0 also confirms the interface is fully up:
48: ap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether fa:c7:45:9c:8a:4d brd ff:ff:ff:ff:ff:ff
However, the SSID never appears in a WiFi scan on any test device — tried:
- Windows laptop (multiple driver resets, airplane mode toggle, no result)
- A second Android phone
- Both report zero visible network with this SSID, at any band/channel
What I've tried (all failed to fix visibility)
- Band changes: 2.4GHz (ch 6, 20MHz) and 5GHz (ch 36 and ch 157, 80MHz) — no difference
- Regulatory domain:
iw reg getshowedcountry 00: DFS-UNSETwithPASSIVE-SCANflagged on all 5GHz ranges. Manually patched the script's hardcodedcountry_code=UStocountry_code=AE(my actual region) inwrite_hostapd_conf(). Confirmed the generatedhostapd.confpicks upcountry_code=AEcorrectly on next start — no change in visibility. - Stock/native Android hotspot (not VirtualAP) was also tested as a baseline — also invisible to all test devices, at any band. This suggests the issue may not be VirtualAP-specific, but I'm filing here since VirtualAP is the tool I'm trying to get working, and the identical failure mode may still be relevant to how
ap0is being created here (e.g., wrong physical interface being targeted). - Confirmed
wlan1exists as a separate interface alongsidewlan0(ls /sys/class/net/) — not yet tried forcing VirtualAP to use it via-w wlan1, wanted to raise this first in case there's a known reason it wouldn't apply.
Question / request
- Is there a known MT6768 same-channel/same-radio concurrency limitation where
hostapdbelieves it's transmitting (PID alive, interface UP) but the firmware silently drops AP-mode beacon frames when bound towlan0(the STA-mode interface)? - Would forcing the AP interface onto
wlan1(if it's a distinct hardware-mapped vif on this chipset) be expected to help, or is that not how MTK's vif allocation works? - Any diagnostic logs (hostapd.log, dnsmasq.log, dmesg/logcat around AP start) that would help narrow this down further? Happy to provide.
Let me know what additional info would help debug this.
Update: confirmed the issue is not with visibility alone — after VirtualAP is started (even after stop), the native/stock Android hotspot also stops working until a full device reboot. This suggests VirtualAP's ap0 creation/teardown is leaving the WiFi radio/driver in a corrupted state that isn't being cleaned up on stop.
If there is no solution for this, we have to acknowledge it as a hardware limitation.
Make sure your upstream is 5GHz Wi-Fi. On some devices, you cannot have a 2.4GHz hotspot while using 5GHz Wi-Fi as the upstream.
Try disabling Wi-Fi, turning on mobile data, and enabling 2.4GHz mode. This should create the hotspot in 2.4GHz mode.
Other devices will pick it up.
I reproduced a similar symptom on a Realme RMX2151 with a MediaTek gen4m Wi-Fi driver. This may or may not be the same cause as on the Tecno LG6n, especially since the stock hotspot also fails in the original report.
With the phone connected to a 5 GHz Wi-Fi upstream, VirtualAP created ap0 and hostapd reported AP-ENABLED, but no client could see the SSID. The kernel log showed:
mtk_p2p_cfg80211_start_ap: Remove sap (role0)
In this driver, that branch returns success before starting the AP when role 0 is selected, a STA is connected, dual-AP mode is configured, and SapConcurrencyPolicy is REMOVE. That explains why hostapd reports success without beacons on my device.
I tested a reversible workaround: before starting VirtualAP, I ran iw dev wlan0 interface add vapreserve type __ap. This occupied role 0, so VirtualAP's ap0 was allocated role 1. Its SSID then appeared on two clients; a client connected and reached the internet through the phone's Wi-Fi upstream. After stopping VirtualAP, I removed the temporary interface with iw dev vapreserve del. The stock Settings hotspot was visible again.
An app-side workaround for affected devices could reserve role 0 before creating ap0 and remove the reservation on every stop/error path. It should be gated to drivers exhibiting this behavior, since it uses an extra AP role and could conflict with other Wi-Fi modes. A kernel fix can instead allocate the new AP directly on role 1 when that policy applies.
For the LG6n, checking dmesg around VirtualAP startup for Remove sap (role0) would help determine whether this is the same driver path. Because the stock hotspot also fails there, I would not assume the same diagnosis without that log.
I'm not sure if my issue is exactly the same, but when I first start the access point, I can connect to it normally. However, if I stop the AP and start it again without turning the WiFi off and then on, the AP doesn't appear on any device.