diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 8f28711cfd4e..306ea322c65d 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1040,11 +1040,11 @@ static int ath_max_framelen(int usec, int mcs, bool ht40, bool sgi) | |||
1040 | int symbols, bits; | 1040 | int symbols, bits; |
1041 | int bytes = 0; | 1041 | int bytes = 0; |
1042 | 1042 | ||
1043 | usec -= L_STF + L_LTF + L_SIG + HT_SIG + HT_STF + HT_LTF(streams); | ||
1043 | symbols = sgi ? TIME_SYMBOLS_HALFGI(usec) : TIME_SYMBOLS(usec); | 1044 | symbols = sgi ? TIME_SYMBOLS_HALFGI(usec) : TIME_SYMBOLS(usec); |
1044 | bits = symbols * bits_per_symbol[mcs % 8][ht40] * streams; | 1045 | bits = symbols * bits_per_symbol[mcs % 8][ht40] * streams; |
1045 | bits -= OFDM_PLCP_BITS; | 1046 | bits -= OFDM_PLCP_BITS; |
1046 | bytes = bits / 8; | 1047 | bytes = bits / 8; |
1047 | bytes -= L_STF + L_LTF + L_SIG + HT_SIG + HT_STF + HT_LTF(streams); | ||
1048 | if (bytes > 65532) | 1048 | if (bytes > 65532) |
1049 | bytes = 65532; | 1049 | bytes = 65532; |
1050 | 1050 | ||