[Sugar-devel] [DESIGN] Rework the wireless control panel section to respect non-wireless connections

Frederick Grose fgrose at gmail.com
Mon Jan 20 21:15:31 EST 2014


On Mon, Jan 20, 2014 at 4:17 PM, Frederick Grose <fgrose at gmail.com> wrote:

> Fixes #4410  https://bugs.sugarlabs.org/ticket/4410
>
> The 'Discard network history' button is peculiar to Sugar, and
> is destructive to all non-wireless connections, despite being in
> the 'Wireless' section of the control panel.
>
> In the proposed patch[0], the code variables and functions are
> renamed and coded to be specific to wireless connections.
>
> The 'Radio' checkbox instruction and 'Discard ...' button are
> reworded to avoid confusion over their state and actions.[1]
>
> If wireless hardware is not present on the system, the 'Wireless'
> section of the control panel is excluded.[2]
>
> [0,1,2] - https://github.com/sugarlabs/sugar/pull/228


Re: The availability of wireless hardware is tested with the kernel's
sys filesystem because, with the radio disabled, wireless devices
are not exposed in the NetworkManager API and it would be
inappropriate to turn the radio on--just to see if one is present.

Daniel Narvaez wrote notifications at github.com

> Where are you testing this? In Fedora 20, the list of devices seems to be
> available even if wireless is disabled
>
> [dnarvaez at vaio src]$ nmcli r
> WIFI-HW  WIFI      WWAN-HW  WWAN
> enabled  disabled  enabled  enabled
> [dnarvaez at vaio src]$ nmcli d
> DEVICE  TYPE      STATE
> wlp1s0  wifi      unavailable
> lo      loopback  unmanaged
>
> I have not tested with the dbus service directly, but I'd expect nmcli to
> ultimately be using the dbus service to get this info.
>
On the XO-1 with OLPC 13.2.0 and NetworkManager 0.9.8.1-3.git20130514.fc18 :

-bash-4.2# nmcli nm
RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE
WWAN
running         connected       enabled         enabled    enabled
disabled
-bash-4.2# nmcli d
DEVICE     TYPE              STATE
msh0       802-11-olpc-mesh  disconnected
eth0       802-11-wireless   connected

-bash-4.2# nmcli nm wifi off
RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE
WWAN
running         disconnected    enabled         disabled   enabled
disabled
-bash-4.2# nmcli d
DEVICE     TYPE              STATE

(empty list)

Perhaps the response would be different with newer software.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140120/3a62467e/attachment-0001.html>


More information about the Sugar-devel mailing list