linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* WARNING from mac80211
@ 2011-05-04 19:55 Larry Finger
  2011-05-04 20:02 ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Finger @ 2011-05-04 19:55 UTC (permalink / raw)
  To: Johannes Berg, John Linville; +Cc: wireless

Johannes and John,

A regression in recent versions of mac80211 are generating the WARNING at 
net/mac80211/wep.c:101, because the skb headroom is less than WEP_IV_LEN or the 
tailroom is less than WEP_ICV_LEN. My testing indicates that it is a headroom 
problem as the following hack "fixes" it:

Index: wireless-testing-new/net/mac80211/tx.c
===================================================================
--- wireless-testing-new.orig/net/mac80211/tx.c
+++ wireless-testing-new/net/mac80211/tx.c
@@ -1935,6 +1935,8 @@ netdev_tx_t ieee80211_subif_start_xmit(s
                 head_need += IEEE80211_ENCRYPT_HEADROOM;
                 head_need += local->tx_headroom;
                 head_need = max_t(int, 0, head_need);
+               if (head_need < WEP_IV_LEN)
+                       head_need = WEP_IV_LEN;
                 if (ieee80211_skb_resize(local, skb, head_need, true))
                         goto fail;
         }

I'm certain that this is too simple minded, but it at least points to a place to 
look. I have not bisected the problem to see which commit caused the regression, 
but I can if you want.

Larry

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-05  4:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-04 19:55 WARNING from mac80211 Larry Finger
2011-05-04 20:02 ` Johannes Berg
2011-05-04 20:11   ` Larry Finger
2011-05-04 20:15     ` Johannes Berg
2011-05-05  4:47     ` Mohammed Shafi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).