]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Check for flag instead of features in update_scan_rsp_data()
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 19 Oct 2013 20:38:15 +0000 (23:38 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 20 Oct 2013 16:05:40 +0000 (09:05 -0700)
commit3ad28ce81953eaf1c8d6ad005e494b524b6aafc0
tree72a25938388c97707e1e15858c3825d22bfc5e7d
parent26ee7aa72b3f1675bd79248e72c8501a702af3ac
Bluetooth: Check for flag instead of features in update_scan_rsp_data()

It's better to check for the device flag instead of device features so
that we avoid unnecessary HCI commands when the feature is supported but
disabled (i.e. the flag is unset).

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