From 7d6301ead19afdf3de37455e9ed133c25b4938cd Mon Sep 17 00:00:00 2001 From: Vinit Deshpande Date: Thu, 19 Mar 2015 12:24:53 -0700 Subject: Fix a runtime crash introduced by incorrect JNI mapping Change-Id: Ie37d8a8788e8bdc3a5f52b2ff58be3506943bf9d --- service/jni/com_android_server_wifi_WifiNative.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'service/jni') diff --git a/service/jni/com_android_server_wifi_WifiNative.cpp b/service/jni/com_android_server_wifi_WifiNative.cpp index f40284be8..9734f3902 100644 --- a/service/jni/com_android_server_wifi_WifiNative.cpp +++ b/service/jni/com_android_server_wifi_WifiNative.cpp @@ -1303,11 +1303,10 @@ int buffer_size, wifi_ring_buffer_status *status) { 0, 0); } -static jboolean android_net_wifi_start_logging( - JNIEnv *env, jclass cls, jint iface, jint id, jobject params) { +static jboolean android_net_wifi_start_logging(JNIEnv *env, jclass cls, jint iface) { wifi_interface_handle handle = getIfaceHandle(env, cls, iface); - ALOGD("android_net_wifi_start_logging [%d] = %p", id, handle); + ALOGD("android_net_wifi_start_logging = %p", handle); if (handle == 0) { return WIFI_ERROR_UNINITIALIZED; @@ -1375,7 +1374,7 @@ static JNINativeMethod gWifiMethods[] = { { "toggleInterfaceNative", "(I)Z", (void*) android_net_wifi_toggle_interface}, { "getRttCapabilitiesNative", "(I)Landroid/net/wifi/RttManager$RttCapabilities;", (void*) android_net_wifi_get_rtt_capabilities}, - { "android_net_wifi_start_logging", "(IZ)Z", (void*) android_net_wifi_start_logging} + { "startLogging", "(I)Z", (void*) android_net_wifi_start_logging} }; int register_android_net_wifi_WifiNative(JNIEnv* env) { -- cgit v1.2.3