Search Linux Wireless

Re: [mac80211] Enforce protected check for unicast robust management frames.

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

 



On Tue, Aug 12, 2014 at 12:21 AM,  <chaitanya.mgit@xxxxxxxxx> wrote:
> From: Chaitanya T K <chaitanya.mgit@xxxxxxxxx>
>
> Enforce the check for protected field for all unicast
> robust management frames.
>
> Signed-off-by: Chaitanya T K <chaitanya.mgit@xxxxxxxxx>
> ---
>
> This removed the dependency on the driver to check for protected
> bit, especially for those drivers who believed the API :-).
>
> ---
>
>  net/mac80211/rx.c |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
> index a8d862f..63e8f3d 100644
> --- a/net/mac80211/rx.c
> +++ b/net/mac80211/rx.c
> @@ -569,6 +569,9 @@ static int ieee80211_is_unicast_robust_mgmt_frame(struct sk_buff *skb)
>         if (is_multicast_ether_addr(hdr->addr1))
>                 return 0;
>
> +       if (!ieee80211_has_protected(hdr->frame_control))
> +               return 0;
> +
>         return ieee80211_is_robust_mgmt_frame(skb);
>  }
>

Johannes,

Subject is wrong it should be [PATCH] mac8021:, so should i resend it again?
--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux