]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
mac80211: move WEP weak IV check
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 28 May 2010 12:24:19 +0000 (14:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 3 Jun 2010 18:10:45 +0000 (14:10 -0400)
commit761ab470364b550c9b1a5e1e31be51d415aaf42b
treed5cef754e0ba8a02f9ed6b0a8cf2b9c9d05ae920
parent6a8579d0e62c0eac428184ce45e86bc46677724a
mac80211: move WEP weak IV check

I suspect the compiler will do this optimisation
anyway, but it seems cleaner to move this into
the WEP switch case.

Also make rx_h_decrypt use a local variable for
the frame_control so that we don't need to reload
the hdr variable for this after linearizing.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c