From: Marcel Holtmann Date: Mon, 7 Oct 2013 09:31:39 +0000 (-0700) Subject: Bluetooth: Read supported features and commands on AMP controllers X-Git-Tag: next-20131017~61^2~148 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f6996cfe2f1db60a74765449f9b53c7591bcdc87;p=karo-tx-linux.git Bluetooth: Read supported features and commands on AMP controllers The commands for reading supported features and commands are both supported by AMP controllers. Issue them during controller init phase so their values are known. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 3572611c0297..99f83abbcaa6 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -307,6 +307,12 @@ static void amp_init(struct hci_request *req) /* Read Local Version */ hci_req_add(req, HCI_OP_READ_LOCAL_VERSION, 0, NULL); + /* Read Local Supported Commands */ + hci_req_add(req, HCI_OP_READ_LOCAL_COMMANDS, 0, NULL); + + /* Read Local Supported Features */ + hci_req_add(req, HCI_OP_READ_LOCAL_FEATURES, 0, NULL); + /* Read Local AMP Info */ hci_req_add(req, HCI_OP_READ_LOCAL_AMP_INFO, 0, NULL);