From 1fccc6fb010a00034b8328db51801686341b121e Mon Sep 17 00:00:00 2001 From: Kausik Sinnaswamy Date: Wed, 7 Mar 2012 11:05:55 -0800 Subject: During stack enable, always set the adapter to SCAN_MODE_NONE irrespective of what the NVRAM reports. Change-Id: I3320ee4af11e834522a18ffb79a15f6cdd0d69d2 --- btif/src/btif_storage.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/btif/src/btif_storage.c b/btif/src/btif_storage.c index 6c0c337..4905931 100644 --- a/btif/src/btif_storage.c +++ b/btif/src/btif_storage.c @@ -969,8 +969,14 @@ bt_status_t btif_storage_load_bonded_devices(void) num_props++; /* SCAN_MODE */ - BTIF_STORAGE_GET_ADAPTER_PROP(BT_PROPERTY_ADAPTER_SCAN_MODE, &mode, sizeof(mode), - adapter_props[num_props]); + /* TODO: At the time of BT on, always report the scan mode as 0 irrespective + of the scan_mode during the previous enable cycle. + This needs to be re-visited as part of the app/stack enable sequence + synchronization */ + mode = BT_SCAN_MODE_NONE; + adapter_props[num_props].type = BT_PROPERTY_ADAPTER_SCAN_MODE; + adapter_props[num_props].len = sizeof(mode); + adapter_props[num_props].val = &mode; num_props++; /* DISC_TIMEOUT */ -- cgit v1.1