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:
parent
48d91a32fa
commit
8c1fe31ca0
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user