mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-26 22:34:16 +02:00
80a1b7ac3c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23349 3c298f89-4303-0410-b956-a3cf2f4a3e73
14 lines
591 B
Diff
14 lines
591 B
Diff
--- 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))
|