Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122304
b: refs/heads/master
c: 4df8ec6
h: refs/heads/master
v: v3
  • Loading branch information
Sujith authored and John W. Linville committed Nov 26, 2008
1 parent 656b833 commit ac56528
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b4d27357aebfdaa039f365fd24f2a795af5c0bb
refs/heads/master: 4df8ec64fdec5a99ebfe41467d414e235d5d051e
33 changes: 8 additions & 25 deletions trunk/drivers/net/wireless/ath9k/rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1732,29 +1732,6 @@ static void ath_rc_sib_update(struct ath_softc *sc,
ath_rc_priv->rate_max_phy = ath_rc_priv->valid_rate_index[k-4];
}

/*
* Update rate-control state on station associate/reassociate.
*/
static int ath_rate_newassoc(struct ath_softc *sc,
struct ath_rate_node *ath_rc_priv,
unsigned int capflag,
struct ath_rateset *negotiated_rates,
struct ath_rateset *negotiated_htrates)
{


ath_rc_priv->ht_cap =
((capflag & ATH_RC_DS_FLAG) ? WLAN_RC_DS_FLAG : 0) |
((capflag & ATH_RC_SGI_FLAG) ? WLAN_RC_SGI_FLAG : 0) |
((capflag & ATH_RC_HT_FLAG) ? WLAN_RC_HT_FLAG : 0) |
((capflag & ATH_RC_CW40_FLAG) ? WLAN_RC_40_FLAG : 0);

ath_rc_sib_update(sc, ath_rc_priv, ath_rc_priv->ht_cap, 0,
negotiated_rates, negotiated_htrates);

return 0;
}

void ath_rc_node_update(struct ieee80211_hw *hw, struct ath_rate_node *rc_priv)
{
struct ath_softc *sc = hw->priv;
Expand All @@ -1766,10 +1743,16 @@ void ath_rc_node_update(struct ieee80211_hw *hw, struct ath_rate_node *rc_priv)
capflag |= ATH_RC_CW40_FLAG;
}

ath_rate_newassoc(sc, rc_priv, capflag,
rc_priv->ht_cap =
((capflag & ATH_RC_DS_FLAG) ? WLAN_RC_DS_FLAG : 0) |
((capflag & ATH_RC_SGI_FLAG) ? WLAN_RC_SGI_FLAG : 0) |
((capflag & ATH_RC_HT_FLAG) ? WLAN_RC_HT_FLAG : 0) |
((capflag & ATH_RC_CW40_FLAG) ? WLAN_RC_40_FLAG : 0);


ath_rc_sib_update(sc, rc_priv, rc_priv->ht_cap, 0,
&rc_priv->neg_rates,
&rc_priv->neg_ht_rates);

}

/* Rate Control callbacks */
Expand Down

0 comments on commit ac56528

Please sign in to comment.