Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] wpa_supplicant or iwd disconnects from AP reason 4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Tue Nov 21, 2023 10:13 am    Post subject: [Solved] wpa_supplicant or iwd disconnects from AP reason 4 Reply with quote

After upgrade to kernel 6.6.x I noticed often disconnection from home wifi AP (Mikrotil 2,4 GHz 40 HT).
Mobile phones wifi connections seem OK.
I have 2 similar laptops - Acer TM 115 and 116.
I use NetworkManager with wpa_supplicant. I tried on one laptop change wpa_supplicant to iwd but it makes the same problem.

Code:
# LC_ALL=C systemctl status iwd
* iwd.service - Wireless service
     Loaded: loaded (/lib/systemd/system/iwd.service; disabled; preset: disabled)
     Active: active (running) since Tue 2023-11-21 10:08:13 CET; 58min ago
       Docs: man:iwd(8)
             man:iwd.config(5)
             man:iwd.network(5)
             man:iwd.ap(5)
   Main PID: 499 (iwd)
      Tasks: 1 (limit: 9425)
     Memory: 2.2M
        CPU: 1.882s
     CGroup: /system.slice/iwd.service
             `-499 /usr/libexec/iwd

Nov 21 10:51:39 hope iwd[499]: Received Deauthentication event, reason: 4, from_ap: false
Nov 21 10:53:36 hope iwd[499]: Received Deauthentication event, reason: 4, from_ap: false
Nov 21 10:53:39 hope iwd[499]: Received Deauthentication event, reason: 4, from_ap: false
Nov 21 10:53:39 hope iwd[499]: Received Deauthentication event, reason: 4, from_ap: false
Nov 21 10:53:39 hope iwd[499]: Received Deauthentication event, reason: 4, from_ap: false
Nov 21 10:53:42 hope iwd[499]: Received Deauthentication event, reason: 4, from_ap: false
Nov 21 10:53:42 hope iwd[499]: Received Deauthentication event, reason: 4, from_ap: false
Nov 21 10:53:42 hope iwd[499]: Received Deauthentication event, reason: 4, from_ap: false
Nov 21 10:53:45 hope iwd[499]: Received Deauthentication event, reason: 4, from_ap: false
Nov 21 10:53:46 hope iwd[499]: Received Deauthentication event, reason: 4, from_ap: false


I use on both BORE ( https://github.com/firelzrd/bore-scheduler ) patched gentoo-sources with experimental use flag and native cpu set compiled with LTO by clang.
Change is only new kernel and BORE patch.


Last edited by DeIM on Tue Nov 28, 2023 7:33 am; edited 1 time in total
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Sat Nov 25, 2023 10:57 am    Post subject: Reply with quote

Just updated RouterOS on AP from 6.x.x line to 7.12.1. 20 mins uninterrupted since update. Will test...
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Sat Nov 25, 2023 11:23 am    Post subject: Reply with quote

~35 mins and then reason 4 again.
Laptop has combined bt and WiFi. When disconnection occurs I have connected mobile to bt and playing audio it interrupts.
I'll try to disable Bluetooth completely. if it will disconnect also.
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Sat Nov 25, 2023 1:12 pm    Post subject: Reply with quote

Found in DHCP server expired instead of countdown value for devices. I've tried to set DHCP timeout to 2 days. Now I'm almost 2 hours without disconnection.
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Tue Nov 28, 2023 7:33 am    Post subject: Reply with quote

OK seem solved - problem IMO was with combination:
Channel Width: 20/40MHz XX
Frequency: 2412

Solution:
Set Frequency to auto
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Thu Nov 30, 2023 2:48 pm    Post subject: Reply with quote

Not solution at all as 20/40MHz XX auto-selected 2412 problem returned.

Solution is to select another channel as fixed in my case 2452
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum