Bug:
20868163
Change-Id: I8e3bb844b96b762f90a85d8d9d678a1a9cec9c32
static bt_status_t btpan_jni_init(const btpan_callbacks_t* callbacks)
{
BTIF_TRACE_DEBUG("stack_initialized = %d, btpan_cb.enabled:%d", stack_initialized, btpan_cb.enabled);
- jni_initialized = true;
- if (!stack_initialized && !btpan_cb.enabled)
- btif_pan_init();
callback = *callbacks;
+ jni_initialized = TRUE;
+ if (stack_initialized && !btpan_cb.enabled)
+ btif_pan_init();
return BT_STATUS_SUCCESS;
}