summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/wlan
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2014-10-22 03:32:27 +0000
committerkevlo <kevlo@FreeBSD.org>2014-10-22 03:32:27 +0000
commit0944c94606d6d05249fac6fbe8c1922d9edf6526 (patch)
tree369c4015a536703aedbdcc2766546099776c258d /sys/dev/usb/wlan
parentb43c178ac3e928474185e306b4ff7772ec72ecbe (diff)
downloadFreeBSD-src-0944c94606d6d05249fac6fbe8c1922d9edf6526.zip
FreeBSD-src-0944c94606d6d05249fac6fbe8c1922d9edf6526.tar.gz
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
Diffstat (limited to 'sys/dev/usb/wlan')
-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 1451225..d27f33a 100644
--- a/sys/dev/usb/wlan/if_run.c
+++ b/sys/dev/usb/wlan/if_run.c
@@ -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);
OpenPOWER on IntegriCloud