Fix the kernel panic in hostap mode.
rvp->beacon_mbuf was NULL in run_update_beacon(). PR: 189405 Submitted by: Gabor Simon <gabor.simon75 at gmail.com> MFC after: 3 days
This commit is contained in:
parent
b43c178ac3
commit
0944c94606
@ -4913,6 +4913,12 @@ run_update_beacon(struct ieee80211vap *vap, int item)
|
||||
}
|
||||
|
||||
setbit(rvp->bo.bo_flags, item);
|
||||
if (rvp->beacon_mbuf == NULL) {
|
||||
rvp->beacon_mbuf = ieee80211_beacon_alloc(vap->iv_bss,
|
||||
&rvp->bo);
|
||||
if (rvp->beacon_mbuf == NULL)
|
||||
return;
|
||||
}
|
||||
ieee80211_beacon_update(vap->iv_bss, &rvp->bo, rvp->beacon_mbuf, mcast);
|
||||
|
||||
i = RUN_CMDQ_GET(&sc->cmdq_store);
|
||||
|
Loading…
Reference in New Issue
Block a user