RE: NetworkManager WirelessEnabled / WirelessHardwareEnabledProperties



On Mon, 2009-03-09 at 13:53 -0400, Philip A. Culver wrote:
> Semantically speaking though, Don't you think the "WirelessHardwareEnabled"
> property should be false if no wireless hardware is currently present in the
> system?

Perhaps; I tend to think it's a matter of opinion on that one.  I think
what you really want here is for that property to just not exist when
there aren't any wifi devices, but it's not really great behavior to
make properties disappear either.

One could argue that even though there isn't wireless hardware, no
killswitches (which are often independent of the actual wifi hardware)
are set, and thus there isn't anything blocking wireless.

Also, (ab)using that property as a shortcut for whether a wifi device is
present or not is also somewhat questionable :)

Cheers,
Dan

> Phil
> 
> -----Original Message-----
> From: Dan Williams [mailto:dcbw redhat com] 
> Sent: Monday, March 09, 2009 1:19 PM
> To: Philip A. Culver
> Cc: networkmanager-list gnome org
> Subject: Re: NetworkManager WirelessEnabled /
> WirelessHardwareEnabledProperties
> 
> On Mon, 2009-03-09 at 13:16 -0400, Philip A. Culver wrote:
> > Hello,
> > 
> >  
> > 
> > Is there any way in NetworkManager 0.7.0 to tell if no wireless
> > hardware is currently present?   I could tell this in 0.6.x via the
> > WirelessEnabled property.   In 0.7.0 I reboot the machine with no
> > wireless card and the WirelessEnabled and WirelessHardwareEnabled
> > properties are both still set to true.  Is this correct?  I queried NM
> > via the command: 
> 
> Ask NetworkManager for the device list, and check what type each device
> is.  If any of the devices are wifi, then you know you've got some :)
> 
> Dan
> 
> >  
> > 
> > dbus-send -system -print-reply -
> > dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager
> > org.freedesktop.DBus.Properties.Get
> > string:"org.freedesktop.NetworkManager" string:"WirelessEnabled"
> > 
> >  
> > 
> > Thanks,
> > 
> > Phil
> > 
> > 
> > _______________________________________________
> > NetworkManager-list mailing list
> > NetworkManager-list gnome org
> > http://mail.gnome.org/mailman/listinfo/networkmanager-list
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]