diff --git a/android/bluetooth.c b/android/bluetooth.c
index 93c7935..5782e4d 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
char *name;
uint32_t current_settings;
+ uint32_t supported_settings;
uint8_t cur_discovery_type;
uint8_t exp_discovery_type;
.dev_class = 0,
.name = NULL,
.current_settings = 0,
+ .supported_settings = 0,
.cur_discovery_type = SCAN_TYPE_NONE,
.exp_discovery_type = SCAN_TYPE_NONE,
.discoverable_timeout = DEFAULT_DISCOVERABLE_TIMEOUT,
{
const struct mgmt_rp_read_info *rp = param;
bt_bluetooth_ready cb = user_data;
- uint32_t missing_settings, supported_settings;
+ uint32_t missing_settings;
int err;
DBG("");
adapter.dev_class = rp->dev_class[0] | (rp->dev_class[1] << 8) |
(rp->dev_class[2] << 16);
- supported_settings = btohs(rp->supported_settings);
+ adapter.supported_settings = btohs(rp->supported_settings);
adapter.current_settings = btohs(rp->current_settings);
/* TODO: Register all event notification handlers */
set_io_capability();
set_device_id();
- missing_settings = adapter.current_settings ^ supported_settings;
+ missing_settings = adapter.current_settings ^
+ adapter.supported_settings;
if (missing_settings & MGMT_SETTING_SSP)
set_mode(MGMT_OP_SET_SSP, 0x01);