[PATCH -next] mac80211: Use #define IEEE80211_CCMP_PN_LEN and bool

2015-03-30 Thread Joe Perches
Use a #define constant instead of a hardcoded value and use bool for an int used as a bool to reduce structure size. Miscellanea: Neaten comments in structure definition. Add #include of ieee80211.h Signed-off-by: Joe Perches j...@perches.com --- net/mac80211/ieee80211_i.h | 7 ---

Re: [PATCH -next] mac80211: Use #define IEEE80211_CCMP_PN_LEN and bool

2015-03-30 Thread Johannes Berg
On Mon, 2015-03-30 at 09:37 -0700, Joe Perches wrote: @@ -89,11 +90,11 @@ struct ieee80211_fragment_entry { unsigned int last_frag; unsigned int extra_len; struct sk_buff_head skb_list; - int ccmp; /* Whether fragments were encrypted with CCMP */ - u8 last_pn[6];

Re: [PATCH -next] mac80211: Use #define IEEE80211_CCMP_PN_LEN and bool

2015-03-30 Thread Joe Perches
On Mon, 2015-03-30 at 22:01 +0200, Johannes Berg wrote: On Mon, 2015-03-30 at 09:37 -0700, Joe Perches wrote: @@ -89,11 +90,11 @@ struct ieee80211_fragment_entry { unsigned int last_frag; unsigned int extra_len; struct sk_buff_head skb_list; - int ccmp; /* Whether