diff options
author | stsp <stsp@openbsd.org> | 2020-06-22 08:21:51 +0000 |
---|---|---|
committer | stsp <stsp@openbsd.org> | 2020-06-22 08:21:51 +0000 |
commit | e1b95be80cd169f00369922e63be4f5104996045 (patch) | |
tree | aeb6870a61c36b703e205a466271cfea4e8ad714 /usr.sbin/npppd | |
parent | Prepare for newer iwx(4) firmware scan command versions. (diff) | |
download | wireguard-openbsd-e1b95be80cd169f00369922e63be4f5104996045.tar.xz wireguard-openbsd-e1b95be80cd169f00369922e63be4f5104996045.zip |
Fix two iwx(4) TX_CMD_OFFLD macros.
The IP_HDR and MH_SIZE fields represent byte offsets into the frame, rather
than flags. Make these macros require a parameter to prevent them from being
misunderstood as flag bits.
In iwlwifi these are defined via an enum, with most values being used as
parameters to BIT(). Yet these IP and MH ones are actually used to shift
length values to particular positions within the offloading parameters
of the Tx command.
Fortunately, these macros aren't used yet in our version of the driver.
Diffstat (limited to 'usr.sbin/npppd')
0 files changed, 0 insertions, 0 deletions