aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_phy.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2009-02-19 16:30:11 +0000
committerWarner Losh <imp@FreeBSD.org>2009-02-19 16:30:11 +0000
commit6f74a8c7a06394d06aaba2a2a287f39fa27c2a44 (patch)
treefbd7ce97e17ddc76a4fbf3803378b4c457ed2def /sys/net80211/ieee80211_phy.c
parent5e4de39e21210eac1ae4efe04ad8e164ea94c6c9 (diff)
downloadsrc-6f74a8c7a06394d06aaba2a2a287f39fa27c2a44.tar.gz
src-6f74a8c7a06394d06aaba2a2a287f39fa27c2a44.zip
Properly convert bit value to a bit field. Before we were storing
values like 0x80 or 0x40 into a uint8_t foo:1 bitfield. This would result in the bit always being 0. One of these caused a warning for overflow (one that was 0x80), but the other didn't. They were both wrong. This is why I hate code that mixes c struct bitfields and #defines. The rest of the fields accessed by the program should be audited.
Notes
Notes: svn path=/head/; revision=188820
Diffstat (limited to 'sys/net80211/ieee80211_phy.c')
0 files changed, 0 insertions, 0 deletions