|
@@ -2925,6 +2925,13 @@ static void hci_cmd_status_evt(struct hci_dev *hdev, struct sk_buff *skb)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+static void hci_hardware_error_evt(struct hci_dev *hdev, struct sk_buff *skb)
|
|
|
+{
|
|
|
+ struct hci_ev_hardware_error *ev = (void *) skb->data;
|
|
|
+
|
|
|
+ BT_ERR("%s hardware error 0x%2.2x", hdev->name, ev->code);
|
|
|
+}
|
|
|
+
|
|
|
static void hci_role_change_evt(struct hci_dev *hdev, struct sk_buff *skb)
|
|
|
{
|
|
|
struct hci_ev_role_change *ev = (void *) skb->data;
|
|
@@ -4746,6 +4753,10 @@ void hci_event_packet(struct hci_dev *hdev, struct sk_buff *skb)
|
|
|
hci_cmd_status_evt(hdev, skb);
|
|
|
break;
|
|
|
|
|
|
+ case HCI_EV_HARDWARE_ERROR:
|
|
|
+ hci_hardware_error_evt(hdev, skb);
|
|
|
+ break;
|
|
|
+
|
|
|
case HCI_EV_ROLE_CHANGE:
|
|
|
hci_role_change_evt(hdev, skb);
|
|
|
break;
|