Skip to contentSkip to conversation

mac80211: remove message on receiving unexpected unencrypted frames

PATCH New Johannes Berg 1 participant 1 message Apr 13, 2008 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: remove message on receiving unexpected unencrypted frames

Some people are getting this message a lot, and we have traced it to broken access points that much too often send completely empty frames (all bytes zeroed, which they shouldn't do at all.)

Since we cannot do anything about such frames in any case except the special case where we're debugging an AP, just remove the message.

---
2.6.25 or -stable candidate.

 net/mac80211/rx.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
net/mac80211/rx.c +2 -5
@@ -1078,12 +1078,9 @@ ieee80211_drop_unencrypted(struct ieee80
 	if (unlikely(!(rx->fc & IEEE80211_FCTL_PROTECTED) &&
 		     (rx->fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA &&
 		     (rx->fc & IEEE80211_FCTL_STYPE) != IEEE80211_STYPE_NULLFUNC &&
-		     (rx->key || rx->sdata->drop_unencrypted))) {
-		if (net_ratelimit())
-			printk(KERN_DEBUG "%s: RX non-WEP frame, but expected "
-			       "encryption\n", rx->dev->name);
+		     (rx->key || rx->sdata->drop_unencrypted)))
 		return -EACCES;
-	}
+
 	return 0;
 }