diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2014-06-25 15:44:45 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-03 11:42:46 -0400 |
commit | dbbfa2ab7a2a508fd6ad2ce08f7f34c3041f51ef (patch) | |
tree | 698fb393cf00ccf92dd77dc1ddb2e99eb10aebb7 | |
parent | 4dae27983eaaee15c6867561eb2c8d7b2d28d6cc (diff) |
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: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 0b0597d81827..dda7f00c07c5 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -1155,7 +1155,7 @@ static inline bool eir_has_data_type(u8 *data, size_t data_len, u8 type) | |||
1155 | 1155 | ||
1156 | static inline bool hci_bdaddr_is_rpa(bdaddr_t *bdaddr, u8 addr_type) | 1156 | static inline bool hci_bdaddr_is_rpa(bdaddr_t *bdaddr, u8 addr_type) |
1157 | { | 1157 | { |
1158 | if (addr_type != 0x01) | 1158 | if (addr_type != ADDR_LE_DEV_RANDOM) |
1159 | return false; | 1159 | return false; |
1160 | 1160 | ||
1161 | if ((bdaddr->b[5] & 0xc0) == 0x40) | 1161 | if ((bdaddr->b[5] & 0xc0) == 0x40) |