]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Validate cipher suite against supported ciphers
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 21 Sep 2011 15:14:56 +0000 (18:14 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Sep 2011 18:29:54 +0000 (14:29 -0400)
commit991ed6efb4dd9336fa998d8711d190fd806d22ad
tree5c2539d3c2cf8e2d0728917ecc4227efcb5774b9
parent88faee3da4bad942539caabd48807e5d5940bc2b
cfg80211: Validate cipher suite against supported ciphers

Instead of using a hardcoded list of cipher suites in nl80211.c, use a
shared function in util.c to verify that the driver advertises support
for the specified cipher. This provides more accurate validation of the
values and allows vendor-specific cipher suites to be added in drivers.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/core.h
net/wireless/nl80211.c
net/wireless/util.c