]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix re-setting RPA as expired when deferring update
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 12 Sep 2014 16:31:52 +0000 (09:31 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 12 Sep 2014 16:34:25 +0000 (18:34 +0200)
commit7aa073a9828e541f640b7fa0bf7ef2c0047b5deb
treee5705626f781e83cfa65b476bdd3f3c457c1747d
parentc45d2a5c1b0da6597eeaa298bb22952fb834c20d
Bluetooth: Fix re-setting RPA as expired when deferring update

The hci_update_random_address will clear the RPA_EXPIRED flag and
proceed with setting a new one if the flag was set. However, the
set_random_addr() function that is called may choose to defer the update
to a later moment. In such a case the flag would incorrectly remain
unset unless set_random_addr() re-sets it. This patch fixes the issue.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c