Bluetooth: mgmt: Add address type parameter to Discovering event
This patch adds an address type parameter to the Discovering event. The value matches that given to Start/Stop Discovery. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
@ -363,10 +363,9 @@ void hci_discovery_set_state(struct hci_dev *hdev, int state)
|
||||
|
||||
switch (state) {
|
||||
case DISCOVERY_STOPPED:
|
||||
hdev->discovery.type = 0;
|
||||
|
||||
if (hdev->discovery.state != DISCOVERY_STARTING)
|
||||
mgmt_discovering(hdev, 0);
|
||||
hdev->discovery.type = 0;
|
||||
break;
|
||||
case DISCOVERY_STARTING:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user