1

I know this is a common problem. I've searched and searched for a solution but nothing has helped me.

I have a 5GHz WiFi network that I'd rather be on because it allows me to reach higher speeds, but Ubuntu regularly boots me off the network and prompts me for the password. It's rather sporadic and inconsistent - sometimes I'll be randomly prompted for the network password, and sometimes it'll take it and reconnect me, or it'll prompt again a few seconds later, or it'll just boot me off entirely. This issue also occurs on a clean installation of Ubuntu.

Similar issues do not occur on other computers running other operating systems. I've discovered that I can delay the issue from occurring by rebooting my router, but it will only be okay for a day or two before Ubuntu starts kicking me off the network again. This issue does not occur on the 2.4GHz variant of my network. I don't recall all of the things that I've tried (and failed) to solve my issue, but I do recall disabling 802.11n in Ubuntu. Unsurprisingly, this did nothing to alleviate the problem.

I am not well-versed when it comes to using Linux and I usually don't understand how to carry out another user's instructions which is part of what made researching solutions so difficult. Can anyone help me out here? I've almost completely lost my patience with this rather ridiculous problem.

Edit: Here's the output of iwconfig (I've cut out my SSID name and replaced it with ProblematicNetwork):

lo        no wireless extensions.

enp6s0    no wireless extensions.

wlp7s0    IEEE 802.11  ESSID:"ProblematicNetwork"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: FC:2B:B2:BF:0F:92   
          Bit Rate=65 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=69/70  Signal level=-41 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:106   Missed beacon:0

And, here's the output of iwconfig, but showing the network's 5GHz ability:

lo        no wireless extensions.

enp6s0    no wireless extensions.

wlp7s0    IEEE 802.11  ESSID:"ProblematicNetwork"  
          Mode:Managed  Frequency:5.785 GHz  Access Point: FC:2B:B2:BF:0F:96   
          Bit Rate=292.6 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=61/70  Signal level=-49 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:3  Invalid misc:79   Missed beacon:0
14
  • Edit your question and show me iwconfig. Start comments to me with @heynnema or I'll miss them.
    – heynnema
    May 30, 2020 at 19:04
  • @heynnema I've edited the post. May 30, 2020 at 19:41
  • @user68186 I've edited the post (posted twice so both will be notified). May 30, 2020 at 19:41
  • @user68186 done. I realized that it was only running at 2.4GHz when I first ran iwconfig. The first time I ran the command was soon after I rebooted the router because I couldn't even connect to the 5GHz network. May 30, 2020 at 20:01
  • 1
    kindly try the solution here. might work for you askubuntu.com/questions/1080645/…
    – ptetteh227
    Jun 2, 2020 at 17:41

2 Answers 2

3

First, there are two SSIDs with the same name, ProblematicNetwork. One is the 2.4 gHz segment and the other is the 5 gHz segment of, I assume, the same router. I am quite confident that you have told Network Manager to connect automagically to ProblematicNetwork when available and that your dropping is the wireless device hopping from one instance of ProblematicNetwork to the other, always looking for a better connection, sort of like my ex-girlfriend!

I suggest that you rename one or both to prevent this. Perhaps ProblematicNetwork-2.4 and ProblematicNetwork-5.

Next, there are several things that you might tweak to make your connection even better.

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Then set your regulatory domain explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save (Ctrl+o followed by Enter) and close (Ctrl+x) the text editor.

Any improvement?

4
  • I've followed through all your instructions, but it'll be at least a day before I can confirm whether or not this solved my issue as I've recently rebooted my router, and the issue tends to only show itself no sooner than one day after a reboot. The network in question is actually a singular network capable of both 2.4GHz and 5GHz operation (I have two others which are separate 2.4GHz and 5GHz networks). The security of the network is WPA2-AES that supports channel widths of 20/40/80, and is set for 802.11 A, N, AC (when in 5GHz mode). In 2.4, it's set for B, G, and N, all default. May 30, 2020 at 20:44
  • If this router/network is a mesh with Smartconnect, one network name for both 2.4/5GHz is fine.
    – heynnema
    May 31, 2020 at 20:09
  • Well, it didn't solve the issue. It just occurred again. Jun 2, 2020 at 7:03
  • FYI: Please see Update #1 in my answer.
    – heynnema
    Jun 2, 2020 at 15:52
0

I need a better understanding of your network configuration, as I suspect a channel interference problem.

How many routers do you have?

In your router(s) you can set each 2.4/5GHz network to specific channels. In 2.4GHz it might be channels 1-11 or auto. In 5GHz it might be between ~36 to ~149. That's the info I'm looking for.

Do you have Wifi Analyzer installed on your smartphone? Also show me iwlist wlp7s0 freq.

Please complete this table and enter it into your question...

Router #1   2.4GHz name   2.4GHz channel   5GHz name      5GHz channel
--------- | ----------- | -------------- | ------------ | ------------
basement                     11/auto                          140?

Router #2   2.4GHz name   2.4GHz channel   5GHz name      5GHz channel
--------- | ----------- | -------------- | ------------ | ------------
upstairs

Update #1:

The problem is that the basement router's 5 GHz network is set to a channel that's outside of the capabilities of your modem card. Note on the iwlist wlp7s0 freq command when connected to the 5 GHz network, it shows that you're connected to frequency 5.785 GHz, but the your card only goes as high as channel 140, frequency 5.7 GHz.

      Channel 140 : 5.7 GHz
      Current Frequency:5.785 GHz

You need to set the 5GHz channel to one of the highest number channels that both the router and the modem card support. It might be 140, or it might be a channel slightly lower. Higher channels work better.

You also need to assure that the upstairs router's 2.4 GHz and 5 GHz channel settings are different than the basement router's settings.

Better yet, would be to eliminate the upstairs router, move the basement router upstairs, and let it cover the entire house. Any blind spots should be fixed by adding repeaters, or by getting a newer/stronger router.

Lastly, how are you connecting two routers to one cable/DSL modem?

20
  • I've got two routers. There's one for the network I'm having issues with (which is for the basement), and there's the other that broadcasts for the upstairs (which has the 2.4GHz and 5GHz variants, not the ones I'm having issues with). They're both the same network. Jun 2, 2020 at 7:14
  • Here's the output of iwlist wlp7s0 freq on 2.4GHz: pastebin.ubuntu.com/p/WZDmVgDcSY and here it is on 5GHz: paste.ubuntu.com/p/kdPM2h9wZ5 and I'd have filled the table, but I'm not sure which specific information would go where. Jun 2, 2020 at 7:15
  • @RichieGoldsworthy I've added Update #1 to my answer.
    – heynnema
    Jun 2, 2020 at 14:34
  • @RichieGoldsworthy If my answer is helpful, and solves your problem, please remember to accept it by clicking on the checkmark icon that appears just to the left of my answer.
    – heynnema
    Jun 2, 2020 at 14:34
  • I don't know how the two routers are connected, that's how the service provider did it. The idea was to have the two networks so that other people connected to the upstairs network don't experience slowness when I'm connected to the basement network because of my tendency to upload YouTube videos, download games, or play games online (sometimes all at once). Here is a screenshot of my current network settings: imgur.com/a/PQYgcaj Jun 2, 2020 at 21:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .