AP-Mode doesn't work with network-manager

Bug #1186688 reported by Ray-Ven
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Confirmed
Undecided
Unassigned
wpa (Debian)
New
Unknown

Bug Description

Of course I have verified with 'iw list' that my card supports AP mode (see attatchment).
But still, AP-Mode won't work :-(
Will add network-manager output in a few minutes.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: network-manager 0.9.8.0-0ubuntu6
ProcVersionSignature: Ubuntu 3.8.0-23.34-generic 3.8.11
Uname: Linux 3.8.0-23-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
CRDA:
 country DE:
  (2400 - 2483 @ 40), (N/A, 20)
  (5150 - 5250 @ 40), (N/A, 20), NO-OUTDOOR
  (5250 - 5350 @ 40), (N/A, 20), NO-OUTDOOR, DFS
  (5470 - 5725 @ 40), (N/A, 26), DFS
Date: Sun Jun 2 10:45:22 2013
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
InstallationDate: Installed on 2013-04-10 (52 days ago)
InstallationMedia: Kubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130410)
IpRoute:
 default via 192.168.1.100 dev wlan0 proto static
 169.254.0.0/16 dev wlan0 scope link metric 1000
 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.101 metric 9
MarkForUpload: True
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
 WimaxEnabled=true
SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)
WifiSyslog:

Revision history for this message
Ray-Ven (ray-ven) wrote :
Revision history for this message
Ray-Ven (ray-ven) wrote :

here you go - network-manager output

tried without or different encryption too

Ray-Ven (ray-ven)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Yannick Defais (sevmek) wrote :

I confirm this bug.

Upstream report (debian)
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690536

You can work this out like this :

# howto use Access Point with networkManager in Ubuntu 13.04
$ sudo apt-get install build-essential dpkg-dev fakeroot
$ mkdir sources
$ cd sources/
$ apt-get source wpasupplicant
$ sudo apt-get build-dep wpasupplicant
$ gedit wpa-1.0/debian/config/wpasupplicant/linux
#add those lines at the end of the file
# AP mode
CONFIG_AP=y

$ cd wpa-1.0/
$ fakeroot debian/rules binary
$ cd ..
$ sudo dpkg -i hostapd_1.0-3ubuntu1_i386.deb wpagui_1.0-3ubuntu1_i386.deb wpasupplicant_1.0-3ubuntu1_i386.deb

"At the moment, neither nm-applet or the connection editor support
setting real AP mode from the GUI; that's work-in-progress because it
requires some rather extensive changes to the way that the editor
validates its UI so that you don't end up with incompatible options.

here's a sample "keyfile" connection
for /etc/NetworkManager/system-connections; name it "Hotspot".
you can start it with
"nmcli con up id Hotspot":

[connection]
id=Hotspot
uuid=3e13073d-6d7a-440d-ab2b-4f42c9fdacaf
type=802-11-wireless
autoconnect=false

[802-11-wireless]
ssid=my Hotspot
mode=ap
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=really secure password

[ipv4]
method=shared

[ipv6]
method=auto

cf.
https://mail.gnome.org/archives/networkmanager-list/2013-April/msg00100.html

You need to chmod 600 the keyfile to make network manager to use it.

Unfortunately, even if I get the hotspot running and an android phone connect to it, it seems I can't reach the internet (well maybe an issue with my usb wifi stick)

If you try this, please let me know if it works for you.

Revision history for this message
Yannick Defais (sevmek) wrote :

To explain the issue:

wpa_supplicant is not compiled with AP support, networkmanager tells it in your log:

NetworkManager[12539]: <warn> Supplicant may not support AP mode; connection may time out.

The solution above is to recompile it with this support.

Revision history for this message
Yannick Defais (sevmek) wrote :

adding in the section

[802-11-wireless]
channel=11

makes it possible here to get internet running !
(There is numerous disconnections, but I guess it comes from my very old usb stick)

Changed in wpa (Debian):
status: Unknown → New
Revision history for this message
Yannick Defais (sevmek) wrote :

The issue for Ubuntu is tracked here and a fix has been commited for 13.10:
https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1209511

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.