From f3bd1ffe42de3e86df4531cd853dcc4b9bfe669d Mon Sep 17 00:00:00 2001 From: Ganesh Ganapathi Batta Date: Mon, 21 May 2012 12:03:45 -0700 Subject: Convert BDA str to uppercase before comparing with autopair blacklist Change-Id: I6088f79f818cee347811cd8f883daf8e8ef92eeb --- btif/src/btif_storage.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'btif/src') diff --git a/btif/src/btif_storage.c b/btif/src/btif_storage.c index a68f76e..2ff415c 100755 --- a/btif/src/btif_storage.c +++ b/btif/src/btif_storage.c @@ -99,6 +99,8 @@ #include #include #include +#include + #include @@ -141,7 +143,6 @@ #define BTIF_STORAGE_KEY_AUTOPAIR_BLIACKLIST_EXACTNAME "ExactNameBlacklist" #define BTIF_STORAGE_KEY_AUTOPAIR_BLIACKLIST_PARTIALNAME "PartialNameBlacklist" #define BTIF_STORAGE_KEY_AUTOPAIR_FIXPIN_KBLIST "FixedPinZerosKeyboardBlacklist" -#define BTIF_STORAGE_KEY_AUTOPAIR_FIXPIN_KBLIST "FixedPinZerosKeyboardBlacklist" #define BTIF_STORAGE_KEY_AUTOPAIR_DYNAMIC_BLIACKLIST_ADDR "DynamicAddressBlacklist" #define BTIF_AUTO_PAIR_CONF_VALUE_SEPERATOR "," @@ -1805,6 +1806,7 @@ BOOLEAN btif_storage_is_device_autopair_blacklisted(bt_bdaddr_t *remote_dev_add bdstr_t bdstr; char bd_addr_lap[9]; char *dev_name_str; + uint8_t i = 0; char linebuf[BTIF_STORAGE_MAX_LINE_SZ]; bd2str(remote_dev_addr, &bdstr); @@ -1812,6 +1814,10 @@ BOOLEAN btif_storage_is_device_autopair_blacklisted(bt_bdaddr_t *remote_dev_add /* create a string with Lower Address Part from BD Address */ snprintf(bd_addr_lap, 9, "%s", (char*)bdstr); + for ( i =0; i