WifiScanner: Remove pnosetting stopPno API (1/2)

BUG: 27532350
Change-Id: I6df3df56e66c7bbb8443c038cd8345989cf2d57e
This commit is contained in:
Roshan Pius
2016-04-07 10:31:23 -07:00
parent 8d35506e51
commit 37aeb4700b

View File

@@ -810,19 +810,17 @@ public class WifiScanner {
}
/**
* Stop an ongoing wifi PNO scan
* @param pnoSettings specifies various parameters for PNO; for more information look at
* {@link PnoSettings}
* @param listener specifies which scan to cancel; must be same object as passed in {@link
* #startPnoScan}
* TODO(rpius): Check if we can remove pnoSettings param in stop.
* {@hide}
*/
public void stopPnoScan(PnoSettings pnoSettings, ScanListener listener) {
public void stopPnoScan(ScanListener listener) {
Preconditions.checkNotNull(listener, "listener cannot be null");
int key = removeListener(listener);
if (key == INVALID_KEY) return;
validateChannel();
sAsyncChannel.sendMessage(CMD_STOP_PNO_SCAN, 0, key, pnoSettings);
sAsyncChannel.sendMessage(CMD_STOP_PNO_SCAN, 0, key);
}
/** specifies information about an access point of interest */