Can't connect to hotspot created on ubuntu

Bug #1972790 reported by Dustin Utecht
98
This bug affects 19 people
Affects Status Importance Assigned to Milestone
wpa (Ubuntu)
Confirmed
High
Unassigned

Bug Description

We currently have older systems (18.04) with hotspot's and we will migrate to 22.04.
Anything work's fine, expect the hotspot.
The Hotspot will be created and is visible in the WLAN-List, but if the security is set to "WPA & WPA2 Personal" we get the error message "Failed to connect to the network".
If we change the Security to "WPA3 Personal" we get the error message "Invalid Password", even if the password is correct.
As soon we remove the security (change it to "none"), we can connect with out any problems.

We can reproduce it with a fresh installtion of the Ubuntu Server 22.04 and the following two commands:

apt install network-manager

nmcli c add type wifi ifname wlp3s0 con-name Hotspot autoconnect yes ssid test-ap 802-11-wireless.mode ap 802-11-wireless.band bg 802-11-wireless.mac-address "80:45:dd:f0:27:ba" wifi-sec.group ccmp wifi-sec.key-mgmt wpa-psk wifi-sec.pairwise ccmp wifi-sec.proto rsn wifi-sec.psk "test12345" ipv4.addresses 192.168.60.1/24 ipv4.method shared && nmcli connection up Hotspot

We thought it could be similar to this issue: https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1958267
Because if we test it with 20.04 it worked fine, because 20.04 uses the Version 2:2.9.0-21build1 as described in the Ticket.

As @Sebastian Bacher suggested (https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1958267/comments/58), i created a own report.
In the attachment is the requested log file.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: wpasupplicant 2:2.10-6 [modified: lib/systemd/system/wpa_supplicant.service]
ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
Uname: Linux 5.15.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
Date: Tue May 10 07:24:15 2022
InstallationDate: Installed on 2022-05-10 (0 days ago)
InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220421)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: wpa
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dustin Utecht (codmdu) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wpa (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. The new stable update fix some issues were only WPA3 devices could connect, could you try if the update on https://bugs.launchpad.net/bugs/1974428 helps?

Revision history for this message
Dustin Utecht (codmdu) wrote :

As written in the bug report before i can't connect with "WPA & WPA2 Personal" with the message "Failed to connect to the network".
With "WPA3 Personal" i always got the error message that the password is wrong.

After the update "WPA & WPA2 Personal" still don't work (same error message), but "WPA3 Personal" works now.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, it means at least we can get the WPA3 case out of this report and focus on the other issue

Changed in wpa (Ubuntu):
importance: Undecided → High
Revision history for this message
Sebastien Bacher (seb128) wrote :

So I tried on an upgraded system and on a live session from the release and a default "WPA & WPA2 Personal" created by gnome-control-center or the cmdline example from the description works for me (tested using an android phone and another ubuntu laptop).

Could you provide extra informations?

1. is that still an issue with the current wpasupplicant SRU version?

2. could you try to install wpasupplicant from an older serie (impish for example) and see if that workarounds the issue for you?

3. could you do 'journalctl -f', try to connect a client and add the debug log (editing the wpa service to add the -d debug flag as described on bug #1958267 would be even nicer)

And which type of clients did you try to connect?

Revision history for this message
Dustin Utecht (codmdu) wrote :

1. yes.
2. currently to busy, sorry!
3. uploaded a log

I tried to connect via MacBook (macOS Monterey 12.4), Iphone (iOS 15.5), Android (Version unknown).

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, that's the complete log though and not the part from -f when a client tried to connect right? Did you maybe note down the time when you tried to connect?

The log has nl80211 warnings similar to bug #1886169 , unsure if that could be the issue though

Revision history for this message
Dustin Utecht (codmdu) wrote :

I tried to connect to the AP on 07:49:xx.

Revision history for this message
Incompetent (incompetent-tester) wrote :

My temporary workaround for this is to downgrade wpasupplicant-2.10 to wpasupplicant-2.9. It seems there is an issue with the new wpasupplicant package

Revision history for this message
John Pietrzak (jpietrzak8) wrote :

I seem to be suffering from the same issue after upgrading to 22.04.1, but only on one device. My OnePlus Nord N10 (running Android 11) fails to connect to the Ubuntu hotspot, showing the message WPA3 (SAE Transition Mode). However, my iPad Pro (iOS 15.6) and my Roku (11.0.0) have no trouble connecting to the hotspot.

The iPad and the Roku are both ancient, but the Nord is a fairly recent device.

Revision history for this message
Dustin Utecht (codmdu) wrote (last edit ):

Tested it with another pc (hp elitedesk 800 G1 Business PC) and have still the same issues..
Can't connect with any device, but i also get "nl80211" error.
It's quite weired that i get the same error on 2 different nuc's (from 2 different brands).
Also i'm not sure how i can check if the "nl80211" error is the cause of my hotspot problem.

Revision history for this message
Baker (kim3434) wrote (last edit ):

I downgrade wpa_supplicant version 2.10 to 2.9.

And I got a workaround by disabling the firewall. But the moment you turn it on (even if clients connected beforehand), the internet loses connection again. Quite annoying (also dangerous) for hotspot.

The device is iphone se3(ios 15.7)

Revision history for this message
Sebastien Bacher (seb128) wrote :

which firewall did you disable to workaround the issue?

Revision history for this message
John Pietrzak (jpietrzak8) wrote :

On my machine, I didn't need to modify my firewall to get around the issue; just use a different mechanism to create a hotspot. The app "Wifi Hotspot" (available on Ubuntu Software) worked just fine.

Revision history for this message
Baker (kim3434) wrote :

My machine can't connect with the ubuntu software, when wpa_supplicant version is 2.10. On the version 2.9 of wpa_supplicant, the machine can connect with that. But, the internet does not work.
After the firewall of the ubuntu software is disable, my machine can connect the internet. But the internet is not available if I enable the firewall, again. Even if only the hotspot is handled as an exception in the firewall, the result is the same.

Revision history for this message
Dustin Utecht (codmdu) wrote :

Just the latest update from me.
Today i tried it once again and found some new intresting infos.

As Baker (kim3434) said with an wpa_supplicant downgrade to 2.9 it works fine, also described here: https://blog.incompetent.me/2022/07/27/workaround-ubuntu-22-04-hotspot-stops-working/

I also found out that with wpa_supplicant 2.10 it works fine, execept for Apple Devices (Iphone/Mac).
So anything else (windows, other ubuntu, esp, android) can connect without any issues.

May that information helps out @seb128

Revision history for this message
Erik Johnson (ekriirke) wrote (last edit ):

I found that apple devices and linux devices had no issue with 2.10. My Androids see it as full signal and say "Saved" underneath it in the WiFi list but clicking on it does absolutely nothing - no spinning animation, no change from "saved" to "Connecting", etc. But after about 10 seconds a little "Failed to connect" pops up despite no indication it even tried.

Catlog shows "Already connected/connecting" each time I tap it

Downgrading to 2.9 works flawlessly. Thanks to this post I got that sorted out. I'm running Fedora FC38

Revision history for this message
Serj Fomin (fominator) wrote (last edit ):

I still can't connect to Ubuntu 22.04 HOTSPOT from Raspberry Pi4 running Volumio, Libreelec, Raspberry Pi OS etc, with WPA & WPA2 Personal! But i can connect from android phone!

Sebastien Bacher (seb128), please fix this bug!

Revision history for this message
Clemens Falker-Gieske (zelmo) wrote :

I have that problem since I switched to Ubuntu 22.04. Cannot connect with any of my three different Android devices.

Now I downgraded my OS to Ubuntu 20.04 (for some other reason), which runs wpa_supplicant v2.9. I still cannot connect.

I have another hotspot PC running, which works fine with Ubuntu 18.04.

I would highly appreciate a fix, since being a hotspot is the main reason for this computer's existence.

Revision history for this message
Serj Fomin (fominator) wrote (last edit ):

Unassigned

I see nobody give a **** about this bug! Ubuntu is garbage without such important features as Hotspot. Back to Windows. The only adequate OS unfortunately. I hope some day Ubuntu will be usefull, without countless stupid bugs.

Revision history for this message
John Pietrzak (jpietrzak8) wrote :

I'd just like to repeat, this is Linux. Just because Ubuntu offers a feature doesn't mean you have to use it. I'm using the "Linux Wifi Hotspot" app created by Lakinduakash:

https://github.com/lakinduakash/linux-wifi-hotspot

It works just fine on Ubuntu.

Revision history for this message
Erik Johnson (ekriirke) wrote :

Just want to throw in on a different ARM64 machine I have running Arch, identical issue. Downgrading to 2.9 worked

pacman -U http://tardis.tiny-vps.com/aarm/packages/w/wpa_supplicant/wpa_supplicant-2%3A2.9-8-aarch64.pkg.tar.xz

Changed in wpa (Ubuntu):
assignee: nobody → Sujit Kumar (therealsujitk)
assignee: Sujit Kumar (therealsujitk) → nobody
Revision history for this message
Jeff Breidenbach (jeff-jab) wrote :

Also affected. Downgrading to 2.9 worked.

Revision history for this message
Laurent Lyaudet (laurent-lyaudet) wrote :

Hello,

Thanks for your hard work :)
I have the following bug when using Ubuntu Hotspot on my laptop :
- my Android smartphone can connect to my laptop on the Wifi Hotspot Network
- but my smartphone says it cannot connect to Internet through the Hotspot... XD
which is kind of unfortunate since the goal was to access Internet :)

I don't know if it should be better to create another bug report,
since it is slightly different. Please, let me know :)

I'm using latest Ubuntu 23.04 fully patched.
I rarely use Hotspot feature, hence I cannot say if it worked on Ubuntu 22.10 or 22.04, etc.
Let me know if you need more informations that I can provide.

Best regards,
   Laurent Lyaudet

Revision history for this message
Fabian Jato (fabian-jato) wrote :

Hello,

Also affected (Ubuntu 22.04.2 LTS). The problem only appears on Apple products for me. I tried it with an iphone SE (2020 version) and two iphone 11 - they could not connect to the hotspot. With several Android devices it works with the same configuration. I tried several configurations with WPA security. Password complexity has also no influence, it seems.

Workaround: If the hotspot is not encrypted (means open or "without Security"), the apple products can connect to the hotspot.

One note: It's somehow not possible to try WEP security configurations. I can select it in the Advanced Network Configuration tool, but it gets overwritten or so and a WPA connection appears.

I didn't try downgrading yet.

Hope that helps.

Have a good day!!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.