Re: Unavailable, managed device.

2015-01-20 Thread Léo Peltier
 $ rfkill list
 1: phy0: Wireless LAN
   Soft blocked: no
   Hard blocked: no

There is no wpa_supplicant running.

On 01/19/2015 08:30 PM, Dan Williams wrote:
 Some quick things that I can think of:
 
 1) rfkill - what does 'rfkill list' say?
 2) wpa_supplicant - is the supplicant running, and was it spawned with
 the -u option?
 
 Dan

-- 
Léo Peltier
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Unavailable, managed device.

2015-01-20 Thread Dan Williams
On Tue, 2015-01-20 at 10:16 +0100, Léo Peltier wrote:
  $ rfkill list
  1: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
 
 There is no wpa_supplicant running.

So that would be the issue.  NetworkManager tries to start the
supplicant via D-Bus service actiavation if it's not already running, so
either there's an issue with D-Bus service activation, or you're running
systemd and you have the supplicant masked, or you could just try making
sure the supplicant is running when NM starts and ensure that it's
launched with the -u option.

Does that make things work?

Dan

 On 01/19/2015 08:30 PM, Dan Williams wrote:
  Some quick things that I can think of:
  
  1) rfkill - what does 'rfkill list' say?
  2) wpa_supplicant - is the supplicant running, and was it spawned with
  the -u option?
  
  Dan
 


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Unavailable, managed device.

2015-01-19 Thread Léo Peltier
Hi,

I currently trying to get NM to handle a virtual wlan device and can't
get it to work. Its the second connection of an Intel 7260, the first
one being used as an access point managed outside of NM.

The OS is an Ubuntu Server 12.04 running NM 0.9.4.0-0ubuntu4.4.1
uname: 3.13.0-43-generic #72~precise1-Ubuntu SMP i686 i386

When I do everything manually through ip/iw/iwlist everything works fine
but I now need to integrate it with the rest of our software that
handles the network configuration using NM via DBus.

I create the iface using the following command:
 iw dev wlan0 interface add wlan1 type station

Here's what NM gives me:
 $ nmcli dev list iface wlan1
 GENERAL.DEVICE: wlan1
 GENERAL.TYPE:   802-11-wireless
 GENERAL.VENDOR: Intel Corporation
 GENERAL.PRODUCT:Wireless 7260
 GENERAL.DRIVER: iwlwifi
 GENERAL.HWADDR: F8:16:54:55:A5:9C
 GENERAL.STATE:  20 (unavailable)
 GENERAL.REASON: 2 (Device is now managed)
 GENERAL.UDI:
 /sys/devices/pci:00/:00:1c.5/:02:00.0/net/wlan1
 GENERAL.IP-IFACE:   
 GENERAL.NM-MANAGED: yes
 GENERAL.FIRMWARE-MISSING:   no
 GENERAL.CONNECTION: not connected
 CAPABILITIES.CARRIER-DETECT:no
 CAPABILITIES.SPEED: unknown
 WIFI-PROPERTIES.WEP:yes
 WIFI-PROPERTIES.WPA:yes
 WIFI-PROPERTIES.WPA2:   yes
 WIFI-PROPERTIES.TKIP:   yes
 WIFI-PROPERTIES.CCMP:   yes

Syslog:
 info (wlan1): using nl80211 for WiFi device control
 warn (wlan1): driver supports Access Point (AP) mode
 info (wlan1): new 802.11 WiFi device (driver: 'iwlwifi' ifindex: 28)
 info (wlan1): exported as /org/freedesktop/NetworkManager/Devices/4
 info (wlan1): now managed
 info (wlan1): device state change: unmanaged - unavailable (reason 
 'managed') [10 20 2]
 info (wlan1): bringing up device.
 info (wlan1): preparing device.
 info (wlan1): deactivating device (reason 'managed') [2]

I have [ifupdown] managed=false in my NetworkManager.conf and wlan1
does not appear in `/etc/network/interfaces`. Nothing is disabled in
`/var/lib/NetworkManager/NetworkManager.state`.

Can someone point me the right direction to get out of this
unavailable state?

Thanks.

-- 
Léo Peltier

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Unavailable, managed device.

2015-01-19 Thread Dan Williams
On Mon, 2015-01-19 at 16:40 +0100, Léo Peltier wrote:
 Hi,
 
 I currently trying to get NM to handle a virtual wlan device and can't
 get it to work. Its the second connection of an Intel 7260, the first
 one being used as an access point managed outside of NM.
 
 The OS is an Ubuntu Server 12.04 running NM 0.9.4.0-0ubuntu4.4.1
 uname: 3.13.0-43-generic #72~precise1-Ubuntu SMP i686 i386
 
 When I do everything manually through ip/iw/iwlist everything works fine
 but I now need to integrate it with the rest of our software that
 handles the network configuration using NM via DBus.

Some quick things that I can think of:

1) rfkill - what does 'rfkill list' say?
2) wpa_supplicant - is the supplicant running, and was it spawned with
the -u option?

Dan

 I create the iface using the following command:
  iw dev wlan0 interface add wlan1 type station
 
 Here's what NM gives me:
  $ nmcli dev list iface wlan1
  GENERAL.DEVICE: wlan1
  GENERAL.TYPE:   802-11-wireless
  GENERAL.VENDOR: Intel Corporation
  GENERAL.PRODUCT:Wireless 7260
  GENERAL.DRIVER: iwlwifi
  GENERAL.HWADDR: F8:16:54:55:A5:9C
  GENERAL.STATE:  20 (unavailable)
  GENERAL.REASON: 2 (Device is now managed)
  GENERAL.UDI:
  /sys/devices/pci:00/:00:1c.5/:02:00.0/net/wlan1
  GENERAL.IP-IFACE:   
  GENERAL.NM-MANAGED: yes
  GENERAL.FIRMWARE-MISSING:   no
  GENERAL.CONNECTION: not connected
  CAPABILITIES.CARRIER-DETECT:no
  CAPABILITIES.SPEED: unknown
  WIFI-PROPERTIES.WEP:yes
  WIFI-PROPERTIES.WPA:yes
  WIFI-PROPERTIES.WPA2:   yes
  WIFI-PROPERTIES.TKIP:   yes
  WIFI-PROPERTIES.CCMP:   yes
 
 Syslog:
  info (wlan1): using nl80211 for WiFi device control
  warn (wlan1): driver supports Access Point (AP) mode
  info (wlan1): new 802.11 WiFi device (driver: 'iwlwifi' ifindex: 28)
  info (wlan1): exported as /org/freedesktop/NetworkManager/Devices/4
  info (wlan1): now managed
  info (wlan1): device state change: unmanaged - unavailable (reason 
  'managed') [10 20 2]
  info (wlan1): bringing up device.
  info (wlan1): preparing device.
  info (wlan1): deactivating device (reason 'managed') [2]
 
 I have [ifupdown] managed=false in my NetworkManager.conf and wlan1
 does not appear in `/etc/network/interfaces`. Nothing is disabled in
 `/var/lib/NetworkManager/NetworkManager.state`.
 
 Can someone point me the right direction to get out of this
 unavailable state?
 
 Thanks.
 


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list