Skip to content

Commit

Permalink
Bluetooth: Clear LE white list when resetting controller
Browse files Browse the repository at this point in the history
The internal representation of the LE white list needs to be cleared
when receiving a successful HCI_Reset command. A reset of the controller
is expected to start with an empty LE white list.

When the LE white list is not cleared on controller reset, the passive
background scanning might skip programming the remote devices. Only
changes to the LE white list are programmed when passive background
is started.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Cc: stable@vger.kernel.org # 3.17.x
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Oct 30, 2014
1 parent daac197 commit a4d5504
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/bluetooth/hci_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ static void hci_cc_reset(struct hci_dev *hdev, struct sk_buff *skb)
hdev->le_scan_type = LE_SCAN_PASSIVE;

hdev->ssp_debug_mode = 0;

hci_bdaddr_list_clear(&hdev->le_white_list);
}

static void hci_cc_write_local_name(struct hci_dev *hdev, struct sk_buff *skb)
Expand Down

0 comments on commit a4d5504

Please sign in to comment.