<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(0,0,153)"><span style="font-family:arial;color:rgb(34,34,34)">On Mon, Jan 20, 2014 at 4:17 PM, Frederick Grose </span><span dir="ltr" style="font-family:arial;color:rgb(34,34,34)"><<a href="mailto:fgrose@gmail.com" target="_blank">fgrose@gmail.com</a>></span><span style="font-family:arial;color:rgb(34,34,34)"> wrote:</span><br>
</div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Fixes #4410 <a href="https://bugs.sugarlabs.org/ticket/4410" target="_blank">https://bugs.sugarlabs.org/ticket/4410</a><br>
<br>
The 'Discard network history' button is peculiar to Sugar, and<br>
is destructive to all non-wireless connections, despite being in<br>
the 'Wireless' section of the control panel.<br>
<br>
In the proposed patch[0], the code variables and functions are<br>
renamed and coded to be specific to wireless connections.<br>
<br>
The 'Radio' checkbox instruction and 'Discard ...' button are<br>
reworded to avoid confusion over their state and actions.[1]<br>
<br>
If wireless hardware is not present on the system, the 'Wireless'<br>
section of the control panel is excluded.[2]<br>
<br>
[0,1,2] - <a href="https://github.com/sugarlabs/sugar/pull/228" target="_blank">https://github.com/sugarlabs/sugar/pull/228</a></blockquote><div><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(0,0,153)">
Re: <span style="background-color:rgb(251,251,251);color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:13px;line-height:22.100000381469727px">The availability of wireless hardware is tested with the kernel's</span></div>
<span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:13px;line-height:22.100000381469727px;background-color:rgb(251,251,251)">sys filesystem because, with the radio disabled, wireless devices</span><br style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:13px;line-height:22.100000381469727px;background-color:rgb(251,251,251)">
<span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:13px;line-height:22.100000381469727px;background-color:rgb(251,251,251)">are not exposed in the NetworkManager API and it would be</span><br style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:13px;line-height:22.100000381469727px;background-color:rgb(251,251,251)">
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(0,0,153)"><span style="background-color:rgb(251,251,251);color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:13px;line-height:22.100000381469727px">inappropriate to turn the radio on--just to see if one is present.</span></div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(0,0,153)"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small">
<font color="#000000"><span name="Daniel Narvaez" class="" style="font-size:13px;font-family:arial,sans-serif">Daniel Narvaez wrote</span><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"> </span><span class="" style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><a href="mailto:notifications@github.com">notifications@github.com</a></span><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"> </span><br>
</font></div><div class="gmail_default"><blockquote class="gmail_quote" style="font-size:small;font-family:'trebuchet ms',sans-serif;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<p style="font-family:arial,sans-serif;font-size:13px">Where are you testing this? In Fedora 20, the list of devices seems to be available even if wireless is disabled</p><pre style="white-space:pre-wrap"><code>[dnarvaez@vaio src]$ nmcli r
WIFI-HW WIFI WWAN-HW WWAN
enabled disabled enabled enabled
[dnarvaez@vaio src]$ nmcli d
DEVICE TYPE STATE
wlp1s0 wifi unavailable
lo loopback unmanaged
</code></pre><p style="font-family:arial,sans-serif;font-size:13px">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.</p></blockquote><div style="font-size:small;font-family:'trebuchet ms',sans-serif">
On the XO-1 with OLPC 13.2.0 and NetworkManager 0.9.8.1-3.git20130514.fc18 :</div><div style="font-size:small;font-family:'trebuchet ms',sans-serif"><br></div><div><div><font face="courier new, monospace" size="1">-bash-4.2# nmcli nm</font></div>
<div><font face="courier new, monospace" size="1">RUNNING STATE WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN </font></div><div><font face="courier new, monospace" size="1">running connected enabled enabled enabled disabled </font></div>
<div><font face="courier new, monospace" size="1">-bash-4.2# nmcli d</font></div><div><font face="courier new, monospace" size="1">DEVICE TYPE STATE </font></div><div><font face="courier new, monospace" size="1">msh0 802-11-olpc-mesh disconnected </font></div>
<div><font face="courier new, monospace" size="1">eth0 802-11-wireless connected </font></div></div><div><font face="courier new, monospace" size="1"><br></font></div><div><div style="font-family:'courier new',monospace">
<font size="1">-bash-4.2# nmcli nm wifi off</font></div><div style="font-family:'courier new',monospace"><font size="1">RUNNING STATE WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN </font></div>
<div style="font-family:'courier new',monospace"><font size="1">running disconnected enabled disabled enabled disabled </font></div><div style="font-family:'courier new',monospace">
<font size="1">-bash-4.2# nmcli d</font></div><div style="font-family:'courier new',monospace"><font size="1">DEVICE TYPE STATE </font></div><div style="font-family:'courier new',monospace">
<br></div><div style="font-family:'courier new',monospace"><font size="1">(empty list)</font></div><div style="font-family:'courier new',monospace"><font size="1"><br></font></div><div style="font-size:small">
<font face="arial, helvetica, sans-serif">Perhaps the response would be different with newer software.</font></div></div><div style="font-size:small;font-family:'trebuchet ms',sans-serif"><br></div></div></div></div>
</div>