Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/8] Bluetooth: Use lmp_bredr_capable where applicable
@ 2012-07-24 18:03 Andre Guedes
  2012-07-24 18:03 ` [PATCH 2/8] Bluetooth: Use lmp_le_capable " Andre Guedes
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Andre Guedes @ 2012-07-24 18:03 UTC (permalink / raw)
  To: linux-bluetooth

This patch replaces all LMP_NO_BREDR bit checking by the helper
macro lmp_bredr_capable.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
---
 net/bluetooth/mgmt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 2a0f695..990ec6a 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -383,7 +383,7 @@ static u32 get_supported_settings(struct hci_dev *hdev)
 	if (hdev->features[6] & LMP_SIMPLE_PAIR)
 		settings |= MGMT_SETTING_SSP;
 
-	if (!(hdev->features[4] & LMP_NO_BREDR)) {
+	if (lmp_bredr_capable(hdev)) {
 		settings |= MGMT_SETTING_BREDR;
 		settings |= MGMT_SETTING_LINK_SECURITY;
 	}
@@ -413,7 +413,7 @@ static u32 get_current_settings(struct hci_dev *hdev)
 	if (test_bit(HCI_PAIRABLE, &hdev->dev_flags))
 		settings |= MGMT_SETTING_PAIRABLE;
 
-	if (!(hdev->features[4] & LMP_NO_BREDR))
+	if (lmp_bredr_capable(hdev))
 		settings |= MGMT_SETTING_BREDR;
 
 	if (test_bit(HCI_LE_ENABLED, &hdev->dev_flags))
-- 
1.7.11.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-07-24 22:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-24 18:03 [PATCH 1/8] Bluetooth: Use lmp_bredr_capable where applicable Andre Guedes
2012-07-24 18:03 ` [PATCH 2/8] Bluetooth: Use lmp_le_capable " Andre Guedes
2012-07-24 18:03 ` [PATCH 3/8] Bluetooth: Use lmp_ssp_capable " Andre Guedes
2012-07-24 18:03 ` [PATCH 4/8] Bluetooth: Use lmp_esco_capable " Andre Guedes
2012-07-24 18:03 ` [PATCH 5/8] Bluetooth: Use lmp_rswitch_capable " Andre Guedes
2012-07-24 18:03 ` [PATCH 6/8] Bluetooth: Use lmp_sniff_capable " Andre Guedes
2012-07-24 18:03 ` [PATCH 7/8] Bluetooth: Use lmp_sniffsubr_capable " Andre Guedes
2012-07-24 18:03 ` [PATCH 8/8] Bluetooth: Use lmp_no_flush_capable " Andre Guedes
2012-07-24 22:17   ` Gustavo Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox