diff options
author | adrian <adrian@FreeBSD.org> | 2011-05-30 14:57:00 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-05-30 14:57:00 +0000 |
commit | 696ed40549067ce83a10a81ffbd8a81f74dba608 (patch) | |
tree | 2b7ad0aae06e02fdaa6bf9d9249a354917e171f8 /sys/dev | |
parent | 9d760b67a298e9283f8ec96eb11709ee22148c52 (diff) | |
download | FreeBSD-src-696ed40549067ce83a10a81ffbd8a81f74dba608.zip FreeBSD-src-696ed40549067ce83a10a81ffbd8a81f74dba608.tar.gz |
Set default A-MPDU density/size.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ath/if_ath.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 5527098..29e7186 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -984,6 +984,21 @@ ath_vap_create(struct ieee80211com *ic, avp->av_bmiss = vap->iv_bmiss; vap->iv_bmiss = ath_bmiss_vap; + /* Set default parameters */ + + /* + * Anything earlier than some AR9300 series MACs don't + * support a smaller MPDU density. + */ + vap->iv_ampdu_density = IEEE80211_HTCAP_MPDUDENSITY_8; + /* + * All NICs can handle the maximum size, however + * AR5416 based MACs can only TX aggregates w/ RTS + * protection when the total aggregate size is <= 8k. + * However, for now that's enforced by the TX path. + */ + vap->iv_ampdu_rxmax = IEEE80211_HTCAP_MAXRXAMPDU_64K; + avp->av_bslot = -1; if (needbeacon) { /* |