Alan Maguire wrote: > Anurag S. Maskey wrote: >> http://zhadum.east/export/ws/am223141/checkout-area/nwam1-fixes/webrev/ >> >> 12461 SCAN_REPORT should not report connected if wlan is actually >> disconnected >> http://defect.opensolaris.org/bz/show_bug.cgi?id=12461 >> > 168: I just want to make sure I understand the reasoning > here. We're unexpectedly connected, so we disconnect > as part of (re)initialization. The reason you unset > "selected" even if we have a what could be a still-valid > selection at this point is that we're not guaranteed that > selection is still valid (we could have suspended then > resumed in a different place), and we will ultimately re-set > selected as a result of doing a fresh scan and finding our > selection. Is that the idea? yes, that's right. After the scan is done, we select the best possible wlan in the wlan_scan_thread(). So, unsetting the selected flag here. I wondered when the initialized state would happen when we are already connected. Didn't think about the suspend/resume situation.
Anurag
