shill: deal properly with an interface that is already known to
wpa_supplicant

three parts to this change:
1. deal with failure of CreateInterface
2. remove networks that might have been configured on the interface
3. flush the BSS cache on the interface

note that this code uses exception handling, because dbus-c++
raises exceptions.

BUG=chromium-os:16089
TEST=manual: run wifi_integrationtest on netbook

Change-Id: I16d35e8a32aafa18c36565b31c46a1710ce24f27
Reviewed-on: http://gerrit.chromium.org/gerrit/2103
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: mukesh agrawal <quiche@chromium.org>
3 files changed