cfg80211: wext: only allow WEP keys to be configured before connected
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Sep 2016 14:11:32 +0000 (16:11 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Sep 2016 18:20:52 +0000 (20:20 +0200)
commit9381e267b69acfea96c8429dc99da3e78835cef1
treead1fc4dc1f1b284a760d906316e718f8ac7f54b9
parent386b1f273850380a1887044673922843736c6d0a
cfg80211: wext: only allow WEP keys to be configured before connected

When not connected, anything but WEP keys shouldn't be allowed to be
configured for later - only static WEP keys make sense at this point.
Change wext to reject anything else just like nl80211 does.

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