Use the passed-in channel rather than ic->ic_curchan.

I'm not sure _why_ the ic is NULL here, but I've seen it occasionally do
this after I've been tinkering with things for a while.  It ends up
crashing in a call to ath_chan_set() via the net80211 scan code and scan
task.
This commit is contained in:
Adrian Chadd 2012-02-23 08:32:54 +00:00
parent 8e10fb3d0b
commit 398bca2e5e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232041

View File

@ -5432,7 +5432,7 @@ ath_chan_set(struct ath_softc *sc, struct ieee80211_channel *chan)
sc->sc_diversity = ath_hal_getdiversity(ah);
/* Let DFS at it in case it's a DFS channel */
ath_dfs_radar_enable(sc, ic->ic_curchan);
ath_dfs_radar_enable(sc, chan);
/*
* Re-enable rx framework.