]> git.baikalelectronics.ru Git - 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)
commit07044e9caed526137752b00c170be334b6ffb5a9
treed5cef754e0ba8a02f9ed6b0a8cf2b9c9d05ae920
parent5221138f962b4757f7fd58dffc50dec301b45e60
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