diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-11-05 07:10:00 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-11-19 17:50:27 +0100 |
commit | d79f34e32b833cb8651dfd4209d36cf99c89d1d3 (patch) | |
tree | 8a8159ac33f31f8c12e5890e10e255614b543be3 /net/bluetooth/hci_request.c | |
parent | f5c4a42a7549cbc29dbac2b5ede05a3bc2bb4522 (diff) | |
download | lwn-d79f34e32b833cb8651dfd4209d36cf99c89d1d3.tar.gz lwn-d79f34e32b833cb8651dfd4209d36cf99c89d1d3.zip |
Bluetooth: Use new hci_skb_pkt_* wrappers for core packet handling
The new hci_skb_pkt_* wrappers only help if they are used consistently
in the Bluetooth subsystem. So first convert the core packet handling.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r-- | net/bluetooth/hci_request.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index 981f8a202c27..bdb170995966 100644 --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c @@ -98,8 +98,8 @@ struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode, u32 plen, BT_DBG("skb len %d", skb->len); - bt_cb(skb)->pkt_type = HCI_COMMAND_PKT; - bt_cb(skb)->hci.opcode = opcode; + hci_skb_pkt_type(skb) = HCI_COMMAND_PKT; + hci_skb_opcode(skb) = opcode; return skb; } |