|
@@ -593,7 +593,8 @@ ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx)
|
|
|
struct ieee80211_hdr *hdr = (void *)tx->skb->data;
|
|
|
struct ieee80211_supported_band *sband;
|
|
|
struct ieee80211_rate *rate;
|
|
|
- int i, len;
|
|
|
+ int i;
|
|
|
+ u32 len;
|
|
|
bool inval = false, rts = false, short_preamble = false;
|
|
|
struct ieee80211_tx_rate_control txrc;
|
|
|
u32 sta_flags;
|
|
@@ -602,7 +603,7 @@ ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx)
|
|
|
|
|
|
sband = tx->local->hw.wiphy->bands[tx->channel->band];
|
|
|
|
|
|
- len = min_t(int, tx->skb->len + FCS_LEN,
|
|
|
+ len = min_t(u32, tx->skb->len + FCS_LEN,
|
|
|
tx->local->hw.wiphy->frag_threshold);
|
|
|
|
|
|
/* set up the tx rate control struct we give the RC algo */
|