From: Johan Hedberg Date: Wed, 2 Jul 2014 14:37:28 +0000 (+0300) Subject: Bluetooth: Remove only enabled entries with Remove Device command X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~87^2~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c71593dd34ae1fd46777662a522a32cfde86f073;p=pandora-kernel.git Bluetooth: Remove only enabled entries with Remove Device command The Remove Device mgmt command is supposed to undo what the Add Device command does. An entry added by Add Device cannot have the HCI_AUTO_CONN_DISABLED auto_connect value, so we should treat this as an invalid entry to remove. This patch adds the necessary pieces to the Remove Device command handler so that it only removes entries which were added by Add Device. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed