Commit 5fe2bb86 authored by Joe Perches's avatar Joe Perches Committed by Johannes Berg

mac80211: align struct ps_data.tim to unsigned long

Its address is used as an unsigned long *, so make sure
that the tim u8 array is properly aligned.

Signed-off-by: Joe Perches <joe@perches.com
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 367bbd10
...@@ -246,7 +246,8 @@ struct ps_data { ...@@ -246,7 +246,8 @@ struct ps_data {
/* yes, this looks ugly, but guarantees that we can later use /* yes, this looks ugly, but guarantees that we can later use
* bitmap_empty :) * bitmap_empty :)
* NB: don't touch this bitmap, use sta_info_{set,clear}_tim_bit */ * NB: don't touch this bitmap, use sta_info_{set,clear}_tim_bit */
u8 tim[sizeof(unsigned long) * BITS_TO_LONGS(IEEE80211_MAX_AID + 1)]; u8 tim[sizeof(unsigned long) * BITS_TO_LONGS(IEEE80211_MAX_AID + 1)]
__aligned(__alignof__(unsigned long));
struct sk_buff_head bc_buf; struct sk_buff_head bc_buf;
atomic_t num_sta_ps; /* number of stations in PS mode */ atomic_t num_sta_ps; /* number of stations in PS mode */
int dtim_count; int dtim_count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment