]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: remove crypto special case for auth frames
authorJohannes Berg <johannes.berg@intel.com>
Mon, 14 Nov 2011 14:02:44 +0000 (15:02 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 17 Nov 2011 20:43:56 +0000 (15:43 -0500)
commit83b7a606df9a8f750fbb1cc2dd10323ceddbb723
treebccc6bb18bbb60dbfb5480717f8c603fce083d23
parentc6c29e88541bfbc77def80032213de17938ec07d
mac80211: remove crypto special case for auth frames

The shared key authentication frame that needs to be
encrypted (the third one in the shared key handshake)
is directly encrypted in ieee80211_send_auth and the
IEEE80211_TX_INTFL_DONT_ENCRYPT is set. All others
are not encrypted, so the only way to get to this is
erroneously on no-monitor AP side.

Remove the special case for authentication frames to
fix the AP shared key side when operating without
cooked monitor interfaces -- with cooked monitor the
IEEE80211_TX_INTFL_DONT_ENCRYPT also gets set, so we
never get here -- an AP never encrypts auth frames.

Without this patch, an AP operating in WEP mode with
my no-monitor patches would erroneously encrypt all
authentication frames, instead of none.

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