@@ -600,6 +600,7 @@ struct rtw_tx_pkt_info {
u8 hw_ssn_sel;
bool en_hw_exseq;
bool bt_null;
+ bool no_retry;
};
struct rtw_rx_pkt_stat {
@@ -64,6 +64,11 @@ void rtw_tx_fill_tx_desc(struct rtw_tx_pkt_info *pkt_info, struct sk_buff *skb)
SET_TX_DESC_EN_HWEXSEQ(txdesc, pkt_info->en_hw_exseq);
SET_TX_DESC_HW_SSN_SEL(txdesc, pkt_info->hw_ssn_sel);
SET_TX_DESC_BT_NULL(txdesc, pkt_info->bt_null);
+
+ if (pkt_info->no_retry) {
+ SET_TX_DESC_RETRY_LIMIT_ENABLE(txdesc, 1);
+ SET_TX_DESC_DATA_RETRY_LIMIT(txdesc, 0);
+ }
}
EXPORT_SYMBOL(rtw_tx_fill_tx_desc);
@@ -374,6 +379,11 @@ void rtw_tx_pkt_info_update(struct rtw_dev *rtwdev,
bmc = is_broadcast_ether_addr(hdr->addr1) ||
is_multicast_ether_addr(hdr->addr1);
+ if (info->flags & IEEE80211_TX_INTFL_MLME_CONN_TX) {
+ info->flags &= ~IEEE80211_TX_CTL_REQ_TX_STATUS; // no report
+ pkt_info->no_retry = true; // don't re-tx
+ }
+
if (info->flags & IEEE80211_TX_CTL_REQ_TX_STATUS)
rtw_tx_report_enable(rtwdev, pkt_info);
@@ -65,6 +65,11 @@
le32p_replace_bits((__le32 *)(txdesc) + 0x03, value, GENMASK(7, 6))
#define SET_TX_DESC_BT_NULL(txdesc, value) \
le32p_replace_bits((__le32 *)(txdesc) + 0x02, value, BIT(23))
+#define SET_TX_DESC_RETRY_LIMIT_ENABLE(txdesc, value) \
+ le32p_replace_bits((__le32 *)(txdesc) + 0x04, value, BIT(17))
+#define SET_TX_DESC_DATA_RETRY_LIMIT(txdesc, value) \
+ le32p_replace_bits((__le32 *)(txdesc) + 0x04, value, GENMASK(23, 18))
+
enum rtw_tx_desc_queue_select {
TX_DESC_QSEL_TID0 = 0,