madwifi: fix crash on 2.6.30

SVN-Revision: 16889
This commit is contained in:
Felix Fietkau
2009-07-18 01:04:40 +00:00
parent ecad504c39
commit bde1cf619a
2 changed files with 16 additions and 2 deletions

View File

@@ -44,7 +44,7 @@
if (dir != IEEE80211_FC1_DIR_NODS) {
IEEE80211_DISCARD(vap, IEEE80211_MSG_ANY,
wh, "data", "invalid dir 0x%x", dir);
@@ -3548,6 +3553,11 @@ ieee80211_recv_mgmt(struct ieee80211vap
@@ -3552,6 +3557,11 @@ ieee80211_recv_mgmt(struct ieee80211vap
} else if (vap->iv_opmode == IEEE80211_M_WDS) {
found = 1;
ni = ni_or_null = vap->iv_wdsnode;
@@ -56,7 +56,7 @@
}
IEEE80211_UNLOCK_IRQ(vap->iv_ic);
@@ -3672,19 +3682,8 @@ ieee80211_recv_mgmt(struct ieee80211vap
@@ -3676,19 +3686,8 @@ ieee80211_recv_mgmt(struct ieee80211vap
vap->iv_stats.is_rx_ssidmismatch++; /*XXX*/
return;
}