#define RX_FLIP_THRESHOLD 3 /* XXX */
-#ifdef MAGPIE_MERLIN
+#ifdef MAGPIE_MERLIN
#define MAX_TX_RATE_TBL 46
-#define MAX_TX_RATE_PHY 48
#else
#define MAX_TX_RATE_TBL 54//46
-#define MAX_TX_RATE_PHY 56//48
#endif
/*
typedef struct phy_rate_ctrl {
/* 11n state */
A_UINT8 validPhyRateCount[WLAN_RC_PHY_MAX]; /* valid rate count */
- A_UINT8 validPhyRateIndex[WLAN_RC_PHY_MAX][MAX_TX_RATE_TBL]; /* index */
+ A_UINT8 validPhyRateIndex[WLAN_RC_PHY_MAX][MAX_TX_RATE_TBL]; /* index */
}PHY_STATE_CTRL;
/* per-node state */
/*
* Determines and returns the new Tx rate index.
- */
+ */
A_UINT16 rcRateFind(struct ath_softc_tgt *, struct atheros_node *,
A_UINT32 frameLen,const RATE_TABLE *pRateTable);
void ar5416AttachRateTables(struct atheros_softc *sc);
+void ath_rate_node_update(struct ath_softc_tgt *sc,
+ struct ath_node_target *an,
+ a_int32_t isnew,
+ a_uint32_t capflag,
+ struct ieee80211_rate *rs);
+
+
+void ath_rate_newstate(struct ath_softc_tgt *sc,
+ struct ieee80211vap_target *vap,
+ enum ieee80211_state state,
+ a_uint32_t capflag,
+ struct ieee80211_rate *rs);
+
#endif /* _RATECTRL_H_ */