diff options
author | Ville Tervo <ville.tervo@nokia.com> | 2011-02-16 09:32:41 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-16 14:33:26 -0500 |
commit | 6bd32326cdaa9b14794416150c88e4832fb7e592 (patch) | |
tree | 4c48387761df0207bb50952dda7fd5c980893351 /include/net/bluetooth/hci_core.h | |
parent | 7f4b2b04c88377af30c022f36c060190182850fb (diff) |
Bluetooth: Use proper timer for hci command timout
Use proper timer instead of hci command flow control to timeout
failed hci commands. Otherwise stack ends up sending commands
when flow control is used to block new commands.
2010-09-01 18:29:41.592132 < HCI Command: Remote Name Request (0x01|0x0019) plen 10
bdaddr 00:16:CF:E1:C7:D7 mode 2 clkoffset 0x0000
2010-09-01 18:29:41.592681 > HCI Event: Command Status (0x0f) plen 4
Remote Name Request (0x01|0x0019) status 0x00 ncmd 0
2010-09-01 18:29:51.022033 < HCI Command: Remote Name Request Cancel (0x01|0x001a) plen 6
bdaddr 00:16:CF:E1:C7:D7
Signed-off-by: Ville Tervo <ville.tervo@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index d30b93c82fd4..ecd2acf24420 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -132,7 +132,6 @@ struct hci_dev { | |||
132 | unsigned int sco_pkts; | 132 | unsigned int sco_pkts; |
133 | unsigned int le_pkts; | 133 | unsigned int le_pkts; |
134 | 134 | ||
135 | unsigned long cmd_last_tx; | ||
136 | unsigned long acl_last_tx; | 135 | unsigned long acl_last_tx; |
137 | unsigned long sco_last_tx; | 136 | unsigned long sco_last_tx; |
138 | unsigned long le_last_tx; | 137 | unsigned long le_last_tx; |
@@ -143,6 +142,7 @@ struct hci_dev { | |||
143 | struct work_struct power_off; | 142 | struct work_struct power_off; |
144 | struct timer_list off_timer; | 143 | struct timer_list off_timer; |
145 | 144 | ||
145 | struct timer_list cmd_timer; | ||
146 | struct tasklet_struct cmd_task; | 146 | struct tasklet_struct cmd_task; |
147 | struct tasklet_struct rx_task; | 147 | struct tasklet_struct rx_task; |
148 | struct tasklet_struct tx_task; | 148 | struct tasklet_struct tx_task; |