diff options
| -rw-r--r-- | core/api/system-current.txt | 1 | ||||
| -rw-r--r-- | wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt index c10504d9ee05..9d36353d9f11 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -9313,6 +9313,7 @@ package android.net.wifi.nl80211 { } public class WifiNl80211Manager { + ctor public WifiNl80211Manager(@NonNull android.content.Context, @NonNull android.os.IBinder); method public void abortScan(@NonNull String); method public void enableVerboseLogging(boolean); method @NonNull public int[] getChannelsMhzForBand(int); diff --git a/wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java b/wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java index d85a5bdc3e66..5da18dc8ccad 100644 --- a/wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java +++ b/wifi/java/src/android/net/wifi/nl80211/WifiNl80211Manager.java @@ -393,6 +393,21 @@ public class WifiNl80211Manager { mEventHandler = new Handler(context.getMainLooper()); } + /** + * Construct WifiNl80211Manager with giving context and binder which is an interface of + * IWificond. + * + * @param context Android context. + * @param binder a binder of IWificond. + */ + public WifiNl80211Manager(@NonNull Context context, @NonNull IBinder binder) { + this(context); + mWificond = IWificond.Stub.asInterface(binder); + if (mWificond == null) { + Log.e(TAG, "Failed to get reference to wificond"); + } + } + /** @hide */ @VisibleForTesting public WifiNl80211Manager(Context context, IWificond wificond) { |