aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-11-17 22:34:21 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-11-26 09:47:24 -0500
commit4df8ec64fdec5a99ebfe41467d414e235d5d051e (patch)
treeed5005f07e2560b3903be15994c43ee312f10500 /drivers/net/wireless
parent7b4d27357aebfdaa039f365fd24f2a795af5c0bb (diff)
ath9k: Remove ath_rate_newassoc()
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath9k/rc.c33
1 files changed, 8 insertions, 25 deletions
diff --git a/drivers/net/wireless/ath9k/rc.c b/drivers/net/wireless/ath9k/rc.c
index 798dff6f6015..1ec5861d34da 100644
--- a/drivers/net/wireless/ath9k/rc.c
+++ b/drivers/net/wireless/ath9k/rc.c
@@ -1732,29 +1732,6 @@ static void ath_rc_sib_update(struct ath_softc *sc,
1732 ath_rc_priv->rate_max_phy = ath_rc_priv->valid_rate_index[k-4]; 1732 ath_rc_priv->rate_max_phy = ath_rc_priv->valid_rate_index[k-4];
1733} 1733}
1734 1734
1735/*
1736 * Update rate-control state on station associate/reassociate.
1737 */
1738static int ath_rate_newassoc(struct ath_softc *sc,
1739 struct ath_rate_node *ath_rc_priv,
1740 unsigned int capflag,
1741 struct ath_rateset *negotiated_rates,
1742 struct ath_rateset *negotiated_htrates)
1743{
1744
1745
1746 ath_rc_priv->ht_cap =
1747 ((capflag & ATH_RC_DS_FLAG) ? WLAN_RC_DS_FLAG : 0) |
1748 ((capflag & ATH_RC_SGI_FLAG) ? WLAN_RC_SGI_FLAG : 0) |
1749 ((capflag & ATH_RC_HT_FLAG) ? WLAN_RC_HT_FLAG : 0) |
1750 ((capflag & ATH_RC_CW40_FLAG) ? WLAN_RC_40_FLAG : 0);
1751
1752 ath_rc_sib_update(sc, ath_rc_priv, ath_rc_priv->ht_cap, 0,
1753 negotiated_rates, negotiated_htrates);
1754
1755 return 0;
1756}
1757
1758void ath_rc_node_update(struct ieee80211_hw *hw, struct ath_rate_node *rc_priv) 1735void ath_rc_node_update(struct ieee80211_hw *hw, struct ath_rate_node *rc_priv)
1759{ 1736{
1760 struct ath_softc *sc = hw->priv; 1737 struct ath_softc *sc = hw->priv;
@@ -1766,10 +1743,16 @@ void ath_rc_node_update(struct ieee80211_hw *hw, struct ath_rate_node *rc_priv)
1766 capflag |= ATH_RC_CW40_FLAG; 1743 capflag |= ATH_RC_CW40_FLAG;
1767 } 1744 }
1768 1745
1769 ath_rate_newassoc(sc, rc_priv, capflag, 1746 rc_priv->ht_cap =
1747 ((capflag & ATH_RC_DS_FLAG) ? WLAN_RC_DS_FLAG : 0) |
1748 ((capflag & ATH_RC_SGI_FLAG) ? WLAN_RC_SGI_FLAG : 0) |
1749 ((capflag & ATH_RC_HT_FLAG) ? WLAN_RC_HT_FLAG : 0) |
1750 ((capflag & ATH_RC_CW40_FLAG) ? WLAN_RC_40_FLAG : 0);
1751
1752
1753 ath_rc_sib_update(sc, rc_priv, rc_priv->ht_cap, 0,
1770 &rc_priv->neg_rates, 1754 &rc_priv->neg_rates,
1771 &rc_priv->neg_ht_rates); 1755 &rc_priv->neg_ht_rates);
1772
1773} 1756}
1774 1757
1775/* Rate Control callbacks */ 1758/* Rate Control callbacks */