Bluetooth: Send AdvMonitor Dev Found for all matched devices
authorManish Mandlik <mmandlik@google.com>
Sat, 12 Mar 2022 10:08:59 +0000 (02:08 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Mar 2022 16:12:08 +0000 (17:12 +0100)
commitff39fc1bc6b4053a9c3f193c7e3255a06ecfcc43
treec433353ebc3eb5a17aa56cca9b7793fad7ab7859
parent37b63c68194d09d358c8abd73692adf9a6ceaad3
Bluetooth: Send AdvMonitor Dev Found for all matched devices

When an Advertisement Monitor is configured with SamplingPeriod 0xFF,
the controller reports only one adv report along with the MSFT Monitor
Device event.

When an advertiser matches multiple monitors, some controllers send one
adv report for each matched monitor; whereas, some controllers send just
one adv report for all matched monitors.

In such a case, report Adv Monitor Device Found event for each matched
monitor.

Signed-off-by: Manish Mandlik <mmandlik@google.com>
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c