DBG("Launch BT Syspopup");
headed_plugin_info->headed_plugin->bt_launch_system_popup(
- BT_HAL_AGENT_EVENT_KEYBOARD_PASSKEY_REQUEST,
- name, auth_info, str_passkey, NULL, _gap_agent_get_path(agent));
+ BT_HAL_AGENT_EVENT_KEYBOARD_PASSKEY_REQUEST, name,
+ address, auth_info, str_passkey, NULL, _gap_agent_get_path(agent));
} else if (__bt_hal_device_is_auto_response(device_class, address, name)) {
DBG("Device is of Type Auto response, send event to HAL");
__bt_hal_send_pin_request_event(address, name, device_class);
} else {
DBG("Device is not of Auto response class, Show PIN Entry");
headed_plugin_info->headed_plugin->bt_launch_system_popup(
- BT_HAL_AGENT_EVENT_PIN_REQUEST, name, auth_info,
- NULL, NULL, _gap_agent_get_path(agent));
+ BT_HAL_AGENT_EVENT_PIN_REQUEST, name, address,
+ auth_info, NULL, NULL, _gap_agent_get_path(agent));
}
} else {
INFO("Plugin Headed not Enabled");
BT_SSP_VARIANT_PASSKEY_NOTIFICATION);
} else if (headed_plugin_info->plugin_headed_enabled) {
INFO("Plugin Headed Enabled");
- headed_plugin_info->headed_plugin->bt_launch_system_popup(BT_HAL_AGENT_EVENT_KEYBOARD_PASSKEY_REQUEST, name,
- auth_info, str_passkey, NULL, _gap_agent_get_path(agent));
+ headed_plugin_info->headed_plugin->bt_launch_system_popup(BT_HAL_AGENT_EVENT_KEYBOARD_PASSKEY_REQUEST,
+ name, address, auth_info, str_passkey, NULL, _gap_agent_get_path(agent));
} else {
INFO("Plugin Headed not Enabled");
__bt_hal_send_ssp_request_events(address, name, passkey, device_class,
__bt_hal_get_auth_info(reply, (char *)auth_info);
if (headed_plugin_info->plugin_headed_enabled) {
- headed_plugin_info->headed_plugin->bt_launch_system_popup(BT_HAL_AGENT_EVENT_PASSKEY_REQUEST, name, auth_info,
- NULL, NULL, _gap_agent_get_path(agent));
+ headed_plugin_info->headed_plugin->bt_launch_system_popup(BT_HAL_AGENT_EVENT_PASSKEY_REQUEST,
+ name, address, auth_info, NULL, NULL, _gap_agent_get_path(agent));
} else {
__bt_hal_send_ssp_request_events(address, name, 0, device_class,
BT_SSP_VARIANT_PASSKEY_ENTRY);
DBG("Passkey [%s]", str_passkey);
__bt_hal_get_auth_info(reply, (char *)auth_info);
- headed_plugin_info->headed_plugin->bt_launch_system_popup(BT_HAL_AGENT_EVENT_PASSKEY_CONFIRM_REQUEST, name,
- auth_info, str_passkey, NULL,
+ headed_plugin_info->headed_plugin->bt_launch_system_popup(BT_HAL_AGENT_EVENT_PASSKEY_CONFIRM_REQUEST,
+ name, address, auth_info, str_passkey, NULL,
_gap_agent_get_path(agent));
} else {
DBG("Headless Confirmation");
else if (!strcasecmp(uuid, BT_HAL_MAP_UUID))
request_type = BT_HAL_AGENT_EVENT_MAP_REQUEST;
- headed_plugin_info->headed_plugin->bt_launch_system_popup(request_type, name, auth_info, NULL, NULL,
- _gap_agent_get_path(agent));
+ headed_plugin_info->headed_plugin->bt_launch_system_popup(request_type, name,
+ address, auth_info, NULL, NULL, _gap_agent_get_path(agent));
}
done: