提交 dbbfa2ab 编写于 作者: A Andre Guedes 提交者: Marcel Holtmann

Bluetooth: Use macro instead of hard-coded value

This patch replaces the hard-coded value in hci_bdaddr_is_rpa() helper
by the corresponding macro ADDR_LE_DEV_RANDOM.
Signed-off-by: NAndre Guedes <andre.guedes@openbossa.org>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 4dae2798
...@@ -1155,7 +1155,7 @@ static inline bool eir_has_data_type(u8 *data, size_t data_len, u8 type) ...@@ -1155,7 +1155,7 @@ static inline bool eir_has_data_type(u8 *data, size_t data_len, u8 type)
static inline bool hci_bdaddr_is_rpa(bdaddr_t *bdaddr, u8 addr_type) static inline bool hci_bdaddr_is_rpa(bdaddr_t *bdaddr, u8 addr_type)
{ {
if (addr_type != 0x01) if (addr_type != ADDR_LE_DEV_RANDOM)
return false; return false;
if ((bdaddr->b[5] & 0xc0) == 0x40) if ((bdaddr->b[5] & 0xc0) == 0x40)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册