mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
on resume ah_curchan may be NULL if no channel change has been done;
workaround this by passing net80211's channel as we know it'll never be null Submitted by: trasz
This commit is contained in:
parent
41576ce6db
commit
054d7b6979
1 changed files with 3 additions and 1 deletions
|
|
@ -1201,7 +1201,9 @@ ath_resume(struct ath_softc *sc)
|
|||
* Must reset the chip before we reload the
|
||||
* keycache as we were powered down on suspend.
|
||||
*/
|
||||
ath_hal_reset(ah, sc->sc_opmode, sc->sc_curchan, AH_FALSE, &status);
|
||||
ath_hal_reset(ah, sc->sc_opmode,
|
||||
sc->sc_curchan != NULL ? sc->sc_curchan : ic->ic_curchan,
|
||||
AH_FALSE, &status);
|
||||
ath_reset_keycache(sc);
|
||||
if (sc->sc_resume_up) {
|
||||
if (ic->ic_opmode == IEEE80211_M_STA) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue