FreeBSD Bugzilla – Attachment 144753 Details for
Bug 189405
[run] [wlan] hostapd, kernel panic, wlan using run device, run0: RT3071, RF RT3022
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch to prevent kernel panic in hostap mode.
bug189405_proposed.patch (text/plain), 982 bytes, created by
Gabor Simon
on 2014-07-17 13:09:59 UTC
(
hide
)
Description:
Proposed patch to prevent kernel panic in hostap mode.
Filename:
MIME Type:
Creator:
Gabor Simon
Created:
2014-07-17 13:09:59 UTC
Size:
982 bytes
patch
obsolete
>Index: sys/dev/usb/wlan/if_run.c >=================================================================== >--- sys/dev/usb/wlan/if_run.c (revision 268563) >+++ sys/dev/usb/wlan/if_run.c (working copy) >@@ -3948,9 +3948,19 @@ > static void > run_update_beacon(struct ieee80211vap *vap, int item) > { >+ if (vap == NULL) >+ return; > struct ieee80211com *ic = vap->iv_ic; >+ if (ic == NULL) >+ return; >+ if (ic->ic_ifp == NULL) >+ return; > struct run_softc *sc = ic->ic_ifp->if_softc; >+ if (sc == NULL) >+ return; > struct run_vap *rvp = RUN_VAP(vap); >+ if (rvp == NULL) >+ return; > int mcast = 0; > uint32_t i; > >@@ -3971,6 +3981,12 @@ > } > > 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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 189405
: 144753