linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] event: Remove not used btd_event_remote_class
@ 2012-10-08 12:11 Szymon Janc
  2012-10-08 13:39 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Szymon Janc @ 2012-10-08 12:11 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

From: Szymon Janc <szymon@janc.net.pl>

This was used in hciops only. With mgmt interface remote CoD is
received in EIR from Device Found/Connected events.

---
 src/event.c |   22 ----------------------
 src/event.h |    1 -
 2 files changed, 23 deletions(-)

diff --git a/src/event.c b/src/event.c
index 84c7f88..0ebab19 100644
--- a/src/event.c
+++ b/src/event.c
@@ -280,28 +280,6 @@ void btd_event_set_legacy_pairing(bdaddr_t *local, bdaddr_t *peer,
 		dev->legacy = legacy;
 }
 
-void btd_event_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t class)
-{
-	struct btd_adapter *adapter;
-	struct btd_device *device;
-	uint32_t old_class = 0;
-
-	read_remote_class(local, peer, &old_class);
-
-	if (old_class == class)
-		return;
-
-	write_remote_class(local, peer, class);
-
-	if (!get_adapter_and_device(local, peer, &adapter, &device, FALSE))
-		return;
-
-	if (!device)
-		return;
-
-	device_set_class(device, class);
-}
-
 void btd_event_remote_name(bdaddr_t *local, bdaddr_t *peer, char *name)
 {
 	struct btd_adapter *adapter;
diff --git a/src/event.h b/src/event.h
index 6d001dd..6adf1f5 100644
--- a/src/event.h
+++ b/src/event.h
@@ -27,7 +27,6 @@ void btd_event_device_found(bdaddr_t *local, bdaddr_t *peer, uint8_t bdaddr_type
 					int8_t rssi, uint8_t confirm_name,
 					uint8_t *data, uint8_t data_len);
 void btd_event_set_legacy_pairing(bdaddr_t *local, bdaddr_t *peer, gboolean legacy);
-void btd_event_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t class);
 void btd_event_remote_name(bdaddr_t *local, bdaddr_t *peer, char *name);
 void btd_event_conn_complete(bdaddr_t *local, bdaddr_t *peer, uint8_t bdaddr_type,
 						char *name, uint32_t class);
-- 
1.7.9.5


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

* Re: [PATCH] event: Remove not used btd_event_remote_class
  2012-10-08 12:11 [PATCH] event: Remove not used btd_event_remote_class Szymon Janc
@ 2012-10-08 13:39 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2012-10-08 13:39 UTC (permalink / raw)
  To: Szymon Janc; +Cc: linux-bluetooth, Szymon Janc

Hi Szymon,

On Mon, Oct 08, 2012, Szymon Janc wrote:
> This was used in hciops only. With mgmt interface remote CoD is
> received in EIR from Device Found/Connected events.
> 
> ---
>  src/event.c |   22 ----------------------
>  src/event.h |    1 -
>  2 files changed, 23 deletions(-)

Applied. Thanks.

Johan

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

end of thread, other threads:[~2012-10-08 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-08 12:11 [PATCH] event: Remove not used btd_event_remote_class Szymon Janc
2012-10-08 13:39 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).