mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
LinuxKPI: 802.11: make struct ieee80211_tx_info a bit more packed
Given I was looking at the struct make it more packed at the beginning at least. In fact it did not shrink but the tx_time_est got expanded. Sponsored by: The FreeBSD Foundation (cherry picked from commit 470aaf42c3c0661821a8744ae7c29b096adb4aa3)
This commit is contained in:
parent
6b244c7666
commit
75418cb419
3 changed files with 6 additions and 6 deletions
|
|
@ -413,7 +413,7 @@ enum ieee80211_tx_info_flags {
|
|||
IEEE80211_TX_CTL_RATE_CTRL_PROBE = BIT(18),
|
||||
IEEE80211_TX_CTL_LDPC = BIT(19),
|
||||
IEEE80211_TX_CTL_STBC = BIT(20),
|
||||
};
|
||||
} __packed;
|
||||
|
||||
enum ieee80211_tx_status_flags {
|
||||
IEEE80211_TX_STATUS_ACK_SIGNAL_VALID = BIT(0),
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ enum nl80211_band {
|
|||
|
||||
/* Keep this last. */
|
||||
NUM_NL80211_BANDS
|
||||
};
|
||||
} __packed;
|
||||
|
||||
enum nl80211_chan_flags {
|
||||
/* XXX TODO */
|
||||
|
|
|
|||
|
|
@ -879,11 +879,11 @@ struct ieee80211_prep_tx_info {
|
|||
/* XXX-BZ too big, over-reduce size to u8, and array sizes to minuimum to fit in skb->cb. */
|
||||
/* Also warning: some sizes change by pointer size! This is 64bit only. */
|
||||
struct ieee80211_tx_info {
|
||||
enum ieee80211_tx_info_flags flags;
|
||||
enum ieee80211_tx_info_flags flags; /* 32 bits */
|
||||
/* TODO FIXME */
|
||||
u8 band;
|
||||
u8 hw_queue;
|
||||
bool tx_time_est;
|
||||
enum nl80211_band band; /* 3 bits */
|
||||
uint16_t hw_queue:4, /* 4 bits */
|
||||
tx_time_est:10; /* 10 bits */
|
||||
union {
|
||||
struct {
|
||||
struct ieee80211_tx_rate rates[4];
|
||||
|
|
|
|||
Loading…
Reference in a new issue