De-dup the ar5416 rates array definition.
This commit is contained in:
parent
669d9046a9
commit
a03467b1ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220539
@ -37,6 +37,19 @@ typedef struct {
|
||||
uint16_t ext_center;
|
||||
} CHAN_CENTERS;
|
||||
|
||||
typedef enum Ar5416_Rates {
|
||||
rate6mb, rate9mb, rate12mb, rate18mb,
|
||||
rate24mb, rate36mb, rate48mb, rate54mb,
|
||||
rate1l, rate2l, rate2s, rate5_5l,
|
||||
rate5_5s, rate11l, rate11s, rateXr,
|
||||
rateHt20_0, rateHt20_1, rateHt20_2, rateHt20_3,
|
||||
rateHt20_4, rateHt20_5, rateHt20_6, rateHt20_7,
|
||||
rateHt40_0, rateHt40_1, rateHt40_2, rateHt40_3,
|
||||
rateHt40_4, rateHt40_5, rateHt40_6, rateHt40_7,
|
||||
rateDupCck, rateDupOfdm, rateExtCck, rateExtOfdm,
|
||||
Ar5416RateSize
|
||||
} AR5416_RATES;
|
||||
|
||||
#define AR5416_DEFAULT_RXCHAINMASK 7
|
||||
#define AR5416_DEFAULT_TXCHAINMASK 1
|
||||
#define AR5416_MAX_RATE_POWER 63
|
||||
|
@ -794,20 +794,6 @@ ar5416GetChipPowerLimits(struct ath_hal *ah,
|
||||
return AH_TRUE;
|
||||
}
|
||||
|
||||
/* XXX gag, this is sick */
|
||||
typedef enum Ar5416_Rates {
|
||||
rate6mb, rate9mb, rate12mb, rate18mb,
|
||||
rate24mb, rate36mb, rate48mb, rate54mb,
|
||||
rate1l, rate2l, rate2s, rate5_5l,
|
||||
rate5_5s, rate11l, rate11s, rateXr,
|
||||
rateHt20_0, rateHt20_1, rateHt20_2, rateHt20_3,
|
||||
rateHt20_4, rateHt20_5, rateHt20_6, rateHt20_7,
|
||||
rateHt40_0, rateHt40_1, rateHt40_2, rateHt40_3,
|
||||
rateHt40_4, rateHt40_5, rateHt40_6, rateHt40_7,
|
||||
rateDupCck, rateDupOfdm, rateExtCck, rateExtOfdm,
|
||||
Ar5416RateSize
|
||||
} AR5416_RATES;
|
||||
|
||||
/**************************************************************
|
||||
* ar5416SetTransmitPower
|
||||
*
|
||||
|
@ -67,20 +67,6 @@ static void ar9285GetGainBoundariesAndPdadcs(struct ath_hal *ah,
|
||||
uint16_t numXpdGains);
|
||||
static uint16_t ar9285GetMaxEdgePower(uint16_t, CAL_CTL_EDGES *);
|
||||
|
||||
/* XXX gag, this is sick */
|
||||
typedef enum Ar5416_Rates {
|
||||
rate6mb, rate9mb, rate12mb, rate18mb,
|
||||
rate24mb, rate36mb, rate48mb, rate54mb,
|
||||
rate1l, rate2l, rate2s, rate5_5l,
|
||||
rate5_5s, rate11l, rate11s, rateXr,
|
||||
rateHt20_0, rateHt20_1, rateHt20_2, rateHt20_3,
|
||||
rateHt20_4, rateHt20_5, rateHt20_6, rateHt20_7,
|
||||
rateHt40_0, rateHt40_1, rateHt40_2, rateHt40_3,
|
||||
rateHt40_4, rateHt40_5, rateHt40_6, rateHt40_7,
|
||||
rateDupCck, rateDupOfdm, rateExtCck, rateExtOfdm,
|
||||
Ar5416RateSize
|
||||
} AR5416_RATES;
|
||||
|
||||
HAL_BOOL
|
||||
ar9285SetTransmitPower(struct ath_hal *ah,
|
||||
const struct ieee80211_channel *chan, uint16_t *rfXpdGain)
|
||||
|
Loading…
Reference in New Issue
Block a user