Search Linux Wireless

Re: [RFC-PATCH] mac80211: add helpers for skb manipulation

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

 



> +	/* Remove QOS if present */
> +	hdr = (struct ieee80211_hdr *)skb->data;
> +	if (ieee80211_is_data_qos(hdr->frame_control)) {
> +		hdr->frame_control &= ~cpu_to_le16(IEEE80211_STYPE_QOS_DATA);
> +		ieee80211_skb_trim_iv_icv(skb, IEEE80211_QOS_CTL_LEN, 0);

Maybe you should rename that if you're going to use it for something
other than IV/ICV :)

And wouldn't it actually be more efficient in this case to just
calculate hdrlen once?

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