]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mac80211: consolidate decryption
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 26 Sep 2007 13:19:40 +0000 (15:19 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:53:13 +0000 (16:53 -0700)
commit6b257c8a8628e069657726a005b150b37b88187b
treeb9ef529b35cec6a81b8b7868c80088a30aa6bc9d
parent73a71f2dc3bf1b0a9bd9083d90d173d9cee1034c
[PATCH] mac80211: consolidate decryption

Currently, we run through all three crypto algorithms for each
received frame even though we have previously determined which
key we have and as such already know which algorithm will be
used. Change it to invoke only the needed function. Also move
the WEP decrypt handler to wep.c so that fewer functions need
to be non-static.

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