Search Linux Wireless

Re: [PATCH 1/7] mac80211: add helpers for frame control testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +static inline u8 *ieee80211_get_qos_ctl(struct ieee80211_hdr *hdr,

I think this is wrong, the header len will probably at some point
include more things like HT headers where present or similar, so
subtracting 2 from the header len is going to be wrong as soon as that
happens because the QoS control will stay first. I think this should do
the relevant calculation itself, ie. check for A4.

> +static inline int ieee80211_has_protected(__le16 fc)

> +static inline int ieee80211_has_morefrags(__le16 fc)

> +static inline int ieee80211_has_tods(__le16 fc)

> +static inline int ieee80211_has_fromds(__le16 fc)

> +static inline int ieee80211_has_a4(__le16 fc)

> +static inline int ieee80211_is_mgmt(__le16 fc)

> +static inline int ieee80211_is_ctl(__le16 fc)

> +static inline int ieee80211_is_data(__le16 fc)

> +static inline int ieee80211_data_has_qos(__le16 fc)

Can you add kernel-doc comments for these?

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux