Wi-Fi randomly dropping out

Latest OSMC running on Raspberry Pi 3 Model B Plus Rev 1.3.

Seems like with the last OSMC update, my Wi-Fi started dropping out randomly for some reason.
I can either restart RPi or I can also fiddle with network settings but it will never reconnect on its own.

The error always starts at this line in logs:

Jun 19 05:20:40 osmc wpa_supplicant[202]: wlan0: CTRL-EVENT-DISCONNECTED bssid=68:e2:09:65:af:f4 reason=0 locally_generated=1
Jun 19 05:20:40 osmc wpa_supplicant[202]: dbus: wpa_dbus_property_changed: no property SessionLength in object /fi/w1/wpa_supplicant1/Interfaces/1

That’s 5 in the morning while I was asleep.

I googled a bit and the error is pretty much exactly this case:
https://bugzilla.redhat.com/show_bug.cgi?id=1947166

Any help is appreciated.

Can you post full logs so we can check which version of OSMC you are using?

Here’s the full log with some samba paths removed: http://paste.osmc.tv/akigiboxez

@myschoo another thing to check is

iwconfig wlan0

replace wlan0 with the appropriate interface if its not it sometimes the wifi signal is just bad, instead of just checking logs

should reproduce a log like this

wlan0     IEEE 802.11abgn  ESSID:"redacted"
          Mode:Managed  Frequency:5.18 GHz  Access Point: 74:44:44:44:57:FC
          Bit Rate=6 Mb/s   Tx-Power=15 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=41/70  Signal level=-69 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:28   Missed beacon:0

the important part is

          Link Quality=41/70  Signal level=-69 dBm
          Tx excessive retries:0  Invalid misc:28   Missed beacon:0

tells you if you need to move your rpi to a better spot

my experiance is somewhere around 40-58 ish db for 2.4 ghz is nice the further higher up you are the shitter the signal gets the less good transfer rates you will get

for 5gzh you can stretch it a little bit more before it gets shitty

Hope this helps

I will just add that I had this setup for years and it only started happening in the last couple months but I didn’t have time to deal with it so I always just restarted Kodi before using it.

osmc@osmc:~$ iwconfig wlan0
wlan0     IEEE 802.11  ESSID:"xxxxxx"
          Mode:Managed  Frequency:5.24 GHz  Access Point: 68:E2:09:65:AF:F4
          Bit Rate=433.3 Mb/s   Tx-Power=31 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=55/70  Signal level=-55 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

its not always about where you got your stuff its, about where your neighbors etc, new stuff added that can negatively effect wifi signal, in the end its just a simple radio signal thats easily effected by multiple stuff in its environment but looking at the sure it looks ok some short retries but nothing that sticks out.

Unfortunately, it keeps happening. Always the same stuff in the logs, it just drops out.

I tried different power supply and replaced my SD card with brand new SanDisk card but that didn’t help. In the end I just downgraded to previous OSMC image and I’m no longer having the issues.

obrázok