source: trunk/package/madwifi/patches/347-tuning.patch @ 13096

Last change on this file since 13096 was 13096, checked in by nbd, 8 years ago

madwifi: fix noderef and state machine issues in the currently unused ap-to-ap wds mode; refresh patches

File size: 3.1 KB
  • ath/if_ath.c

    a b ath_setcurmode(struct ath_softc *sc, enu 
    1027410274        sc->sc_currates = rt; 
    1027510275        sc->sc_curmode = mode; 
    1027610276        /* 
    10277          * All protection frames are transmitted at 2Mb/s for 
    10278          * 11g, otherwise at 1Mb/s. 
     10277         * All protection frames are transmitted at 11Mb/s for 
     10278         * 11g, otherwise at 2Mb/s. 
    1027910279         * XXX select protection rate index from rate table. 
    1028010280         */ 
    10281         sc->sc_protrix = (mode == IEEE80211_MODE_11G ? 1 : 0); 
     10281        sc->sc_protrix = (mode == IEEE80211_MODE_11G ? 3 : 1); 
    1028210282        /* rate index used to send mgt frames */ 
    1028310283        sc->sc_minrateix = 0; 
    1028410284} 
  • ath/if_athvar.h

    a b static inline struct net_device *_alloc_ 
    272272#define AES_ICV_FIELD_SIZE      8       /* AES ICV field size */ 
    273273#define EXT_IV_FIELD_SIZE       4       /* ext IV field size */ 
    274274 
     275/* This is what the HAL uses by default for 11a+g */ 
     276#define ATH_DEFAULT_CWMIN       15 
     277#define ATH_DEFAULT_CWMAX       1023 
     278 
    275279/* XR specific macros */ 
    276280 
    277281#define XR_DEFAULT_GRPPOLL_RATE_STR     "0.25 1 1 3 3 6 6 20" 
  • ath_rate/minstrel/minstrel.c

    a b calc_usecs_unicast_packet(struct ath_sof 
    197197                unsigned int x = 0, tt = 0; 
    198198                unsigned int cix = rt->info[rix].controlRate; 
    199199                int rts = 0, cts = 0; 
    200                 int cw = WIFI_CW_MIN; 
     200                int cw = ATH_DEFAULT_CWMIN; 
    201201 
    202202                KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); 
    203203 
    calc_usecs_unicast_packet(struct ath_sof 
    281281                tt += (long_retries + 1) * ath_hal_computetxtime(sc->sc_ah, rt, length, 
    282282                                                        rix, AH_TRUE); 
    283283                for (x = 0; x <= short_retries + long_retries; x++) { 
    284                         cw = MIN(WIFI_CW_MAX, (cw + 1) * 2); 
     284                        cw = MIN(ATH_DEFAULT_CWMAX, (cw + 1) * 2); 
    285285                        tt += (t_slot * cw / 2); 
    286286                } 
    287287                return tt; 
  • ath_rate/minstrel/minstrel.h

    a b struct minstrel_node { 
    180180#define MAX(a,b)        ((a) > (b) ? (a) : (b)) 
    181181#endif 
    182182 
    183 #if 0 
    184 #define WIFI_CW_MIN 31 
    185 #define WIFI_CW_MAX 1023 
    186 #else 
    187 #define WIFI_CW_MIN 3 
    188 #define WIFI_CW_MAX 10 
    189 #endif 
    190  
    191183/* 
    192184 * Definitions for pulling the rate and trie counts from 
    193185 * a 5212 h/w descriptor. These Don't belong here; the 
  • ath_rate/sample/sample.c

    a b calc_usecs_unicast_packet(struct ath_sof 
    170170        struct ieee80211com *ic = &sc->sc_ic; 
    171171        unsigned int tt = 0; 
    172172        unsigned int x; 
    173         unsigned int cw = WIFI_CW_MIN; 
     173        unsigned int cw = ATH_DEFAULT_CWMIN; 
    174174        unsigned int cix = rt->info[rix].controlRate; 
    175175        KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); 
    176176 
    calc_usecs_unicast_packet(struct ath_sof 
    254254        tt += (long_retries+1)*ath_hal_computetxtime(sc->sc_ah, rt, length, 
    255255                                                rix, AH_TRUE); 
    256256        for (x = 0; x <= short_retries + long_retries; x++) { 
    257                 cw = MIN(WIFI_CW_MAX, (cw + 1) * 2); 
     257                cw = MIN(ATH_DEFAULT_CWMAX, (cw + 1) * 2); 
    258258                tt += (t_slot * cw / 2); 
    259259        } 
    260260        return tt; 
  • ath_rate/sample/sample.h

    a b struct sample_node { 
    106106#define MAX(a,b)        ((a) > (b) ? (a) : (b)) 
    107107#endif 
    108108 
    109 #define WIFI_CW_MIN 31 
    110 #define WIFI_CW_MAX 1023 
    111  
    112109/* 
    113110 * Definitions for pulling the rate and trie counts from 
    114111 * a 5212 h/w descriptor. These Don't belong here; the 
Note: See TracBrowser for help on using the repository browser.