summaryrefslogtreecommitdiffstats
path: root/btif/src/btif_dm.c
diff options
context:
space:
mode:
authorSrikanth Uppala <suppala@broadcom.com>2012-04-04 03:32:59 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:15 -0700
commita379d445a64ce499ff8f32ffa3db49e570da2945 (patch)
tree146de2d9c5902a29e6d1fc3ad94ed9d89e61f423 /btif/src/btif_dm.c
parente8070c41e25c6f0d368d7a53c0641524ea4630d2 (diff)
downloadexternal_bluetooth_bluedroid-a379d445a64ce499ff8f32ffa3db49e570da2945.zip
external_bluetooth_bluedroid-a379d445a64ce499ff8f32ffa3db49e570da2945.tar.gz
external_bluetooth_bluedroid-a379d445a64ce499ff8f32ffa3db49e570da2945.tar.bz2
Fix discoverability timeout issues. (a) implement timeout logic (b) persist 'never timeout' after reboot (c) code cleanup
Change-Id: Ifca7250c9b1295437d29e798d685abb4bd843865
Diffstat (limited to 'btif/src/btif_dm.c')
-rwxr-xr-xbtif/src/btif_dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btif/src/btif_dm.c b/btif/src/btif_dm.c
index 610cd3f..17d2488 100755
--- a/btif/src/btif_dm.c
+++ b/btif/src/btif_dm.c
@@ -1306,7 +1306,7 @@ bt_status_t btif_dm_get_adapter_property(bt_property_t *prop)
case BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT:
{
uint32_t *tmt = (uint32_t*)prop->val;
- *tmt = 0;
+ *tmt = 120; /* default to 120s, if not found in NV */
prop->len = sizeof(uint32_t);
}
break;