diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-07-05 13:14:18 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-12 12:10:45 +0200 |
commit | 30f422925c39edf61cbcf6d35140d726402d4b04 (patch) | |
tree | 748876a91a84689c4863cd2a0bbaddf760787cfe /include/net/mac80211.h | |
parent | d48b296850f25cb559cb9b907d6d8c09eca3e89d (diff) | |
download | linux-30f422925c39edf61cbcf6d35140d726402d4b04.tar.gz linux-30f422925c39edf61cbcf6d35140d726402d4b04.tar.bz2 linux-30f422925c39edf61cbcf6d35140d726402d4b04.zip |
mac80211: optimize ieee80211_rx_status struct layout
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>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index c5dbb46debb0..7300cb51dd5f 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -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; }; /** |