OSDN Git Service

csr_bcsp: fix link establishment
authorJohan Hovold <jhovold@gmail.com>
Fri, 27 Apr 2012 13:03:58 +0000 (15:03 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 10 May 2012 23:39:57 +0000 (16:39 -0700)
commit870fb2619d1ddecef84f374e37e94a76d24cf1d7
tree9c7e826fe2ba96f30f498eba10aacb23cca65776
parent2ea98a6a043710ad4958355b62c682b4767f292e
csr_bcsp: fix link establishment

The current link-establishment implementation times out if a packet is
not received after the link is active (i.e. reception of CONF_RESP).

Fix by making sure that the link establishment loop in open is
terminated when ubcsp sets the UBCSP_PACKET_SENT flag (on reception of
CONF_RESP) rather than UBCSP_PACKET_RECEIVED (on reception of any later
packages).
tools/csr_bcsp.c