projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24dfa34
)
Bluetooth: Use HCI_EV_HARDWARE_ERROR define for event payload
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 2 Nov 2014 02:02:01 +0000
(
03:02
+0100)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Sun, 2 Nov 2014 08:00:53 +0000
(10:00 +0200)
When constructing the event payload for the HCI_Hardware_Error event
message, use the HCI_EV_HARDWARE_ERROR define.
In addition rename the variables from hard_err to hw_err to clearly
indicate that this is about the hardware error and not a hard error.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/hci_h5.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/hci_h5.c
b/drivers/bluetooth/hci_h5.c
index 20bdd71559b16569d8bed368e1eb7842a841705a..bd1fe37a7993a6befe7ade883b39bb5e861e63b7 100644
(file)
--- a/
drivers/bluetooth/hci_h5.c
+++ b/
drivers/bluetooth/hci_h5.c
@@
-172,7
+172,7
@@
static void h5_peer_reset(struct hci_uart *hu)
{
struct h5 *h5 = hu->priv;
struct sk_buff *skb;
- const u
nsigned char hard_err[] = { 0x10
, 0x01, 0x00 };
+ const u
8 hw_err[] = { HCI_EV_HARDWARE_ERROR
, 0x01, 0x00 };
BT_ERR("Peer device has reset");
@@
-192,7
+192,7
@@
static void h5_peer_reset(struct hci_uart *hu)
return;
bt_cb(skb)->pkt_type = HCI_EVENT_PKT;
- memcpy(skb_put(skb, 3), h
ard
_err, 3);
+ memcpy(skb_put(skb, 3), h
w
_err, 3);
/* Send Hardware Error to upper stack */
hci_recv_frame(hu->hdev, skb);