Short wifi connections

Situation : Cudy v1 with OpenWrt 23.05.3 r23809-234f1a2efa / LuCI openwrt-23.05 branch git-24.073.29889-cd7e519.

Clients connect just for a short time, very strange. In the log there is :slight_smile:

Sat May 25 19:21:57 2024 daemon.info hostapd: phy1-ap0: STA 7c:2a:db:41:48:00 IEEE 802.11: authenticated
Sat May 25 19:21:57 2024 daemon.info hostapd: phy1-ap0: STA 7c:2a:db:41:48:00 IEEE 802.11: associated (aid 1)
Sat May 25 19:21:58 2024 daemon.notice hostapd: phy1-ap0: AP-STA-CONNECTED 7c:2a:db:41:48:00 auth_alg=open
Sat May 25 19:21:58 2024 daemon.info hostapd: phy1-ap0: STA 7c:2a:db:41:48:00 WPA: pairwise key handshake completed (RSN)
Sat May 25 19:21:58 2024 daemon.notice hostapd: phy1-ap0: EAPOL-4WAY-HS-COMPLETED 7c:2a:db:41:48:00
Sat May 25 19:22:14 2024 daemon.notice hostapd: phy0-ap0: AP-STA-DISCONNECTED aa:8b:fc:50:2f:a9
Sat May 25 19:22:20 2024 daemon.info hostapd: phy0-ap0: STA aa:8b:fc:50:2f:a9 IEEE 802.11: authenticated
Sat May 25 19:22:20 2024 daemon.info hostapd: phy0-ap0: STA aa:8b:fc:50:2f:a9 IEEE 802.11: associated (aid 1)
Sat May 25 19:22:28 2024 daemon.info hostapd: phy0-ap0: STA aa:8b:fc:50:2f:a9 IEEE 802.11: deauthenticated due to local deauth request
Sat May 25 19:23:18 2024 daemon.notice hostapd: phy1-ap0: AP-STA-DISCONNECTED 7c:2a:db:41:48:00
Sat May 25 19:23:18 2024 daemon.info hostapd: phy1-ap0: STA 7c:2a:db:41:48:00 IEEE 802.11: authenticated
Sat May 25 19:23:18 2024 daemon.info hostapd: phy1-ap0: STA 7c:2a:db:41:48:00 IEEE 802.11: associated (aid 1)
Sat May 25 19:23:18 2024 daemon.notice hostapd: phy1-ap0: AP-STA-CONNECTED 7c:2a:db:41:48:00 auth_alg=open
Sat May 25 19:23:18 2024 daemon.info hostapd: phy1-ap0: STA 7c:2a:db:41:48:00 WPA: pairwise key handshake completed (RSN)
Sat May 25 19:23:18 2024 daemon.notice hostapd: phy1-ap0: EAPOL-4WAY-HS-COMPLETED 7c:2a:db:41:48:00

Connection 7c:2a:db:41:48:00 is just for 2 seconds, very strange

wifi settings are

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/18000000.wifi'
        option channel '1'
        option band '2g'
        option htmode 'HE20'
        option country 'NL'
        option cell_density '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option mode 'ap'
        option ssid 'boskoop24G'
        option encryption 'psk2'
        option key '================'
        option network 'vlan17'
        option skip_inactivity_poll '1'
        option max_inactivity '86400'
        option disassoc_low_ack '0'
        option wmm '0'
        option dtim_period '1'

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'platform/18000000.wifi+1'
        option channel '36'
        option band '5g'
        option htmode 'HE80'
        option country 'NL'
        option cell_density '0'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option mode 'ap'
        option ssid 'boskoop5G'
        option encryption 'psk2'
        option key '================'
        option network 'vlan17'
        option skip_inactivity_poll '1'
        option max_inactivity '86400'
        option disassoc_low_ack '0'
        option wmm '0'
        option dtim_period '1'

Does anyone have an idea why clients get disconnected ?

All clients, or some clients ?

Do you own any Xiaomi devices ?

It seems to be all clients, I've checked the logging from 2 of the devices and ended up with the list below

0a:80:f1:d9:14:36
1a:2d:dc:3c:c2:13
20:68:9d:5b:4b:22 = LiteOn
22:7f:30:38:d7:b5 
2a:7d:a9:03:b5:b9
2a:90:93:b2:7f:62
42:66:de:62:fe:4f
66:6e:ce:da:f3:bf
6e:7a:d7:c2:d3:2a
70:66:55:78:f0:b9 = AzureWave
7c:2a:db:41:48:00 = Xiaomi 
82:ca:91:05:49:97
9e:1a:f9:d7:6e:70
aa:8b:fc:50:2f:a9
b2:e0:d5:ec:70:91
bc:6a:d1:a5:e6:9e = Xiamoi
c2:25:c8:91:b4:9d
d6:2e:ca:bb:56:5a
f8:c3:9e:89:2e:38 = Huawai
36:0c:18:66:1c:45
46:45:45:39:66:5c
66:a6:aa:1a:ee:37
6e:7a:d7:c2:d3:2a
82:8b:21:39:4a:4d
9a:1f:3b:c5:f1:19
aa:8b:fc:50:2f:a9
b6:4d:2e:e7:d4:22
b6:d9:6d:c5:ec:b6
ba:7a:ee:24:5a:99
c6:c1:35:71:87:e0
d0:39:57:79:30:dd = LiteOn
d4:1b:81:21:4f:ad = CHONGQING FUGUI ELECTRONICS
da:9c:f7:47:ef:85
de:51:be:4a:40:a2
e0:dc:ff:16:ce:ab = Xiaomi 
f8:c3:9e:89:2e:38 = Huawai
fe:93:9b:d0:86:75

It seems the most of the devices are not in the mac database ??

used : logread | grep "deauthenticated due to local deauth request" | cut -f 10 -d' ' | sort -u to find the mac adresses

It's so strange, the connection lasts 9 seconds

Sat May 25 22:58:44 2024 daemon.info hostapd: phy1-ap0: STA 6a:fe:ea:34:c8:d3 IEEE 802.11: authenticated
Sat May 25 22:58:44 2024 daemon.info hostapd: phy1-ap0: STA 6a:fe:ea:34:c8:d3 IEEE 802.11: associated (aid 1)
Sat May 25 22:58:53 2024 daemon.info hostapd: phy1-ap0: STA 6a:fe:ea:34:c8:d3 IEEE 802.11: deauthenticated due to local deauth request