Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306871
b: refs/heads/master
c: 0ed0914
h: refs/heads/master
i:
  306869: c543fb8
  306867: 2ebb496
  306863: a71d318
v: v3
  • Loading branch information
Andre Guedes authored and Gustavo Padovan committed May 9, 2012
1 parent c4023a8 commit b247b59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb19aaacb3f88dbd69e1cd9a2b1f054d4dade678
refs/heads/master: 0ed09148fa61e01cd27c92933ba275ea8078b34d
1 change: 0 additions & 1 deletion trunk/include/net/bluetooth/hci_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,6 @@ void hci_sock_dev_event(struct hci_dev *hdev, int event);
#define MGMT_ADDR_BREDR 0x00
#define MGMT_ADDR_LE_PUBLIC 0x01
#define MGMT_ADDR_LE_RANDOM 0x02
#define MGMT_ADDR_INVALID 0xff

#define DISCOV_TYPE_BREDR (BIT(MGMT_ADDR_BREDR))
#define DISCOV_TYPE_LE (BIT(MGMT_ADDR_LE_PUBLIC) | \
Expand Down
14 changes: 7 additions & 7 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1640,15 +1640,15 @@ static u8 link_to_mgmt(u8 link_type, u8 addr_type)
switch (addr_type) {
case ADDR_LE_DEV_PUBLIC:
return MGMT_ADDR_LE_PUBLIC;
case ADDR_LE_DEV_RANDOM:
return MGMT_ADDR_LE_RANDOM;

default:
return MGMT_ADDR_INVALID;
/* Fallback to LE Random address type */
return MGMT_ADDR_LE_RANDOM;
}
case ACL_LINK:
return MGMT_ADDR_BREDR;

default:
return MGMT_ADDR_INVALID;
/* Fallback to BR/EDR type */
return MGMT_ADDR_BREDR;
}
}

Expand Down Expand Up @@ -1690,7 +1690,7 @@ static int get_connections(struct sock *sk, struct hci_dev *hdev, void *data,
continue;
bacpy(&rp->addr[i].bdaddr, &c->dst);
rp->addr[i].type = link_to_mgmt(c->type, c->dst_type);
if (rp->addr[i].type == MGMT_ADDR_INVALID)
if (c->type == SCO_LINK || c->type == ESCO_LINK)
continue;
i++;
}
Expand Down

0 comments on commit b247b59

Please sign in to comment.