OSDN Git Service

btpan_enable is never called from JNI
authorZach Johnson <zachoverflow@google.com>
Tue, 25 Aug 2020 23:47:43 +0000 (16:47 -0700)
committerZach Johnson <zachoverflow@google.com>
Tue, 25 Aug 2020 23:48:23 +0000 (16:48 -0700)
so don't even give it an option to in the future

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I985186ad307690fb1dcb594e569ccb9dbb4aca0a

btif/src/btif_pan.cc

index ef1c741..effa5c6 100644 (file)
@@ -110,7 +110,7 @@ static void bta_pan_callback(tBTA_PAN_EVT event, tBTA_PAN* p_data);
 static void btu_exec_tap_fd_read(const int fd);
 
 static btpan_interface_t pan_if = {
-    sizeof(pan_if), btpan_jni_init,   btpan_enable,     btpan_get_local_role,
+    sizeof(pan_if), btpan_jni_init,   nullptr,          btpan_get_local_role,
     btpan_connect,  btpan_disconnect, btpan_jni_cleanup};
 
 const btpan_interface_t* btif_pan_get_interface() { return &pan_if; }