|
@@ -73,14 +73,13 @@
|
|
|
static inline
|
|
|
void htt_rx_frag_set_last_msdu(struct htt_pdev_t *pdev, qdf_nbuf_t msg)
|
|
|
{
|
|
|
- return;
|
|
|
}
|
|
|
#else
|
|
|
|
|
|
static void htt_rx_frag_set_last_msdu(struct htt_pdev_t *pdev, qdf_nbuf_t msg)
|
|
|
{
|
|
|
uint32_t *msg_word;
|
|
|
- unsigned num_msdu_bytes;
|
|
|
+ unsigned int num_msdu_bytes;
|
|
|
qdf_nbuf_t msdu;
|
|
|
struct htt_host_rx_desc_base *rx_desc;
|
|
|
int start_idx;
|
|
@@ -210,6 +209,7 @@ static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
|
|
|
case HTT_T2H_MSG_TYPE_RX_OFFLOAD_DELIVER_IND:
|
|
|
{
|
|
|
int msdu_cnt;
|
|
|
+
|
|
|
msdu_cnt =
|
|
|
HTT_RX_OFFLOAD_DELIVER_IND_MSDU_CNT_GET(*msg_word);
|
|
|
ol_rx_offload_deliver_ind_handler(pdev->txrx_pdev,
|
|
@@ -221,9 +221,8 @@ static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
|
|
|
* htt_t2h_msg
|
|
|
*/
|
|
|
return;
|
|
|
- } else {
|
|
|
- break;
|
|
|
}
|
|
|
+ break;
|
|
|
}
|
|
|
case HTT_T2H_MSG_TYPE_RX_FRAG_IND:
|
|
|
{
|
|
@@ -248,9 +247,9 @@ static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
|
|
|
__func__,
|
|
|
rx_pkt_len);
|
|
|
/*
|
|
|
- * This buf will be freed before
|
|
|
- * exiting this function.
|
|
|
- */
|
|
|
+ * This buf will be freed before
|
|
|
+ * exiting this function.
|
|
|
+ */
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -325,8 +324,8 @@ static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
|
|
|
case HTT_T2H_MSG_TYPE_PEER_UNMAP:
|
|
|
{
|
|
|
uint16_t peer_id;
|
|
|
- peer_id = HTT_RX_PEER_UNMAP_PEER_ID_GET(*msg_word);
|
|
|
|
|
|
+ peer_id = HTT_RX_PEER_UNMAP_PEER_ID_GET(*msg_word);
|
|
|
ol_rx_peer_unmap_handler(pdev->txrx_pdev, peer_id);
|
|
|
break;
|
|
|
}
|
|
@@ -548,10 +547,11 @@ static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
|
|
|
qdf_nbuf_free(htt_t2h_msg);
|
|
|
}
|
|
|
|
|
|
-/* Generic Target to host Msg/event handler for low priority messages
|
|
|
- Low priority message are handler in a different handler called from
|
|
|
- this function . So that the most likely succes path like Rx and
|
|
|
- Tx comp has little code foot print
|
|
|
+/**
|
|
|
+ * Generic Target to host Msg/event handler for low priority messages
|
|
|
+ * Low priority message are handler in a different handler called from
|
|
|
+ * this function . So that the most likely succes path like Rx and
|
|
|
+ * Tx comp has little code foot print
|
|
|
*/
|
|
|
void htt_t2h_msg_handler(void *context, HTC_PACKET *pkt)
|
|
|
{
|
|
@@ -590,8 +590,8 @@ void htt_t2h_msg_handler(void *context, HTC_PACKET *pkt)
|
|
|
switch (msg_type) {
|
|
|
case HTT_T2H_MSG_TYPE_RX_IND:
|
|
|
{
|
|
|
- unsigned num_mpdu_ranges;
|
|
|
- unsigned num_msdu_bytes;
|
|
|
+ unsigned int num_mpdu_ranges;
|
|
|
+ unsigned int num_msdu_bytes;
|
|
|
uint16_t peer_id;
|
|
|
uint8_t tid;
|
|
|
|
|
@@ -802,7 +802,7 @@ void htt_t2h_msg_handler(void *context, HTC_PACKET *pkt)
|
|
|
qdf_mem_dma_sync_single_for_device(dev, \
|
|
|
(QDF_NBUF_CB_PADDR(_buf)), \
|
|
|
(skb_end_pointer(_buf) - \
|
|
|
- (_buf)->data) , \
|
|
|
+ (_buf)->data), \
|
|
|
PCI_DMA_FROMDEVICE); \
|
|
|
} while (0)
|
|
|
|
|
@@ -1058,7 +1058,8 @@ int htt_rx_ind_flush(htt_pdev_handle pdev, qdf_nbuf_t rx_ind_msg)
|
|
|
void
|
|
|
htt_rx_ind_flush_seq_num_range(htt_pdev_handle pdev,
|
|
|
qdf_nbuf_t rx_ind_msg,
|
|
|
- unsigned *seq_num_start, unsigned *seq_num_end)
|
|
|
+ unsigned int *seq_num_start,
|
|
|
+ unsigned int *seq_num_end)
|
|
|
{
|
|
|
uint32_t *msg_word;
|
|
|
|
|
@@ -1079,7 +1080,8 @@ int htt_rx_ind_release(htt_pdev_handle pdev, qdf_nbuf_t rx_ind_msg)
|
|
|
void
|
|
|
htt_rx_ind_release_seq_num_range(htt_pdev_handle pdev,
|
|
|
qdf_nbuf_t rx_ind_msg,
|
|
|
- unsigned *seq_num_start, unsigned *seq_num_end)
|
|
|
+ unsigned int *seq_num_start,
|
|
|
+ unsigned int *seq_num_end)
|
|
|
{
|
|
|
uint32_t *msg_word;
|
|
|
|
|
@@ -1280,7 +1282,8 @@ htt_rx_ind_tsf32(htt_pdev_handle pdev, qdf_nbuf_t rx_ind_msg)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * htt_rx_ind_ext_tid() - Return the extended traffic ID provided in a rx indication message.
|
|
|
+ * htt_rx_ind_ext_tid() - Return the extended traffic ID provided in a rx
|
|
|
+ * indication message.
|
|
|
* @pdev: the HTT instance the rx data was received on
|
|
|
* @rx_ind_msg: the netbuf containing the rx indication message
|
|
|
*
|