ath9k_htc: Update to upstream's commit d19607454d656cb14d8c16dfbf161eebb542e8fe dated...
[linux-libre-firmware.git] / ath9k_htc / target_firmware / wlan / ratectrl.h
index 08b545795ba27e89b3637fa9355377ec73b81972..68c021fb5246a8a10452bf6597670aae13631457 100755 (executable)
@@ -115,7 +115,7 @@ enum {
 
 #define RX_FLIP_THRESHOLD       3       /* XXX */
 
-#ifdef MAGPIE_MERLIN  
+#ifdef MAGPIE_MERLIN
 #define MAX_TX_RATE_TBL         46
 #else
 #define MAX_TX_RATE_TBL         54//46
@@ -149,7 +149,7 @@ typedef struct TxRateCtrl_s {
 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 */
@@ -272,7 +272,7 @@ void rcSibInit(struct ath_softc_tgt *, struct ath_node_target *);
 
 /*
  * 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);
 
@@ -284,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_ */