Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
qcacmn: Add support to include tx retry count for mon interface
Browse files Browse the repository at this point in the history
Extend radiotap header to append tx retry count for packets sent to
virtual mon interface.

Change-Id: I27664e624babe1ef61dc437088fdd96b370b49f9
CRs-Fixed: 2546290
  • Loading branch information
Vulupala Shashank Reddy authored and Gerrit - the friendly Code Review server committed Oct 30, 2019
1 parent ee19cab commit d69f58a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions qdf/inc/qdf_nbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ struct mon_rx_status {
uint8_t beamformed;
uint8_t tx_status;
bool add_rtap_ext;
uint8_t tx_retry_cnt;
};

/* DHCP Related Mask */
Expand Down
4 changes: 4 additions & 0 deletions qdf/linux/src/qdf_nbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3418,6 +3418,7 @@ static unsigned int qdf_nbuf_update_radiotap_vht_flags(
#define NORMALIZED_TO_NOISE_FLOOR (-96)

#define IEEE80211_RADIOTAP_TX_STATUS 0
#define IEEE80211_RADIOTAP_RETRY_COUNT 1

/* This is Radio Tap Header Extension Length.
* 4 Bytes for Extended it_present bit map +
Expand Down Expand Up @@ -3534,9 +3535,12 @@ unsigned int qdf_nbuf_update_radiotap(struct mon_rx_status *rx_status,
rtap_ext = (uint32_t *)&rthdr->it_present;
rtap_ext++;
*rtap_ext = cpu_to_le32(1 << IEEE80211_RADIOTAP_TX_STATUS);
*rtap_ext |= cpu_to_le32(1 << IEEE80211_RADIOTAP_RETRY_COUNT);

rtap_buf[rtap_len] = rx_status->tx_status;
rtap_len += 1;
rtap_buf[rtap_len] = rx_status->tx_retry_cnt;
rtap_len += 1;
}

rthdr->it_len = cpu_to_le16(rtap_len);
Expand Down

0 comments on commit d69f58a

Please sign in to comment.