cfg80211: reduce connect key caching struct size
After the previous patches, connect keys can only (correctly) be used for storing static WEP keys. Therefore, remove all the data for dealing with key index 4/5 and reduce the size of the key material to the maximum for WEP keys. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -854,7 +854,6 @@ nl80211_parse_connkeys(struct cfg80211_registered_device *rdev,
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
result->def = -1;
|
||||
result->defmgmt = -1;
|
||||
|
||||
nla_for_each_nested(key, keys, rem) {
|
||||
memset(&parse, 0, sizeof(parse));
|
||||
|
Reference in New Issue
Block a user