From c101b1c90b5c2e649c7f4b14c9c40c570a3ece05 Mon Sep 17 00:00:00 2001 From: Vinit Deshpande Date: Mon, 19 May 2014 15:24:18 -0700 Subject: Implement onPeriodChanged and multiple scans of same channels This change fixes multiple scans of same channels; and it generates onPeriodChanged event. cherry-picked from partner:klp-wireless-dev SHA1 950564a305865cc0ae2bc528479ea6922efbb898 Bug: 15000051 Change-Id: I06a4ecc9d45eda4984de50b97b39f623dd0b26d1 --- wifi/java/android/net/wifi/WifiScanner.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wifi/java/android/net/wifi/WifiScanner.java b/wifi/java/android/net/wifi/WifiScanner.java index b766268..9ea7027 100644 --- a/wifi/java/android/net/wifi/WifiScanner.java +++ b/wifi/java/android/net/wifi/WifiScanner.java @@ -783,6 +783,9 @@ public class WifiScanner { FullScanResult result = (FullScanResult) msg.obj; ((ScanListener) listener).onFullResult(result); return; + case CMD_PERIOD_CHANGED: + ((ScanListener) listener).onPeriodChanged(msg.arg1); + return; case CMD_AP_FOUND: ((HotlistListener) listener).onFound( ((ParcelableScanResults) msg.obj).getResults()); -- cgit v1.1