diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-09 00:36:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-10-09 00:36:49 +0000 |
commit | cd771e9bc58be90b12bea9671a546720c754d549 (patch) | |
tree | 68bbed31cd772e05b99a1af59b5f7947cf9fa8be /package/mac80211/patches | |
parent | 1d05f23d7366b6893b62b22dc4a00c784e808c31 (diff) | |
download | mtk-20170518-cd771e9bc58be90b12bea9671a546720c754d549.zip mtk-20170518-cd771e9bc58be90b12bea9671a546720c754d549.tar.gz mtk-20170518-cd771e9bc58be90b12bea9671a546720c754d549.tar.bz2 |
ath9k: add a fix for an aggregation delimiter size rounding error
SVN-Revision: 23349
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r-- | package/mac80211/patches/510-ath9k_aggr_delim_fix.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/mac80211/patches/510-ath9k_aggr_delim_fix.patch b/package/mac80211/patches/510-ath9k_aggr_delim_fix.patch new file mode 100644 index 0000000..a34ff92 --- /dev/null +++ b/package/mac80211/patches/510-ath9k_aggr_delim_fix.patch @@ -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)) |