]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Don't request encryption for probe response
authorIvo van Doorn <ivdoorn@gmail.com>
Tue, 1 Jul 2008 08:45:13 +0000 (10:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Jul 2008 14:21:34 +0000 (10:21 -0400)
commite76164944171d8d28bd693c5728bde1f4fd61129
treee0adf0193c7c3cfd9b2165cbbd18ff14b352927f
parent4d2cc2220838c6e3e9c2623f9901eeed0d1445de
mac80211: Don't request encryption for probe response

Probe responses shouldn't be encrypted, and mac80211 doesn't
set the crypto key accordingly. However it didn't set the
IEEE80211_TX_CTL_DO_NOT_ENCRYPT flag which means drivers
could make an attempt to encrypt it, and causing a NULL
pointer dereference when accessing the provided hw_key field.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c