Bug 1023142 - Adapt the WifiManager calls to use the correct object types