cfg80211: disallow shared key authentication with key index 4
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Sep 2016 14:25:58 +0000 (16:25 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Sep 2016 18:20:51 +0000 (20:20 +0200)
commitb6b5555bc89f52e49244104ca4d7764c7b0f11cd
tree9d1f60df03f7ab85f2885af62ac63a22942c3437
parent4854f175c3182816d906c4bc34be5f30556346a5
cfg80211: disallow shared key authentication with key index 4

Key index 4 can only be used for an IGTK, so the range checks
for shared key authentication should treat 4 as an error, fix
that in the code.

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