From: Johan Hedberg Date: Fri, 23 Jan 2015 13:42:46 +0000 (+0200) Subject: Bluetooth: Convert Set SC to use HCI Request X-Git-Tag: fixes-v4.0-rc1~150^2~73^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1443f5a273713d4bfda360e45aa6e1d14fe7324;p=pandora-kernel.git Bluetooth: Convert Set SC to use HCI Request This patch converts the Set Secure Connection HCI handling to use a HCI request instead of using a hard-coded callback in hci_event.c. This e.g. ensures that we don't clear the flags incorrectly if something goes wrong with the power up process (not related to a mgmt Set SC command). The code can also be simplified a bit since only one pending Set SC command is allowed, i.e. mgmt_pending_foreach usage is not needed. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed