Diff between 2ab15d89c1b6fb14ee4d00b46f4489a30a6843b4 and 125fa19faad894b8ca1e6e4d5abe4e0691810f54

Changed Files

File Additions Deletions Status
emulator/btdev.c +0 -9 modified

Full Patch

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 7db7a74..ad5bb8d 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -3424,7 +3424,6 @@ static int cmd_add_wl(struct btdev *dev, const void *data, uint8_t len)
 	uint8_t status;
 	bool exists = false;
 	int i, pos = -1;
-	char addr[18];
 
 	/* Valid range for address type is 0x00 to 0x01 */
 	if (cmd->addr_type > 0x01)
@@ -3433,10 +3432,6 @@ static int cmd_add_wl(struct btdev *dev, const void *data, uint8_t len)
 	for (i = 0; i < WL_SIZE; i++) {
 		struct btdev_wl *wl = &dev->le_wl[i];
 
-		ba2str(&wl->addr, addr);
-		util_debug(dev->debug_callback, dev->debug_data,
-			"type 0x%02x addr %s", wl->type, addr);
-
 		if (WL_ADDR_EQUAL(wl, cmd->addr_type, &cmd->addr)) {
 			exists = true;
 			break;
@@ -3455,10 +3450,6 @@ static int cmd_add_wl(struct btdev *dev, const void *data, uint8_t len)
 
 	wl_add(&dev->le_wl[pos], cmd->addr_type, (bdaddr_t *)&cmd->addr);
 
-	ba2str(&(dev->le_wl[pos]).addr, addr);
-	util_debug(dev->debug_callback, dev->debug_data,
-			"type 0x%02x addr %s", dev->le_wl[pos].type, addr);
-
 	status = BT_HCI_ERR_SUCCESS;
 	cmd_complete(dev, BT_HCI_CMD_LE_ADD_TO_WHITE_LIST,
 						&status, sizeof(status));