ath9k: add a fix for an aggregation delimiter size rounding error
SVN-Revision: 23349
This commit is contained in:
parent
1d05f23d73
commit
cd771e9bc5
1 changed files with 13 additions and 0 deletions
13
package/mac80211/patches/510-ath9k_aggr_delim_fix.patch
Normal file
13
package/mac80211/patches/510-ath9k_aggr_delim_fix.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
|
||||
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
|
||||
@@ -177,8 +177,8 @@ void ath_descdma_cleanup(struct ath_soft
|
||||
|
||||
/* returns delimiter padding required given the packet length */
|
||||
#define ATH_AGGR_GET_NDELIM(_len) \
|
||||
- (((((_len) + ATH_AGGR_DELIM_SZ) < ATH_AGGR_MINPLEN) ? \
|
||||
- (ATH_AGGR_MINPLEN - (_len) - ATH_AGGR_DELIM_SZ) : 0) >> 2)
|
||||
+ (((_len) >= ATH_AGGR_MINPLEN) ? 0 : \
|
||||
+ DIV_ROUND_UP(ATH_AGGR_MINPLEN - (_len), ATH_AGGR_DELIM_SZ))
|
||||
|
||||
#define BAW_WITHIN(_start, _bawsz, _seqno) \
|
||||
((((_seqno) - (_start)) & 4095) < (_bawsz))
|
Loading…
Reference in a new issue