The check for interface type in ieee80211_sta_rx_mgmt was wrong (it must
allow IBSS interface as well) and unnecessary, because the check is already
done in ieee80211_rx_h_mgmt.

Signed-off-by: Jiri Benc <[EMAIL PROTECTED]>

---

 net/d80211/ieee80211_sta.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

d0c2e2f74781b478f708d58aa83cb83812705af1
diff --git a/net/d80211/ieee80211_sta.c b/net/d80211/ieee80211_sta.c
index 12d6c99..a3bcc1b 100644
--- a/net/d80211/ieee80211_sta.c
+++ b/net/d80211/ieee80211_sta.c
@@ -1711,11 +1711,6 @@ void ieee80211_sta_rx_mgmt(struct net_de
                goto fail;
 
        sdata = IEEE80211_DEV_TO_SUB_IF(dev);
-       if (sdata->type != IEEE80211_IF_TYPE_STA) {
-               printk(KERN_DEBUG "%s: ieee80211_sta_rx_mgmt: non-STA "
-                      "interface (type=%d)\n", dev->name, sdata->type);
-               goto fail;
-       }
        ifsta = &sdata->u.sta;
 
        mgmt = (struct ieee80211_mgmt *) skb->data;
-- 
1.3.0

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to