X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Fratectrl.h;h=020d9df54d336648064bea1be3521503f20486e2;hb=cca769ebf9a967ac03211799610f1e1ba3ba9ba9;hp=c832dc12cec2129e9332d423d91320d592607ffe;hpb=eaacae6cedaf752150758b9baa0917e1deb1a99f;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/ratectrl.h b/target_firmware/wlan/ratectrl.h index c832dc1..020d9df 100755 --- a/target_firmware/wlan/ratectrl.h +++ b/target_firmware/wlan/ratectrl.h @@ -80,7 +80,6 @@ typedef u_int8_t WLAN_PHY; * a null arg because we know it's not needed. */ #define A_MS_TICKGET() OS_GETUPTIME(NULL) -#define A_MEM_ZERO(p,s) OS_MEMZERO(p,s) #define WLAN_PHY_OFDM IEEE80211_T_OFDM #define WLAN_PHY_TURBO IEEE80211_T_TURBO @@ -118,10 +117,8 @@ enum { #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 /* @@ -159,7 +156,6 @@ typedef struct phy_rate_ctrl { struct atheros_node { TX_RATE_CTRL txRateCtrl; /* rate control state proper */ A_UINT32 lastRateKbps; /* last rate in Kb/s */ - A_UINT32 htcap; /* ht capabilites */ A_UINT8 singleStream :1, /* When TRUE, only single stream Tx possible */ stbc :2; /* Rx stbc capability */ @@ -288,4 +284,17 @@ struct fusion_rate_info { 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_ */