X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fbluetooth%2Fhci_bcsp.c;h=696f7528f022d44ef18bb0c84134a997288916a7;hb=4faa8496650f9417189dacce8f933e8ec61dc032;hp=5e2c31882003e785f630597d0ba8451d0e195e3a;hpb=1709775828de83b099554176b6d4971ebc772962;p=~andy%2Flinux diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c index 5e2c3188200..696f7528f02 100644 --- a/drivers/bluetooth/hci_bcsp.c +++ b/drivers/bluetooth/hci_bcsp.c @@ -26,7 +26,6 @@ #include #include -#include #include #include #include @@ -238,7 +237,8 @@ static struct sk_buff *bcsp_prepare_pkt(struct bcsp_struct *bcsp, u8 *data, if (hciextn && chan == 5) { struct hci_command_hdr *hdr = (struct hci_command_hdr *) data; - if (hci_opcode_ogf(__le16_to_cpu(hdr->opcode)) == OGF_VENDOR_CMD) { + /* Vendor specific commands */ + if (hci_opcode_ogf(__le16_to_cpu(hdr->opcode)) == 0x3f) { u8 desc = *(data + HCI_COMMAND_HDR_SIZE); if ((desc & 0xf0) == 0xc0) { data += HCI_COMMAND_HDR_SIZE + 1;