Change Details
atusb/fw/mac.c |
135 | 135 | |
136 | 136 | static void do_tx(void *user) |
137 | 137 | { |
| 138 | uint16_t timeout = 0xffff; |
138 | 139 | uint8_t status; |
139 | 140 | uint8_t i; |
140 | 141 | |
141 | | do status = reg_read(REG_TRX_STATUS) & TRX_STATUS_MASK; |
| 142 | /* |
| 143 | * If we time out here, the host driver will time out waiting for the |
| 144 | * TRX_END acknowledgement. |
| 145 | */ |
| 146 | do { |
| 147 | if (!--timeout) |
| 148 | return; |
| 149 | status = reg_read(REG_TRX_STATUS) & TRX_STATUS_MASK; |
| 150 | } |
142 | 151 | while (status != TRX_STATUS_RX_ON && status != TRX_STATUS_RX_AACK_ON); |
143 | 152 | |
144 | 153 | /* |
Download the corresponding diff file