Thanks all
In the AI era I've decided to give it to Claude. Case is partly-solved, meaning the Samsung devices connect but the actual root cause seems to be broken on both parties (Mikrotik and Samsung).
It has nothing to do with FT.
Analysis below:
SOLVED: Samsung appliances (SmartThings) won't stay connected to cAP ax / CAPsMAN – root cause and fix
Setup: CCR2004 as CAPsMAN controller. The access points are cAP ax and hAP ax3 on RouterOS 7.25 with the wifi-qcom package, traffic processing on the CAP, and one VLAN per SSID through datapath.vlan-id. The appliances are a Samsung fridge, oven, washer, dryer and dishwasher.
Symptom: the appliances only stayed connected to an open SSID. On any WPA2 SSID, onboarding failed with app error 15-200 / "cannot connect", or the device associated and then dropped in a loop. The MikroTik log showed disconnected, connection lost, followed 2 s later by connected, over and over.
What a capture shows
I captured over the air in monitor mode on the AP's channel, including the 4-way handshake, and decrypted it in Wireshark:
- Association and the 4-way handshake (M1–M4) succeed. The PTK and GTK are installed and unicast traffic decrypts fine.
- The station itself then sends a Deauthentication with reason 8 ("leaving"). The AP doesn't kick it.
- That deauth comes 0–10 ms after the 2nd–4th "unexpected" group-addressed (broadcast/multicast) frame the AP sent on that SSID.
- A test with WPA1/TKIP made it explicit: the fridge reported reason 14 (MIC failure), which then triggered the 60 s TKIP countermeasure lockout.
Root cause
The Samsung Wi-Fi module doesn't tolerate certain broadcast frames. A standard client silently discards a group frame it can't decrypt or doesn't understand. After a few such frames, the Samsung module instead treats the connection as broken and disassociates. I found three sources of these frames, and each one had to be removed:
- Other VLANs leaking into the SSID. The CAP's bridge had
vlan-filtering=no. That made the CAP flood broadcasts from every VLAN (still 802.1Q-tagged) out of every SSID. In the decrypted capture, these leaked frames failed decryption/MIC, while broadcasts from the SSID's own VLAN decrypted fine. To the station they are broadcast frames encrypted wrongly. This produced drops about 2 s after every connect.
- STP BPDUs. The CAP's own bridge (RSTP, the default) sends a BPDU every 2 s out of every port, including the wifi interfaces. Fixing #1 stretched sessions to 7–9 s, and the drop then landed on the ~4th BPDU (28 of 37 drops within 7 ms of a BPDU).
- CDP from neighbor discovery, from both the CAP and the router, because the router has VLAN interfaces for the SSID VLANs. With STP off, every drop (7/7) came 0–10 ms after a CDP frame, usually the 2nd–4th CDP frame of the session. Sessions therefore lasted a multiple of the 30 s discovery interval (27–58 s).
Were the BPDU/CDP frames badly encrypted? Not at the level visible without the key. I checked every group frame on that SSID in both captures (about 130k frames in total). The trigger frames use the same GTK (key ID 1) as the ARP/DHCP broadcasts the fridge accepts. Their CCMP packet numbers increase strictly in sequence with all the other group frames: there are no replays and no out-of-order packet numbers, so no replay-check failure. From the outside they are encrypted exactly like the frames the fridge happily accepts.
What does set them apart is the payload format. BPDUs (LLC 42 42 03) and CDP (SNAP with the Cisco OUI 00 00 0C) are 802.3/LLC frames. Every normal frame (IP, ARP) is Ethernet II, which 802.11 always carries behind the RFC 1042 SNAP header AA AA 03 00 00 00. My best explanation is that Samsung's Wi-Fi firmware treats a decrypted frame without that standard header (or a tagged foreign-VLAN frame) as a decryption/integrity failure. It counts it like a MIC failure (compare the reason-14 result under TKIP) and after a few of them deauths "to recover". A standards-compliant client just drops or passes up such frames. So it's a Samsung firmware bug triggered by legitimate-but-unusual broadcast frames. For the leaked VLAN frames in #1, the bad decryption was actually observed.
Fix
You need all three. Each one alone only made the sessions longer.
# 1) On every CAP: enable VLAN filtering so only the SSID's own VLAN reaches it
/interface bridge vlan
add bridge=bridge tagged=bridge,ether1 vlan-ids=<mgmt>
add bridge=bridge tagged=ether1 vlan-ids=<ssid vlans> # wifi VAPs are added dynamically
/interface bridge set bridge vlan-filtering=yes # careful: have mgmt VLAN right first
# 2) On CAPs with a single uplink: STP off, loop protection on spare ports instead
/interface bridge set bridge protocol-mode=none
/interface ethernet set ether2 loop-protect=on
# 3) Router and CAPs: neighbor discovery only on the management/LAN interfaces
/interface list add name=DISCOVERY
/interface list member add list=DISCOVERY interface=<mgmt vlan>
/ip neighbor discovery-settings set discover-interface-list=DISCOVERY
Notes:
- A bridge filter rule (
chain=output dst-mac-address=01:80:C2:00:00:00/FF:FF:FF:FF:FF:FF) does not stop BPDUs. They bypass the bridge filter (0 matches). Use protocol-mode=none.
- Setting
edge=yes on the wifi ports doesn't stop BPDUs either. Edge ports still send them.
- I ruled out FT, PMF, WPS, PMKID, MTU, firewall/DNS, password complexity and signal strength. None of them changed anything.
Result: the fridge has been connected to WPA2 for hours with no periodic drops. All the Samsung appliances moved to WPA2, and the open SSID and its VLAN are gone.
How to check if you have the same problem
- In the log, look at the interval between
disconnected events for the device. About 2 s points to leaked VLAN frames; about 4–8 s points to BPDUs (2 s hello); a multiple of 30 s (typically 60 s) points to CDP from neighbor discovery.
- Capture over the air from a laptop in monitor mode, on the AP's channel, filtered to the AP's BSSID. If the station sends deauth reason 8 a few ms after a broadcast/multicast frame from the AP, it's this issue.
- Check that the CAP bridge has
vlan-filtering=yes, and look at which broadcast frames actually reach the SSID (/tool sniffer on the wifi interface).