Bluetooth: Add mising hci_skb_opcode for raw socket commands
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Add mising hci_skb_opcode for raw socket commands
When HCI commands are injected via the raw socket, the core was not including the decoded opcode value. So ensure that it is actually set.
Signed-off-by Marcel Holtmann <[email protected]>
--- net/bluetooth/hci_sock.c | 2 ++ 1 file changed, 2 insertions(+)
net/bluetooth/hci_sock.c +2 -0
@@ -1262,6 +1262,8 @@ static int hci_sock_sendmsg(struct socket *sock, struct msghdr *msg, goto drop; } +hci_skb_opcode (skb) = opcode; +/* Include process credentials */ hci_sock_creds_to_skb (skb);
Signature · 1 line
2.5.0