[PATCH] ieee80211: Move IV/ICV stripping into ieee80211_rx
authorDaniel Drake <dsd@gentoo.org>
Wed, 27 Sep 2006 02:50:31 +0000 (03:50 +0100)
committerJeff Garzik <jeff@garzik.org>
Sat, 2 Dec 2006 05:11:56 +0000 (00:11 -0500)
commitc9308b06c049a107edfbd4e5271771564eb6024d
treea065438a0f279a96988c3730a4d644ce2b94061d
parentf2423723d70298e04179f934ff17346c3e06f408
[PATCH] ieee80211: Move IV/ICV stripping into ieee80211_rx

This patch adds a host_strip_iv_icv flag to ieee80211 which indicates that
ieee80211_rx should strip the IV/ICV/other security features from the payload.
This saves on some memmove() calls in the driver and seems like something that
belongs in the stack as it can be used by bcm43xx, ipw2200, and zd1211rw

I will submit the ipw2200 patch separately as it needs testing.

This patch also adds some sensible variable reuse (idx vs keyidx) in
ieee80211_rx

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/bcm43xx/bcm43xx_wx.c
drivers/net/wireless/bcm43xx/bcm43xx_xmit.c
include/net/ieee80211.h
net/ieee80211/ieee80211_rx.c