Linux-Bluetooth Archive on lore.kernel.org
 help / Atom feed
* [PATCH BlueZ] mesh: remove uneeded BDADDR type check
@ 2019-01-10 23:22 Brian Gix
  2019-01-14 22:10 ` Gix, Brian
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Gix @ 2019-01-10 23:22 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: inga.stotland, brian.gix, michal.lowas-rzechonek

BT_HCI_EVT_LE_ADV_REPORT only comes from legal LE events
---
 mesh/mesh-io-generic.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/mesh/mesh-io-generic.c b/mesh/mesh-io-generic.c
index 48e47e7a4..670c7ab97 100644
--- a/mesh/mesh-io-generic.c
+++ b/mesh/mesh-io-generic.c
@@ -130,10 +130,6 @@ static void event_adv_report(struct mesh_io *io, const void *buf, uint8_t size)
 	if (evt->event_type != 0x03)
 		return;
 
-	if (evt->addr_type != BDADDR_LE_PUBLIC &&
-			evt->addr_type != BDADDR_LE_RANDOM)
-		return;
-
 	instant = get_instant();
 	adv = evt->data;
 	adv_len = evt->data_len;
-- 
2.14.5


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

* Re: [PATCH BlueZ] mesh: remove uneeded BDADDR type check
  2019-01-10 23:22 [PATCH BlueZ] mesh: remove uneeded BDADDR type check Brian Gix
@ 2019-01-14 22:10 ` Gix, Brian
  0 siblings, 0 replies; 2+ messages in thread
From: Gix, Brian @ 2019-01-14 22:10 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: michal.lowas-rzechonek, Stotland, Inga

Patch Applied

On Thu, 2019-01-10 at 15:22 -0800, Brian Gix wrote:
> BT_HCI_EVT_LE_ADV_REPORT only comes from legal LE events
> ---
>  mesh/mesh-io-generic.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/mesh/mesh-io-generic.c b/mesh/mesh-io-generic.c
> index 48e47e7a4..670c7ab97 100644
> --- a/mesh/mesh-io-generic.c
> +++ b/mesh/mesh-io-generic.c
> @@ -130,10 +130,6 @@ static void event_adv_report(struct mesh_io *io, const void *buf, uint8_t size)
>  	if (evt->event_type != 0x03)
>  		return;
>  
> -	if (evt->addr_type != BDADDR_LE_PUBLIC &&
> -			evt->addr_type != BDADDR_LE_RANDOM)
> -		return;
> -
>  	instant = get_instant();
>  	adv = evt->data;
>  	adv_len = evt->data_len;
^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-10 23:22 [PATCH BlueZ] mesh: remove uneeded BDADDR type check Brian Gix
2019-01-14 22:10 ` Gix, Brian

Linux-Bluetooth Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
		linux-bluetooth@vger.kernel.org linux-bluetooth@archiver.kernel.org
	public-inbox-index linux-bluetooth


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-bluetooth


AGPL code for this site: git clone https://public-inbox.org/ public-inbox