Re: [PATCH 7/8] mac80211: FILS AEAD protection for station mode association frames

2016-10-26 Thread Malinen, Jouni
On Wed, Oct 26, 2016 at 07:49:59AM +0200, Johannes Berg wrote: > > +static u8 *fils_find_session(u8 *pos, u8 *end) > Hmm. I think we should try to write this in terms of cfg80211_find_ie, > or perhaps cfg80211_find_ie_match, maybe we need to extend those but > this won't be the only one using the

Re: [PATCH 7/8] mac80211: FILS AEAD protection for station mode association frames

2016-10-25 Thread Johannes Berg
> +static u8 *fils_find_session(u8 *pos, u8 *end) > +{ > + while (end - pos > 2 && end - pos >= 2 + pos[1]) { > + if (pos[0] == 255 && pos[1] == 1 + 8 && pos[2] == 4) > + return pos; > + pos += 2 + pos[1]; > + } > + > + return NULL; > +}

[PATCH 7/8] mac80211: FILS AEAD protection for station mode association frames

2016-10-25 Thread Jouni Malinen
This adds support for encrypting (Re)Association Request frame and decryption (Re)Association Response frame when using FILS in station mode. Signed-off-by: Jouni Malinen --- net/mac80211/Makefile | 1 + net/mac80211/aes_cmac.c| 8 +- net/mac80211/aes_cmac.h