diff options
Diffstat (limited to 'wifi/java')
| -rw-r--r-- | wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java b/wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java index 960447504d15..8630ec4b062d 100644 --- a/wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java +++ b/wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java @@ -963,6 +963,25 @@ public class WifiNl80211Manager { } /** + * Get the max number of SSIDs that the driver supports per scan. + * + * @param ifaceName Name of the interface. + */ + public int getMaxNumScanSsids(@NonNull String ifaceName) { + IWifiScannerImpl scannerImpl = getScannerImpl(ifaceName); + if (scannerImpl == null) { + Log.e(TAG, "No valid wificond scanner interface handler for iface=" + ifaceName); + return 0; + } + try { + return scannerImpl.getMaxNumScanSsids(); + } catch (RemoteException e1) { + Log.e(TAG, "Failed to getMaxNumScanSsids"); + } + return 0; + } + + /** * Return scan type for the parcelable {@link SingleScanSettings} */ private static int getScanType(@WifiAnnotations.ScanType int scanType) { |