Skip to content

Commit

Permalink
mac80211: optimize ieee80211_rx_status struct layout
Browse files Browse the repository at this point in the history
We waste a lot of space in this struct because it uses
int values where smaller ones would be sufficient. The
upcoming A-MPDU information needs some space, optimize
the struct now.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Jul 12, 2012
1 parent d48b296 commit 30f4229
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/net/mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -709,13 +709,13 @@ enum mac80211_rx_flags {
*/
struct ieee80211_rx_status {
u64 mactime;
enum ieee80211_band band;
int freq;
int signal;
int antenna;
int rate_idx;
int flag;
unsigned int rx_flags;
u16 flag;
u16 freq;
u8 rate_idx;
u8 rx_flags;
u8 band;
u8 antenna;
s8 signal;
};

/**
Expand Down

0 comments on commit 30f4229

Please sign in to comment.