<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dan Williams pisze:
<blockquote
 cite="mid:1245246052.2646.2.camel@130.81.190.10.in-addr.arpa"
 type="cite">
  <pre wrap="">On Tue, 2009-06-16 at 23:16 +0200, Marcel Holtmann wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Dan,

    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">O:
/fi/w1.wpa_supplicant1/Interfaces/&lt;interface_number&gt;/Networks/&lt;network_number&gt;
I: fi.w1.wpa_supplicant1.Interface.Network

P: Enabled (read/write) -&gt; b
P: &lt;wpa_supplicant network block properties&gt; (read/write) -&gt; a{sv}
     - Most properties can be set as strings, but can also be set
       as a byte array if necessary (SSID, BSSID, PSK, etc).  Supplicant
       can autoconvert like it does right now.

S: PropertiesChanged -&gt; a{sv}
          </pre>
        </blockquote>
        <pre wrap="">So what is the difference between Enabled and SelectNetwork() call. This
differentiation confused the hell out of me already with the current
code. Why do we bother here at all.

Lets just use SelectNetwork() to switch between networks and forget
about Enabled stuff. If some network should not be in the list, then
just lets use RemoveNetwork().
        </pre>
      </blockquote>
      <pre wrap="">If we were to just use SelectNetwork(), how would we completely
disconnect the supplicant and tell it to stop doing anything?  We could
make SelectNetwork with a blank object path do that for us.
      </pre>
    </blockquote>
    <pre wrap="">yeah and that is not gonna work out. D-Bus doesn't allow an empty object
path.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Sorry, I really meant "/" not blank.
  </pre>
</blockquote>
I don't like any kind of magical meaning arguments like the "/" path
meaning "select no network", so I think that it's ok if we'll stick to
enable/disable methods.<br>
<blockquote
 cite="mid:1245246052.2646.2.camel@130.81.190.10.in-addr.arpa"
 type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">BTW, enabled/disabled is what allows the supplicant to make the roaming
decisions for us, so while it doesn't get used by NM right *now*, maybe
we want to push that sort of thing to the supplicant in the future.
Currently NM only enables one network at a time.
      </pre>
    </blockquote>
    <pre wrap="">So personally I think every network we add is part of our roaming
agreement. If we don't want it anymore, we have to remove the network
again. That way we keep it simple.

Maybe we should not have a SelectNetwork at all. Just add/remove
networks and then have a global on/off switch on the Interface
interface.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
That's fine by me.

Dan


  </pre>
</blockquote>
<br>
</body>
</html>