One of my Linux boxes, having a wireless NIC, connects to a remote machine and suddenly started disconnecting. Sometimes this wireless device disconnect after an hour, sometimes after 10 hours or sometimes after 27 hours but I have to keep this machine running for at least 5 consecutive days without interruption.

This Wi-Fi stack connects to a 802.1x WPA2 enterprise and the Access Point is just three (3) feet away from the machine (running in stationary mode).

Nothing relevant to Network seems to be logged in dmesg, syslog, klog or any other /var/log.

How should I proceed?

  • 2
    3 feet from the access point? Why not plug it into the access point or add a hub to the access point if it has no free RJ45 ports. Which distro/kernel are you running on?
    – Fabby
    Aug 14 '18 at 19:25
  • Is your Linux machine still running?
    – dan
    Aug 14 '18 at 20:44
  • @Fabby its Ubuntu 16.04
    – SHW
    Aug 15 '18 at 2:06
  • @danielAzuelos yes. Its still up and running but with Network interrupted though it auto connects after a while.
    – SHW
    Aug 15 '18 at 2:07
  • I solve such problems with scripts doing automatical re-initialization of the interface if there is no ping reply. As the last resort, you can go even until kernel module reload. It is not beautiful, but it is rock solid.
    – peterh
    Aug 15 '18 at 2:17

You say the client is only three feet (1m) away from the AP. One option would be simply to connect the two with a network cable and sidestep the entire wireless dropouts problem entirely.

  • That would be very weird solution. I am very much concern about the reason behind disconnection. I kept this machine so close to nullify the strength problem. Strength of this AP noted at Machine was above 60%
    – SHW
    Aug 15 '18 at 7:59
  • Why waste time trying to solve an issue that can be easily side-stepped?
    – roaima
    Aug 15 '18 at 8:33
  • OK. This can be side-stepped for machine? But what about mobile, roaming laptops?
    – SHW
    Aug 15 '18 at 9:39
  • You haven't asked about a mobile roaming laptop. You described a fixed machine 1m away from its AP that you needed to keep connected for a minimum of five days
    – roaima
    Aug 15 '18 at 12:30

Your problem is the usual wireless network problem. Neither a typical Linux one nor of any AP OS.

Start analysing your wireless environment with a tool permitting to identify and timestamp the interference problems inside the 2 WLAN band (2.4 GHz, 5 GHz) and with Bluetooth and wireless phones (1.8 - 1.9 GHz).

As good starting points I suggest you to look at:




I used professionnaly for years with great success.

  • I think it is more likely a driver problem, unfortunately.
    – peterh
    Aug 15 '18 at 2:26
  • Which driver is it?
    – dan
    Aug 15 '18 at 4:48
  • It could be driver issue but I need to be much sure. And question is How? Underlying driver is RTL8821AE
    – SHW
    Aug 15 '18 at 5:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.