| .. | .. |
|---|
| 2260 | 2260 | static struct htc_packet *htc_wait_for_ctrl_msg(struct htc_target *target) |
|---|
| 2261 | 2261 | { |
|---|
| 2262 | 2262 | struct htc_packet *packet = NULL; |
|---|
| 2263 | | - struct htc_frame_hdr *htc_hdr; |
|---|
| 2264 | | - u32 look_ahead; |
|---|
| 2263 | + struct htc_frame_look_ahead look_ahead; |
|---|
| 2265 | 2264 | |
|---|
| 2266 | | - if (ath6kl_hif_poll_mboxmsg_rx(target->dev, &look_ahead, |
|---|
| 2265 | + if (ath6kl_hif_poll_mboxmsg_rx(target->dev, &look_ahead.word, |
|---|
| 2267 | 2266 | HTC_TARGET_RESPONSE_TIMEOUT)) |
|---|
| 2268 | 2267 | return NULL; |
|---|
| 2269 | 2268 | |
|---|
| 2270 | 2269 | ath6kl_dbg(ATH6KL_DBG_HTC, |
|---|
| 2271 | | - "htc rx wait ctrl look_ahead 0x%X\n", look_ahead); |
|---|
| 2270 | + "htc rx wait ctrl look_ahead 0x%X\n", look_ahead.word); |
|---|
| 2272 | 2271 | |
|---|
| 2273 | | - htc_hdr = (struct htc_frame_hdr *)&look_ahead; |
|---|
| 2274 | | - |
|---|
| 2275 | | - if (htc_hdr->eid != ENDPOINT_0) |
|---|
| 2272 | + if (look_ahead.eid != ENDPOINT_0) |
|---|
| 2276 | 2273 | return NULL; |
|---|
| 2277 | 2274 | |
|---|
| 2278 | 2275 | packet = htc_get_control_buf(target, false); |
|---|
| .. | .. |
|---|
| 2281 | 2278 | return NULL; |
|---|
| 2282 | 2279 | |
|---|
| 2283 | 2280 | packet->info.rx.rx_flags = 0; |
|---|
| 2284 | | - packet->info.rx.exp_hdr = look_ahead; |
|---|
| 2285 | | - packet->act_len = le16_to_cpu(htc_hdr->payld_len) + HTC_HDR_LENGTH; |
|---|
| 2281 | + packet->info.rx.exp_hdr = look_ahead.word; |
|---|
| 2282 | + packet->act_len = le16_to_cpu(look_ahead.payld_len) + HTC_HDR_LENGTH; |
|---|
| 2286 | 2283 | |
|---|
| 2287 | 2284 | if (packet->act_len > packet->buf_len) |
|---|
| 2288 | 2285 | goto fail_ctrl_rx; |
|---|