diff options
author | Matt Smith <mgsmith@netgate.com> | 2015-11-18 10:33:08 -0600 |
---|---|---|
committer | Matt Smith <mgsmith@netgate.com> | 2015-11-18 10:33:08 -0600 |
commit | 8aa932909d60eadad51eeab403c8993d8fb888d1 (patch) | |
tree | 053cb094f125aec47b5ded3c7371552d4368d153 | |
parent | a5d857c46178a8f007d57d8c9464f87be6cff363 (diff) | |
download | FreeBSD-src-8aa932909d60eadad51eeab403c8993d8fb888d1.zip FreeBSD-src-8aa932909d60eadad51eeab403c8993d8fb888d1.tar.gz |
Importing pfSense patch if_run-fix-hostap-crash.diff
-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); |