diff options
author | Irfan Sheriff <isheriff@google.com> | 2011-08-26 14:45:23 -0700 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2011-08-26 14:45:23 -0700 |
commit | f42c39b3d188ebb3ba9003cffc530717829fe874 (patch) | |
tree | b119ee2f83ab30dbd26cbfb169bd60281e139de9 /core/jni/android_net_wifi_Wifi.cpp | |
parent | 859e7de2359420dcc5275bdce588b96dcc9203f0 (diff) | |
download | frameworks_base-f42c39b3d188ebb3ba9003cffc530717829fe874.zip frameworks_base-f42c39b3d188ebb3ba9003cffc530717829fe874.tar.gz frameworks_base-f42c39b3d188ebb3ba9003cffc530717829fe874.tar.bz2 |
Use seperate config file for p2p
Keep p2p and sta config seperate to avoid conflicts.
Bug: 5002384
Change-Id: I8f8fc5f984f4f91f9ece4012bf536daa5cc00bba
Diffstat (limited to 'core/jni/android_net_wifi_Wifi.cpp')
-rw-r--r-- | core/jni/android_net_wifi_Wifi.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/jni/android_net_wifi_Wifi.cpp b/core/jni/android_net_wifi_Wifi.cpp index 3cbd912..84a50f0 100644 --- a/core/jni/android_net_wifi_Wifi.cpp +++ b/core/jni/android_net_wifi_Wifi.cpp @@ -124,6 +124,11 @@ static jboolean android_net_wifi_startSupplicant(JNIEnv* env, jobject) return (jboolean)(::wifi_start_supplicant() == 0); } +static jboolean android_net_wifi_startP2pSupplicant(JNIEnv* env, jobject) +{ + return (jboolean)(::wifi_start_p2p_supplicant() == 0); +} + static jboolean android_net_wifi_stopSupplicant(JNIEnv* env, jobject) { return doBooleanCommand("OK", "TERMINATE"); @@ -581,6 +586,7 @@ static JNINativeMethod gWifiMethods[] = { { "isDriverLoaded", "()Z", (void *)android_net_wifi_isDriverLoaded}, { "unloadDriver", "()Z", (void *)android_net_wifi_unloadDriver }, { "startSupplicant", "()Z", (void *)android_net_wifi_startSupplicant }, + { "startP2pSupplicant", "()Z", (void *)android_net_wifi_startP2pSupplicant }, { "stopSupplicant", "()Z", (void*) android_net_wifi_stopSupplicant }, { "killSupplicant", "()Z", (void *)android_net_wifi_killSupplicant }, { "connectToSupplicant", "()Z", (void *)android_net_wifi_connectToSupplicant }, |