madwifi: put an upper limit on the amount of sampling that minstrel should do when
[openwrt/svn-archive/archive.git] / package / madwifi / patches / 347-tuning.patch
1 Index: madwifi-trunk-r3314/ath/if_ath.c
2 ===================================================================
3 --- madwifi-trunk-r3314.orig/ath/if_ath.c 2008-04-21 05:41:13.000000000 +0200
4 +++ madwifi-trunk-r3314/ath/if_ath.c 2008-04-21 05:41:50.000000000 +0200
5 @@ -10267,11 +10267,11 @@
6 sc->sc_currates = rt;
7 sc->sc_curmode = mode;
8 /*
9 - * All protection frames are transmitted at 2Mb/s for
10 - * 11g, otherwise at 1Mb/s.
11 + * All protection frames are transmitted at 11Mb/s for
12 + * 11g, otherwise at 2Mb/s.
13 * XXX select protection rate index from rate table.
14 */
15 - sc->sc_protrix = (mode == IEEE80211_MODE_11G ? 1 : 0);
16 + sc->sc_protrix = (mode == IEEE80211_MODE_11G ? 3 : 1);
17 /* rate index used to send mgt frames */
18 sc->sc_minrateix = 0;
19 }
20 Index: madwifi-trunk-r3314/ath/if_athvar.h
21 ===================================================================
22 --- madwifi-trunk-r3314.orig/ath/if_athvar.h 2008-04-21 05:41:13.000000000 +0200
23 +++ madwifi-trunk-r3314/ath/if_athvar.h 2008-04-21 05:41:50.000000000 +0200
24 @@ -223,8 +223,8 @@
25 #define ATH_MAX_MTU 2290
26 #define ATH_MIN_MTU 32
27
28 -#define ATH_RXBUF 40 /* number of RX buffers */
29 -#define ATH_TXBUF 200 /* number of TX buffers */
30 +#define ATH_RXBUF 80 /* number of RX buffers */
31 +#define ATH_TXBUF 400 /* number of TX buffers */
32
33 #define ATH_MAXVAPS_MIN 2 /* minimum number of beacon buffers */
34 #define ATH_MAXVAPS_MAX 64 /* maximum number of beacon buffers */
35 @@ -235,7 +235,7 @@
36 /* number of TX buffers reserved for mgt frames */
37 #define ATH_TXBUF_MGT_RESERVED 5
38
39 -#define TAIL_DROP_COUNT 50 /* maximum number of queued frames allowed */
40 +#define TAIL_DROP_COUNT 80 /* maximum number of queued frames allowed */
41
42 /*
43 * dynamic turbo specific macros.