If you set the authentication request_cb only, cb is not called.
If you don't set the req_cb, request_cb is not called.
Change-Id: Ica53667f5e4d7b92708788c58e47632dcb7f827d
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
}
event_index = __bt_get_cb_index(event);
- if (event_index != -1 && bt_event_slot_container[event_index].callback)
+ if (event_index != -1 && bt_event_slot_container[event_index].callback) {
return true;
+ } else if (event == BLUETOOTH_EVENT_PASSKEY_CONFIRM_REQUEST &&
+ bt_event_slot_container[BT_EVENT_AUTHENTICATION_REQUEST_NEW].callback) {
+ return true;
+ }
return false;
}