summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Smith <mgsmith@netgate.com>2015-11-18 10:33:08 -0600
committerMatt Smith <mgsmith@netgate.com>2015-11-18 10:33:08 -0600
commit8aa932909d60eadad51eeab403c8993d8fb888d1 (patch)
tree053cb094f125aec47b5ded3c7371552d4368d153
parenta5d857c46178a8f007d57d8c9464f87be6cff363 (diff)
downloadFreeBSD-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.c6
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);
OpenPOWER on IntegriCloud