net80211: fix panic for DWDS vaps
Since r248069, TX IC lock must obtained before calling ieee80211_encap() and/or ieee80211_parent_xmitpkt(). Tested with: Intel 3945BG.
This commit is contained in:
parent
e044a7dda4
commit
9143e02ee2
@ -288,9 +288,11 @@ ieee80211_dwds_mcast(struct ieee80211vap *vap0, struct mbuf *m)
|
||||
/*
|
||||
* Encapsulate the packet in prep for transmission.
|
||||
*/
|
||||
IEEE80211_TX_LOCK(ic);
|
||||
mcopy = ieee80211_encap(vap, ni, mcopy);
|
||||
if (mcopy == NULL) {
|
||||
/* NB: stat+msg handled in ieee80211_encap */
|
||||
IEEE80211_TX_UNLOCK(ic);
|
||||
ieee80211_free_node(ni);
|
||||
continue;
|
||||
}
|
||||
@ -298,6 +300,7 @@ ieee80211_dwds_mcast(struct ieee80211vap *vap0, struct mbuf *m)
|
||||
mcopy->m_pkthdr.rcvif = (void *) ni;
|
||||
|
||||
err = ieee80211_parent_xmitpkt(ic, mcopy);
|
||||
IEEE80211_TX_UNLOCK(ic);
|
||||
if (!err) {
|
||||
if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
|
||||
if_inc_counter(ifp, IFCOUNTER_OMCASTS, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user