diff options
author | kevlo <kevlo@FreeBSD.org> | 2014-10-25 15:06:09 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2014-10-25 15:06:09 +0000 |
commit | 0817d1234eacdebe6d05df8f90526be6e22e4797 (patch) | |
tree | 6e34107de5d31428b208a1597b42b74c2e6d7473 | |
parent | 6e4e970c3aa841f3507f9fe65847ab0448814d68 (diff) | |
download | FreeBSD-src-0817d1234eacdebe6d05df8f90526be6e22e4797.zip FreeBSD-src-0817d1234eacdebe6d05df8f90526be6e22e4797.tar.gz |
MFC r273448:
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>
-rw-r--r-- | sys/dev/usb/wlan/if_run.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c index bd4e04c..a68f555 100644 --- a/sys/dev/usb/wlan/if_run.c +++ b/sys/dev/usb/wlan/if_run.c @@ -4911,6 +4911,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); |