]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fix connect keys range check
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Sep 2016 13:51:03 +0000 (15:51 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Sep 2016 18:20:51 +0000 (20:20 +0200)
commitc87a7db3db6ec5b43c59140f454afeafdaa8f437
treed02c6a1474825a6d7bb0f035ae5b2cfffa393eb7
parent383c62ef10da16ffc097ecf8d8cb7257a7d009a0
nl80211: fix connect keys range check

Only key index 0-3 should be accepted, 4/5 are for IGTKs and
cannot be used as connect keys. Fix the range checking to not
allow such erroneous configurations.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c