diff options
-rw-r--r-- | service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java b/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java index 6fdcc36c6..05721afee 100644 --- a/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java +++ b/service/java/com/android/server/wifi/aware/WifiAwareNativeCallback.java @@ -183,7 +183,12 @@ public class WifiAwareNativeCallback extends IWifiNanIfaceEventCallback.Stub imp public void notifyEnableResponse(short id, WifiNanStatus status) { if (VDBG) Log.v(TAG, "notifyEnableResponse: id=" + id + ", status=" + statusString(status)); - if (status.status == NanStatusType.SUCCESS) { + if (status.status == NanStatusType.ALREADY_ENABLED) { + Log.wtf(TAG, "notifyEnableResponse: id=" + id + ", already enabled!?"); + } + + if (status.status == NanStatusType.SUCCESS + || status.status == NanStatusType.ALREADY_ENABLED) { mWifiAwareStateManager.onConfigSuccessResponse(id); } else { mWifiAwareStateManager.onConfigFailedResponse(id, status.status); |