diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-11-25 09:43:05 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-11-25 14:09:56 -0500 |
commit | 808bbebcc8fcbcb2b93aefd8b181a0fdccb407c6 (patch) | |
tree | 76730d24264fbea860643fe4c8706b0d45bf2418 /drivers/net/wireless/mwifiex/uap_txrx.c | |
parent | 381e9fffe6b8343c2479939178ef7ded50bf32d3 (diff) |
mwifiex: add Tx status support for EAPOL packets
Firmware notifies the driver through event if EAPOL data packet
has been acked or not. We will inform this status to userspace
listening on a socket.
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/uap_txrx.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/uap_txrx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/uap_txrx.c b/drivers/net/wireless/mwifiex/uap_txrx.c index ec7309d096ab..4580942f6e80 100644 --- a/drivers/net/wireless/mwifiex/uap_txrx.c +++ b/drivers/net/wireless/mwifiex/uap_txrx.c | |||
@@ -370,10 +370,15 @@ void *mwifiex_process_uap_txpd(struct mwifiex_private *priv, | |||
370 | txpd->bss_num = priv->bss_num; | 370 | txpd->bss_num = priv->bss_num; |
371 | txpd->bss_type = priv->bss_type; | 371 | txpd->bss_type = priv->bss_type; |
372 | txpd->tx_pkt_length = cpu_to_le16((u16)(skb->len - len)); | 372 | txpd->tx_pkt_length = cpu_to_le16((u16)(skb->len - len)); |
373 | |||
374 | txpd->priority = (u8)skb->priority; | 373 | txpd->priority = (u8)skb->priority; |
374 | |||
375 | txpd->pkt_delay_2ms = mwifiex_wmm_compute_drv_pkt_delay(priv, skb); | 375 | txpd->pkt_delay_2ms = mwifiex_wmm_compute_drv_pkt_delay(priv, skb); |
376 | 376 | ||
377 | if (tx_info->flags & MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS) { | ||
378 | txpd->tx_token_id = tx_info->ack_frame_id; | ||
379 | txpd->flags |= MWIFIEX_TXPD_FLAGS_REQ_TX_STATUS; | ||
380 | } | ||
381 | |||
377 | if (txpd->priority < ARRAY_SIZE(priv->wmm.user_pri_pkt_tx_ctrl)) | 382 | if (txpd->priority < ARRAY_SIZE(priv->wmm.user_pri_pkt_tx_ctrl)) |
378 | /* | 383 | /* |
379 | * Set the priority specific tx_control field, setting of 0 will | 384 | * Set the priority specific tx_control field, setting of 0 will |