Skip to content

Commit

Permalink
ath9k: Fix chainmask handling bug
Browse files Browse the repository at this point in the history
The chainmasks have to be updated before setting the channel,
since the HW reset routine uses them to set the appropriate registers.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sujith authored and John W. Linville committed Jan 12, 2009
1 parent 20953ad commit 86060f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2164,13 +2164,13 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed)
conf->ht.channel_type);
}

ath_update_chainmask(sc, conf->ht.enabled);

if (ath_set_channel(sc, &sc->sc_ah->ah_channels[pos]) < 0) {
DPRINTF(sc, ATH_DBG_FATAL, "Unable to set channel\n");
mutex_unlock(&sc->mutex);
return -EINVAL;
}

ath_update_chainmask(sc, conf->ht.enabled);
}

if (changed & IEEE80211_CONF_CHANGE_POWER)
Expand Down

0 comments on commit 86060f0

Please sign in to comment.