Skip to content

Commit

Permalink
ath9k: Clear HT info on starting the driver
Browse files Browse the repository at this point in the history
Doing an interface down/up leaves the old HT assoc
information, clear it.

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 Nov 10, 2008
1 parent ccc75c5 commit 7f95903
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,8 @@ static int ath9k_start(struct ieee80211_hw *hw)
DPRINTF(sc, ATH_DBG_CONFIG, "%s: Starting driver with "
"initial channel: %d MHz\n", __func__, curchan->center_freq);

memset(&sc->sc_ht_info, 0, sizeof(struct ath_ht_info));

/* setup initial channel */

pos = ath_get_channel(sc, curchan);
Expand Down

0 comments on commit 7f95903

Please sign in to comment.