<[email protected]> writes:

> From: Yan-Hsuan Chuang <[email protected]>
>
> main files for Realtek 802.11ac wireless network chips
>
> Reviewed-by: Stanislaw Gruszka <[email protected]>
> Signed-off-by: Yan-Hsuan Chuang <[email protected]>

[...]

> +static inline u8 *get_hdr_bssid(struct ieee80211_hdr *hdr)
> +{
> +     __le16 fc = hdr->frame_control;
> +     u8 *bssid;
> +
> +     if (ieee80211_has_tods(fc))
> +             bssid = hdr->addr1;
> +     else if (ieee80211_has_fromds(fc))
> +             bssid = hdr->addr2;
> +     else
> +             bssid = hdr->addr3;
> +
> +     return bssid;
> +}

I wonder should something like this be in include/linux/ieee80211.h?

-- 
Kalle Valo

Reply via email to