#789457 network-manager cannot create hotspot

Package:
network-manager
Source:
network-manager
Description:
network management framework (daemon and userspace tools)
Submitter:
Pirate Praveen
Date:
2017-11-19 16:42:03 UTC
Severity:
normal
#789457#5
Date:
2015-06-21 07:21:35 UTC
From:
To:
package: network-manager
version: 1.0.2-2
severity: grave
reason: it is a major feature and regression

it was working on the same hardware on earlier versions.

#789457#10
Date:
2015-06-21 17:42:44 UTC
From:
To:
Am 21.06.2015 um 09:21 schrieb Pirate Praveen:

Please provide more information, so this bug report is actually useful.
E.g. follow the steps at
https://wiki.gnome.org/Projects/NetworkManager/Debugging

It contains hints how to file a good bug report.

Also, please use reportbug next time, so we have proper version
information of installed packages..

#789457#19
Date:
2015-06-21 18:04:58 UTC
From:
To:
Am 21.06.2015 um 19:42 schrieb Michael Biebl:

Tagging as unreproducible, since creating a hotspot works fine here.

Which tool/desktop environment did you use to create the hotspot?

#789457#26
Date:
2015-06-21 19:07:13 UTC
From:
To:
Thanks for this link.

kernel version 4.0.0-2-amd64
03:00.0 Network controller: Intel Corporation WiFi Link 5100

03:00.0 0280: 8086:4232
	Subsystem: 8086:1201
	Flags: bus master, fast devsel, latency 0, IRQ 30
	Memory at 94700000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: [c8] Power Management version 3
	Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [e0] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number 00-1e-65-ff-ff-3c-7c-6e
	Kernel driver in use: iwlwifi

dmesg log attached.

I wish I could use reportbug, it always says Aborted (core dumped).

#789457#31
Date:
2015-06-21 19:11:24 UTC
From:
To:
Network Manager Gnome,


Top right icon on gnome 3, Wifi settings -> Use as Hotspot

network-manager-gnome 1.0.2-1

#789457#36
Date:
2015-06-21 19:16:10 UTC
From:
To:
Am 21.06.2015 um 21:07 schrieb Pirate Praveen:

A debug log from NetworkManager would have been helpful as well. That
said, your issue looks like a bug in the linux kernel/iwlwifi.

Have you tried older kernels (like the jessie one)?

#789457#41
Date:
2015-06-21 19:50:02 UTC
From:
To:
Which log file should I get? I can't see anything in /var/log/messages
or /var/log/syslog

We tried 3-4 different laptops with different chipsets (some Ubuntu) and
none could create hotspot.

yes, I was on 3.14 and the same problem was there.

#789457#46
Date:
2015-06-21 20:05:53 UTC
From:
To:
Am 21.06.2015 um 21:50 schrieb Pirate Praveen:

Well, see the wiki pages I pointed you at. They show instructions how
you can run NetworkManager in debug/foreground mode.

To get the  non-debug log messages, you can also run
journalctl -u NetworkManager.service

As said, it works fine here.

Jessie is 3.16 iirc.

#789457#51
Date:
2015-06-21 19:53:19 UTC
From:
To:
I am also facing same issue on debian-jessie
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1
(2015-04-24) x86_64 GNU/Linux

#789457#56
Date:
2015-06-21 20:16:06 UTC
From:
To:
Am 21.06.2015 um 22:05 schrieb Michael Biebl:

$ systemctl stop NetworkManager.service
$ NetworkManager --no-daemon --debug --log-level=DEBUG 2>&1 | tee
/tmp/nm-debug-log.txt

#789457#61
Date:
2015-06-21 20:18:20 UTC
From:
To:
Am 21.06.2015 um 21:53 schrieb Syam.G.Krishnan:

A me-too doesn't really help. We need log files and details what makes
your setup special, to find out how this is triggered.

#789457#66
Date:
2015-06-21 20:20:23 UTC
From:
To:
Am 21.06.2015 um 21:07 schrieb Pirate Praveen:

Can you investigate, why you have hundreds of those RF_KILL events?

#789457#71
Date:
2015-06-21 20:21:18 UTC
From:
To:
Am 21.06.2015 um 21:07 schrieb Pirate Praveen:

That doesn't look right as well.
Do you have the proper firmware for this device installed?

#789457#76
Date:
2015-06-21 20:25:26 UTC
From:
To:
attaching debug log
#789457#81
Date:
2015-06-21 20:24:02 UTC
From:
To:
On Mon, 22 Jun 2015 01:55:26 +0530 Pirate Praveen <praveen@debian.org> wrote:
#789457#86
Date:
2015-06-21 20:30:21 UTC
From:
To:
Well, I'm able to use this device normally, I can connect to wifi access
points using this device, without a proper firmware I would not be able
to use the device. Also I updated firmware-iwlwifi and it still don't work.

#789457#91
Date:
2015-06-21 20:33:12 UTC
From:
To:
When trying to see if hostapd work, I had run 'sudo rfkill unblock
wlan0', probably that was the case. No idea otherwise.

#789457#96
Date:
2015-06-21 20:35:08 UTC
From:
To:
Am 21.06.2015 um 22:33 schrieb Pirate Praveen:

Do you have hostapd installed and running? If so, please make sure it's
stopped and no other network management system is running

#789457#101
Date:
2015-06-21 20:40:48 UTC
From:
To:
It was not working before I installed hostapd, now after removing
hostapd, the situation has not changed.

#789457#106
Date:
2015-06-21 20:34:51 UTC
From:
To:
the output of the below command is in attachment.
$lspci -vn

On Mon, 22 Jun 2015 02:00:21 +0530 Pirate Praveen <praveen@debian.org> wrote:

#789457#111
Date:
2015-06-21 20:44:38 UTC
From:
To:
Am 21.06.2015 um 22:25 schrieb Pirate Praveen:


So, it seems to be wpa_supplicant, which is failing here.

Can you attach your /etc/NetworkManager/system-connections/Hotspot
connection file?
Please also run wpa_supplicant in debug mode and attach the log.

#789457#116
Date:
2015-06-21 21:20:26 UTC
From:
To:
attached

attaching log files

#789457#121
Date:
2015-06-21 21:29:05 UTC
From:
To:
Am 21.06.2015 um 23:20 schrieb Pirate Praveen:

Try changing the Hotspot configuration to WPA-PSK and see if that makes
a difference.

#789457#126
Date:
2015-06-21 21:54:15 UTC
From:
To:
I tried that, but it did not make any difference. I also removed all
Hotspot-* files from /etc/NetworkManager/system-connections and
recreated it, without any effect.

#789457#131
Date:
2015-06-21 22:38:35 UTC
From:
To:
Am 21.06.2015 um 23:20 schrieb Pirate Praveen:

One noticable difference I see is, that g-c-c creates a Hotspot
connection here which has
mode=infrastructure. Yours has mode=adhoc.


Dan, are there any known issues with hotspot mode in ad-hoc mode?

#789457#136
Date:
2015-06-24 03:24:00 UTC
From:
To:
Nothing known, no, but it's pretty dependent on the driver not being
stupid.  That said, best thing to get for debugging is the
wpa_supplicant debug logs to see what's going on in the supplicant.

dan

#789457#141
Date:
2017-07-17 05:56:12 UTC
From:
To:
I guess there is a duplicate bug for this one. It is #858870 and it has
some workaround fixes.

#789457#146
Date:
2017-11-19 16:33:08 UTC
From:
To:
Hello.

Any problem in creating hotspot in Stretch version of network-manager
(1.6.2-3). ?

I am able to create hotspot but other devices are not connecting to the
hotspot. The workaround I found is by installing network-manager (1.2
version ) from ubuntu repo.

Anyone having similar issue ?

Thanks.