Re: [PATCH 6/6] cfg80211: reduce connect key caching struct size

2016-09-28 Thread Johannes Berg
> >  struct cfg80211_cached_keys { > > - struct key_params params[6]; > > - u8 data[6][WLAN_MAX_KEY_LEN]; > > - int def, defmgmt; > > + struct key_params params[4]; > > + u8 data[4][WLAN_KEY_LEN_WEP104]; > > + int def; > >  }; > > As noted in our irc discussion, this is not really a

Re: [PATCH 6/6] cfg80211: reduce connect key caching struct size

2016-09-28 Thread Jouni Malinen
On Tue, Sep 13, 2016 at 04:44:28PM +0200, Johannes Berg wrote: > 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

[PATCH 6/6] cfg80211: reduce connect key caching struct size

2016-09-13 Thread Johannes Berg
From: Johannes Berg 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: