zephyr/subsys
Johan Hedberg 6c995a5053 Bluetooth: Fix missing connection cleanup in some scenarios
If the TX thread is not in k_poll() when conn->state gets set to
DISCONNECTED and a dummy buffer is pushed to conn->tx_queue the
bt_conn_prepare_events() function would have failed to add the
connection to the poll list for cleanup. To ensure the cleanup always
happens introduce a new flag that indicates that a cleanup must
happen. The extra benefit of the flag is that we no-longer need a
dummy buffer, but can simply use the conn_change signal to wake up the
TX thread.

Change-Id: I369584d305261ab3666b931c786daff9d131d228
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2017-02-10 10:09:10 +02:00
..
bluetooth Bluetooth: Fix missing connection cleanup in some scenarios 2017-02-10 10:09:10 +02:00
debug license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
disk license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
fs fat: match type info expected by fat library for f_write 2017-01-30 12:01:50 +00:00
logging license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
net net/dhcpv4: Correct backoff and retransmit behaviour 2017-02-09 14:27:11 +00:00
shell shell: If enabled, let's register telnet console as an input 2017-01-27 12:35:53 +02:00
usb license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Kconfig license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Makefile subsys: disk: Refactor disk_access stuff into a directory 2017-01-08 20:58:05 +00:00