#define HCI_DISCONN_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */
#define HCI_PAIRING_TIMEOUT msecs_to_jiffies(60000) /* 60 seconds */
#define HCI_INIT_TIMEOUT msecs_to_jiffies(10000) /* 10 seconds */
+#ifdef TIZEN_BT
+#define HCI_CMD_TIMEOUT msecs_to_jiffies(5000) /* 5 seconds */
+#else
#define HCI_CMD_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */
+#endif
#define HCI_NCMD_TIMEOUT msecs_to_jiffies(4000) /* 4 seconds */
#define HCI_ACL_TX_TIMEOUT msecs_to_jiffies(45000) /* 45 seconds */
#define HCI_AUTO_OFF_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */
int mgmt_le_conn_update_failed(struct hci_dev *hdev, bdaddr_t *bdaddr,
u8 link_type, u8 addr_type, u8 status);
void mgmt_hardware_error(struct hci_dev *hdev, u8 err_code);
+void mgmt_tx_timeout_error(struct hci_dev *hdev);
#endif
int hci_abort_conn(struct hci_conn *conn, u8 reason);
} __packed;
/* handling of hardware error event */
+/* For HCI TX Timeout Error */
+#define MGMT_EV_TX_TIMEOUT_ERROR (TIZEN_EV_BASE + 0x03)
+/* HCI TX Timeout Error */
+
/* For handling of RSSI Events */
#define MGMT_EV_RSSI_ALERT (TIZEN_EV_BASE + 0x04)
struct mgmt_ev_vendor_specific_rssi_alert {
hdev->le_discovery.state = state;
}
+
+static void hci_tx_timeout_error_evt(struct hci_dev *hdev)
+{
+ BT_ERR("%s H/W TX Timeout error", hdev->name);
+
+ mgmt_tx_timeout_error(hdev);
+}
#endif
void hci_inquiry_cache_flush(struct hci_dev *hdev)
if (hdev->cmd_timeout)
hdev->cmd_timeout(hdev);
+#ifdef TIZEN_BT
+ hci_tx_timeout_error_evt(hdev);
+#endif
+
atomic_set(&hdev->cmd_cnt, 1);
queue_work(hdev->workqueue, &hdev->cmd_work);
}
ev.error_code = err_code;
mgmt_event(MGMT_EV_HARDWARE_ERROR, hdev, &ev, sizeof(ev), NULL);
}
+
+void mgmt_tx_timeout_error(struct hci_dev *hdev)
+{
+ mgmt_event(MGMT_EV_TX_TIMEOUT_ERROR, hdev, NULL, 0, NULL);
+}
#endif /* TIZEN_BT */
static bool ltk_is_valid(struct mgmt_ltk_info *key)