Skip to contentSkip to conversation

d80211: bitfield usage should go

DISCUSSION Jeff Garzik 1 participant 1 message Aug 9, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I'm doing an in-depth review of d80211 right now.

One issue that leaps out: use of bitfields.

1) single-bit signed bitfields are undefined

	int wep_include_iv:1;

2) bitfields in general generate HORRIBLE code. Just don't use them. Compilers often fail to use even the most obvious simplifications.

Use flags and bitwise operators instead, like most other Linux code.