WARNING from mac80211
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:
net/mac80211/tx.c +2 -0
@@ -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
Johannes Berg
maintainerQuoted 6 lines · Larry Finger
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 thanWEP_IV_LENor the tailroom is less thanWEP_ICV_LEN. My testing indicates that it is a headroom problem as the following hack "fixes" it:
See also this thread:
http://thread.gmane.org/gmane.linux.kernel.wireless.general/69062/focus=69150
and the resulting patch:
http://article.gmane.org/gmane.linux.kernel.wireless.general/69190
(not sure why it was RFC?)
johannes
Quoted 8 lines · Johannes Berg
Quoted 6 lines · Larry Finger
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 thanWEP_IV_LENor the tailroom is less thanWEP_ICV_LEN. My testing indicates that it is a headroom problem as the following hack "fixes" it:
Quoted 6 lines
See also this thread:
http://thread.gmane.org/gmane.linux.kernel.wireless.general/69062/focus=69150and the resulting patch:
http://article.gmane.org/gmane.linux.kernel.wireless.general/69190
(not sure why it was RFC?)
Thanks. I do remember the thread now that you refreshed my memory. That patch does fix my problem.
Larry
Johannes Berg
maintainerQuoted 9 lines · Larry Finger
Quoted 6 lines
See also this thread:
http://thread.gmane.org/gmane.linux.kernel.wireless.general/69062/focus=69150and the resulting patch:
http://article.gmane.org/gmane.linux.kernel.wireless.general/69190
(not sure why it was RFC?)Thanks. I do remember the thread now that you refreshed my memory. That patch does fix my problem.
Good to know. John should probably merge that patch even though it was RFC.
johannes
Quoted 13 lines · Larry Finger
Quoted 12 lines · Johannes Berg
Quoted 9 lines · Larry Finger
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 thanWEP_IV_LENor the
tailroom is less thanWEP_ICV_LEN. My testing indicates that it is a headroom
problem as the following hack "fixes" it:
Quoted 7 lines
Quoted 7 lines
See also this thread:
http://thread.gmane.org/gmane.linux.kernel.wireless.general/69062/focus=69150
and the resulting patch:
http://article.gmane.org/gmane.linux.kernel.wireless.general/69190
(not sure why it was RFC?)
I will send the patch today :)
thanks,
shafi
Quoted 10 lines
Thanks. I do remember the thread now that you refreshed my memory. That patch does fix my problem.
Larry
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html