Thread (24 messages) 24 messages, 2 authors, 2006-08-24
STALE7240d
Revisions (3)
  1. v1 current
  2. v1 [diff vs current]
  3. v1 [diff vs current]

[PATCH 17/21] d80211: remove useless and wrong check for interface type

From: Jiri Benc <hidden>
Date: 2006-08-23 19:24:26
Subsystem: networking [general], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

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 <redacted>

---

 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help