Skip to content

Commit

Permalink
iwm: clean unused iwm_tx_cmd member.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed Mar 16, 2024
1 parent 766085e commit 1c8191a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions itlwm/hal_iwm/if_iwmvar.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,6 @@ struct iwm_tx_data {
int totlen;
uint16_t fc;

/* A-MPDU subframes */
int ampdu_txmcs;
int ampdu_nframes;
struct ieee80211_tx_info info;
};

Expand Down
3 changes: 0 additions & 3 deletions itlwm/hal_iwm/mac80211.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1403,11 +1403,9 @@ iwm_txd_done(struct iwm_softc *sc, struct iwm_tx_data *txd)
ieee80211_release_node(ic, &txd->in->in_ni);
txd->in = NULL;
txd->totlen = 0;
txd->ampdu_txmcs = 0;
txd->txmcs = 0;
txd->txrate = 0;
txd->fc = 0;
txd->ampdu_nframes = 0;
memset(&txd->info, 0, sizeof(struct ieee80211_tx_info));
}

Expand Down Expand Up @@ -1849,7 +1847,6 @@ iwm_tx(struct iwm_softc *sc, mbuf_t m, struct ieee80211_node *ni, int ac)
data->txmcs = ni->ni_txmcs;
data->txrate = ni->ni_txrate;
data->totlen = totlen;
data->ampdu_txmcs = ni->ni_txmcs;
memcpy(&data->fc, &wh->i_fc[0], sizeof(uint16_t));
data->info.band = IEEE80211_IS_CHAN_2GHZ(ni->ni_chan) ? NL80211_BAND_2GHZ : NL80211_BAND_5GHZ;

Expand Down

0 comments on commit 1c8191a

Please sign in to comment.