diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-04-27 15:03:58 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-05-10 16:39:57 -0700 |
commit | 870fb2619d1ddecef84f374e37e94a76d24cf1d7 (patch) | |
tree | 9c7e826fe2ba96f30f498eba10aacb23cca65776 /tools | |
parent | 2ea98a6a043710ad4958355b62c682b4767f292e (diff) |
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).
Diffstat (limited to 'tools')
-rw-r--r-- | tools/csr_bcsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/csr_bcsp.c b/tools/csr_bcsp.c index 7bfaf5a9..f7afe537 100644 --- a/tools/csr_bcsp.c +++ b/tools/csr_bcsp.c @@ -118,7 +118,7 @@ int csr_open_bcsp(char *device, speed_t bcsp_rate) while (1) { delay = ubcsp_poll(&activity); - if (activity & UBCSP_PACKET_RECEIVED) + if (activity & UBCSP_PACKET_SENT) break; if (delay) { |