diff options
Diffstat (limited to 'wifi/java/android/net/wifi/WifiScanner.java')
-rw-r--r-- | wifi/java/android/net/wifi/WifiScanner.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/wifi/java/android/net/wifi/WifiScanner.java b/wifi/java/android/net/wifi/WifiScanner.java index fea934f..4ead972 100644 --- a/wifi/java/android/net/wifi/WifiScanner.java +++ b/wifi/java/android/net/wifi/WifiScanner.java @@ -417,11 +417,6 @@ public class WifiScanner { public void onPeriodChanged(int periodInMs); /** * reports results retrieved from background scan and single shot scans - * @deprecated in favor of {@link #onResults(ScanData[])} - */ - public void onResults(ScanResult[] results); - /** - * reports results retrieved from background scan and single shot scans */ public void onResults(ScanData[] results); /** @@ -452,12 +447,12 @@ public class WifiScanner { } /** * reports currently available scan results on appropriate listeners + * @return true if all scan results were reported correctly */ - public ScanResult[] getScanResults() { + public boolean getScanResults() { validateChannel(); Message reply = sAsyncChannel.sendMessageSynchronously(CMD_GET_SCAN_RESULTS, 0); - // return reply.what == CMD_OP_SUCCEEDED; - return null; + return reply.what == CMD_OP_SUCCEEDED; } /** @@ -727,7 +722,7 @@ public class WifiScanner { /* private members and methods */ private static final String TAG = "WifiScanner"; - private static final boolean DBG = true; + private static final boolean DBG = false; /* commands for Wifi Service */ private static final int BASE = Protocol.BASE_WIFI_SCANNER; |