summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrikanth Uppala <suppala@broadcom.com>2012-04-23 05:14:49 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:18 -0700
commit7b7aa6c5a9498e9e3ac3c6f16ee9164268314f60 (patch)
tree0cba2aa2964060bbbb8eda72b1eaa8966b8bb927
parent79feed52b5f270f179949c8a85ff9e19a0981557 (diff)
downloadexternal_bluetooth_bluedroid-7b7aa6c5a9498e9e3ac3c6f16ee9164268314f60.zip
external_bluetooth_bluedroid-7b7aa6c5a9498e9e3ac3c6f16ee9164268314f60.tar.gz
external_bluetooth_bluedroid-7b7aa6c5a9498e9e3ac3c6f16ee9164268314f60.tar.bz2
Handle SDP DB FULL error gracefully.
Change-Id: I77b751d14afb8fbe450d5176454a33dc6884f51d
-rw-r--r--bta/dm/bta_dm_act.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bta/dm/bta_dm_act.c b/bta/dm/bta_dm_act.c
index 3c93f23..f43a5c7 100644
--- a/bta/dm/bta_dm_act.c
+++ b/bta/dm/bta_dm_act.c
@@ -1525,7 +1525,8 @@ void bta_dm_sdp_result (tBTA_DM_MSG *p_data)
{
/* SDP_DB_FULL means some records with the
required attributes were received */
- if((p_data->sdp_event.sdp_result == SDP_DB_FULL) ||
+ if(((p_data->sdp_event.sdp_result == SDP_DB_FULL) &&
+ bta_dm_search_cb.services != BTA_ALL_SERVICE_MASK) ||
(p_sdp_rec != NULL))
{
/* If Plug and Play service record, check to see if Broadcom stack */