> > It'd be shorter to write > > > > if (rx->fc ^ (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) > > > > but I'm not sure that's easier to understand ;) > > Would that work? For data frames rx->fc is 0xYY08 (with YY being the > flags, including fromDS/toDS), so they would always evaluate to true in > that if, regardless of the flags. Hah, you're right, sorry. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part