mirror of
https://github.com/proski/madwifi
synced 2024-11-25 07:49:43 +03:00
if iwpriv turbo is set before first beacon update it will segfault because the update for dturbo comes
before the allocation and initial configuration. Since there shouldn't be any dturbo switches at this point, some null checks prevent the problem. I'm not sure where the code should be moved to, but probably further down in the function. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3498 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
43de3ce1a0
commit
a388f3a80c
@ -4787,7 +4787,7 @@ ath_beacon_generate(struct ath_softc *sc, struct ieee80211vap *vap, int *needmar
|
||||
* capability info and arrange for a mode change
|
||||
* if needed.
|
||||
*/
|
||||
if (sc->sc_dturbo) {
|
||||
if (sc && avp && sc->sc_dturbo && NULL != avp->av_boff.bo_tim) {
|
||||
u_int8_t dtim;
|
||||
dtim = ((avp->av_boff.bo_tim[2] == 1) ||
|
||||
(avp->av_boff.bo_tim[3] == 1));
|
||||
|
Loading…
Reference in New Issue
Block a user