1

There are obviously a number of similar questions here, e.g.:

and a plethora of suggested solutions. I tried a number of these fixes but they didn't work. So I thought I'd try and understand the problem more. Running sudo journalctl -fu NetworkManager will give me the message

Aug 21 17:48:41 timhome NetworkManager[864]: <warn>  [1598003321.0959] sup-iface[0x560c59b0b0b0,wlp1s0]: connection disconnected (reason -4)

whenever the wifi disconnects. In particular, I'm interested in the meaning of (reason -4). I just couldn't find any reference for these codes. Can anyone help me?

Tim Mak
  • 119
  • I have the same issue! sup-iface suggests that the problem has something to do with wpa_supplicant. That's all I've found so far. – krubo Sep 17 '21 at 19:35
  • It may have to do with this issue: https://bugzilla.kernel.org/show_bug.cgi?id=203709 – krubo Sep 17 '21 at 20:19
  • Following a comment on kernel.org, I was able to eliminate this problem by disabling IPv6 via grub. (Disabling IPv6 via NetworkManager didn't actually disable it.) I have no idea why this helped, but my wifi works much better now. – krubo Sep 29 '21 at 21:15

1 Answers1

0

According to this post, you can find the reason codes here. According to this you look up the code by going through the list in order. I suppose reason -4 means the 4th reason from the bottom, which corresponds to:

    /* Device disconnected by user or client */
    NM_DEVICE_STATE_REASON_USER_REQUESTED,

This suggests it is my computer which is disconnecting from the router, rather than say due to signal loss.

Tim Mak
  • 119
  • I'm pretty sure the negative error codes mean the error isn't on that list at all and that NetworkManager is propagating the error code from another subsystem (in this case from iwlwifi or wpa_supplicant). That list may help if it was a positive error code. – krubo Sep 29 '21 at 21:22