Skip to content

Commit

Permalink
Bluetooth: Remove OOB data if device was discovered in band
Browse files Browse the repository at this point in the history
OOB authentication mechanism should be used only if pairing process
has been activated by previous OOB information exchange (Core Spec
4.0 , vol. 1, Part A, 5.1.4.3). Stored OOB data for specific device
should be removed if that device was discovered in band later on.

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
  • Loading branch information
Szymon Janc authored and Gustavo Padovan committed Nov 20, 2012
1 parent fd45bf4 commit 2b2fec4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ bool hci_inquiry_cache_update(struct hci_dev *hdev, struct inquiry_data *data,

BT_DBG("cache %p, %pMR", cache, &data->bdaddr);

hci_remove_remote_oob_data(hdev, &data->bdaddr);

if (ssp)
*ssp = data->ssp_mode;

Expand Down

0 comments on commit 2b2fec4

Please sign in to comment.