diff options
author | Irfan Sheriff <isheriff@google.com> | 2011-11-18 14:33:09 -0800 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2011-11-28 11:50:11 -0800 |
commit | 618455f7e7255019c8cc08a734ba7c52b67a7dc8 (patch) | |
tree | f5a6b4c6e96c34a5b1b5e4061820d0d3bfe93c45 /core/jni/android_net_wifi_Wifi.cpp | |
parent | 55abad3904f98974e52a0b315019df307d1b0629 (diff) | |
download | frameworks_base-618455f7e7255019c8cc08a734ba7c52b67a7dc8.zip frameworks_base-618455f7e7255019c8cc08a734ba7c52b67a7dc8.tar.gz frameworks_base-618455f7e7255019c8cc08a734ba7c52b67a7dc8.tar.bz2 |
Redesign p2p around provision discovery
= Provision Discovery:Is an optional discovery technique for figuring out
if a peer supports the specific WPS option. For compatibility reasons,
we will now always use it during connection but at the same time support
devices that request to support connection without it
= State machine and UI redesign around the new interaction
= Specify config methods explicitly for compatibility
Bug: 5599949
Change-Id: Ib79435dda472c43cc0746f56bf79ea896b2e33a4
Diffstat (limited to 'core/jni/android_net_wifi_Wifi.cpp')
-rw-r--r-- | core/jni/android_net_wifi_Wifi.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/jni/android_net_wifi_Wifi.cpp b/core/jni/android_net_wifi_Wifi.cpp index 84c636b..90c24b5 100644 --- a/core/jni/android_net_wifi_Wifi.cpp +++ b/core/jni/android_net_wifi_Wifi.cpp @@ -34,6 +34,7 @@ namespace android { static jboolean sScanModeActive = false; +static jint DBG = false; static int doCommand(const char *cmd, char *replybuf, int replybuflen) { @@ -527,6 +528,7 @@ static jboolean android_net_wifi_doBooleanCommand(JNIEnv* env, jobject, jstring if (command.c_str() == NULL) { return JNI_FALSE; } + if (DBG) LOGD("doBoolean: %s", command.c_str()); return doBooleanCommand("OK", "%s", command.c_str()); } @@ -536,6 +538,7 @@ static jint android_net_wifi_doIntCommand(JNIEnv* env, jobject, jstring javaComm if (command.c_str() == NULL) { return -1; } + if (DBG) LOGD("doInt: %s", command.c_str()); return doIntCommand("%s", command.c_str()); } @@ -545,6 +548,7 @@ static jstring android_net_wifi_doStringCommand(JNIEnv* env, jobject, jstring ja if (command.c_str() == NULL) { return NULL; } + if (DBG) LOGD("doString: %s", command.c_str()); return doStringCommand(env, "%s", command.c_str()); } |