http://defect.opensolaris.org/bz/show_bug.cgi?id=11659


amaguire <alan.maguire at sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alan.maguire at sun.com


--- Comment #3 from amaguire <alan.maguire at sun.com> 2009-10-07 07:12:41 UTC 
---
(In reply to comment #2)
> (In reply to comment #1)
> > The _WLAN_NEED_KEY event only passes the wlan that we're trying to connect 
> > to
> > and it has the selected flag set.  Are you looking at the _SCAN_REPORT 
> > event? 
> > This event may not have the selected flag set.  On the other hand, if nwamd 
> > is
> > looking for a key, then it must be in the _WIFI_NEED_KEY state which means 
> > that
> > it has already been given the network selection.
> 
> The problem here is that the GUI is in a startup state, in that while nwamd 
> may
> have sent an event with the key name, we will have missed that - nwamd can be
> started long before a user actually logs in.
> 
> So if I then log in (or start nwam-manager) then it will see that the state of
> an NCU is "KEY_NEEDED", and we fetch the contents of the wlan cache to do the
> initial population of the GUI. It's in here that we are expecting to find the
> "selected" flag set so that we know which one has been selected for connecting
> to. 
> 
> This piece of information, with the knowledge of the KEY_NEEDED state means
> that we can provide a suitable request to the user - otherwise we are just 
> able
> to say that we know there is a key needed, but can't tell the user what 
> network
> it's for...

This is a bug in nwamd - when we make a selection, we're supposed to
call nwamd_set_selected_connected() for the ncu. This function will mark
the selection in the scan results and trigger a scan event to send them. We
currently "unmark" any previous selection but don't mark the current one.

Looking at nwamd_set_selected_connected() there's a bug w.r.t how it
handles selections - it assumes the selection is an essid/bssid combination.
That needs fixing too.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Reply via email to