diff options
| -rw-r--r-- | include/net/bluetooth/bluetooth.h | 1 | ||||
| -rw-r--r-- | net/bluetooth/hci_core.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 373000de610d..7e666d06b97f 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h | |||
| @@ -284,6 +284,7 @@ struct hci_req_ctrl { | |||
| 284 | struct bt_skb_cb { | 284 | struct bt_skb_cb { |
| 285 | __u8 pkt_type; | 285 | __u8 pkt_type; |
| 286 | __u8 incoming; | 286 | __u8 incoming; |
| 287 | __u16 opcode; | ||
| 287 | __u16 expect; | 288 | __u16 expect; |
| 288 | __u8 force_active; | 289 | __u8 force_active; |
| 289 | struct l2cap_chan *chan; | 290 | struct l2cap_chan *chan; |
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 067526d9680d..41948678f514 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
| @@ -4547,6 +4547,7 @@ static struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode, | |||
| 4547 | BT_DBG("skb len %d", skb->len); | 4547 | BT_DBG("skb len %d", skb->len); |
| 4548 | 4548 | ||
| 4549 | bt_cb(skb)->pkt_type = HCI_COMMAND_PKT; | 4549 | bt_cb(skb)->pkt_type = HCI_COMMAND_PKT; |
| 4550 | bt_cb(skb)->opcode = opcode; | ||
| 4550 | 4551 | ||
| 4551 | return skb; | 4552 | return skb; |
| 4552 | } | 4553 | } |
