diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-10-28 22:23:27 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-28 22:48:56 +0100 |
commit | 0b1db38ca26b322296cbd141f3080eccfe1cc3e1 (patch) | |
tree | a75be64acc44c0dc2928d3dbbb7eebd988987995 /net/mac802154 | |
parent | 980ffc0a2cec2c37589cc97993e1ad17252f4f47 (diff) |
Bluetooth: Fix check for direct advertising
These days we allow simultaneous LE scanning and advertising. Checking
for whether advertising is enabled or not is therefore not a reliable
way to determine whether directed advertising was used to trigger the
connection creation. The appropriate place to check (instead of the hdev
context) is the connection role that's stored in the hci_conn. This
patch fixes such a check in le_conn_timeout() which could otherwise lead
to incorrect HCI commands being sent.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: stable@vger.kernel.org # 3.16.x
Diffstat (limited to 'net/mac802154')
0 files changed, 0 insertions, 0 deletions