mesh: Add guard against wedging outbound queue
authorBrian Gix <brian.gix@intel.com>
Wed, 29 Jul 2020 00:24:49 +0000 (17:24 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit141910cb039964129315314e2239cdd9c5f97415
treea7dfcfae6fad4610a0762fcb8581c2629f912b85
parent2a340d80f59e68632f68ada82cd628c6431845eb
mesh: Add guard against wedging outbound queue

When using HCI command chains, the first packet send that starts an
outbound sequence needs to still exist when command chain completes, or
the outbound queue will wedge.  The simplest solution is to send packets
at least twice on an empty queue, if there is a chance it could be canceled.

Change-Id: I883422c7143d71fe8309604dd487095de6703f9f
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/mesh-io-generic.c