diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2011-02-16 10:43:20 +0100 |
---|---|---|
committer | Henrik Öhman <henrik.ohman@stericsson.com> | 2011-03-15 14:23:13 +0100 |
commit | 58921a2040d45ebb21aec653ca9867ba79c88e88 (patch) | |
tree | a039f63c61283c33320a2538a2fbf13df6c98ae5 /include | |
parent | 0754bb60108af169297c0b31444d473cdb162402 (diff) |
Bluetooth: Add counter for not acked HCI commands
Adds counter for HCI commands which were sent but are not yet acked.
This is to prevent race conditions in scenarios where HCI commands
are sent between complete event and command status event, i.e.
last sent HCI command is not accounted in credits number returned
by command status event.
ST-Ericsson Linux next: not tested, ER?
ST-Ericsson ID: 323271
ST-Ericsson FOSS-OUT-ID: Trivial
Change-Id: I74d1f31ab79ee07406858451c94273301eee6e64
Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16344
Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com>
Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
Reviewed-by: Henrik POSSUNG <henrik.possung@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 96e7d466b9e..d3da8048652 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -95,6 +95,7 @@ struct hci_dev { unsigned long quirks; atomic_t cmd_cnt; + atomic_t cmd_not_ack; unsigned int acl_cnt; unsigned int sco_cnt; |