All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] core/adapter: Fix using wrong address type to listen ATT
@ 2016-11-14 11:30 Luiz Augusto von Dentz
  2016-11-14 11:51 ` Johan Hedberg
  0 siblings, 1 reply; 7+ messages in thread
From: Luiz Augusto von Dentz @ 2016-11-14 11:30 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

bdaddr_type shall only matter for controllers supporting LE otherwise
it may cause BDADDR_BREDR to be used for things like LE ATT socket
listen breaking reconnections.
---
 src/adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/adapter.c b/src/adapter.c
index b81b4e8..b134709 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -8085,7 +8085,7 @@ static void read_info_complete(uint8_t status, uint16_t length,
 		}
 	} else {
 		bacpy(&adapter->bdaddr, &rp->bdaddr);
-		if (adapter->supported_settings & MGMT_SETTING_BREDR)
+		if (!(adapter->supported_settings & MGMT_SETTING_LE))
 			adapter->bdaddr_type = BDADDR_BREDR;
 		else
 			adapter->bdaddr_type = BDADDR_LE_PUBLIC;
-- 
2.7.4


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

end of thread, other threads:[~2016-11-18 14:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-14 11:30 [PATCH BlueZ] core/adapter: Fix using wrong address type to listen ATT Luiz Augusto von Dentz
2016-11-14 11:51 ` Johan Hedberg
2016-11-14 13:53   ` Trump DD
2016-11-14 14:12     ` Luiz Augusto von Dentz
2016-11-15  0:45       ` Trump DD
2016-11-16 12:06         ` Luiz Augusto von Dentz
2016-11-18 14:34           ` Trump DD

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.