hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/net/wireless/ath/ath6kl/htc_mbox.c
....@@ -2260,19 +2260,16 @@
22602260 static struct htc_packet *htc_wait_for_ctrl_msg(struct htc_target *target)
22612261 {
22622262 struct htc_packet *packet = NULL;
2263
- struct htc_frame_hdr *htc_hdr;
2264
- u32 look_ahead;
2263
+ struct htc_frame_look_ahead look_ahead;
22652264
2266
- if (ath6kl_hif_poll_mboxmsg_rx(target->dev, &look_ahead,
2265
+ if (ath6kl_hif_poll_mboxmsg_rx(target->dev, &look_ahead.word,
22672266 HTC_TARGET_RESPONSE_TIMEOUT))
22682267 return NULL;
22692268
22702269 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);
22722271
2273
- htc_hdr = (struct htc_frame_hdr *)&look_ahead;
2274
-
2275
- if (htc_hdr->eid != ENDPOINT_0)
2272
+ if (look_ahead.eid != ENDPOINT_0)
22762273 return NULL;
22772274
22782275 packet = htc_get_control_buf(target, false);
....@@ -2281,8 +2278,8 @@
22812278 return NULL;
22822279
22832280 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;
22862283
22872284 if (packet->act_len > packet->buf_len)
22882285 goto fail_ctrl_rx;