Search Linux Wireless

Re: [PATCH] mac80211: accept public action frames with mismatched BSSID

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

 



On Mon, Dec 5, 2011 at 6:20 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
> From: Johannes Berg <johannes.berg@xxxxxxxxx>
>
> Arik's patch "mac80211: allow action frames with unknown
> BSSID in GO mode" allowed any action frames in P2P mode
> to go through, but only to cooked monitor interfaces as
> the IEEE80211_RX_RA_MATCH was still cleared. As a result
> my no-monitor patches broke invitation responses.
>
> Instead of allowing any action frames in P2P GO mode to
> go through with a wrong BSSID like that patch did, allow
> all public action frames. They will never be processed
> by mac80211, but can be reported via nl80211 then.
>
> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
> ---
[...]

> +static inline bool ieee80211_is_public_action(struct ieee80211_hdr *hdr,
> +                                             size_t len)
> +{
> +       struct ieee80211_mgmt *mgmt = (void *)hdr;
> +
> +       if (len < 25)
> +               return false;

maybe use offsetof() to make clearer?

Eliad.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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