lkml.org 
[lkml]   [2018]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 132/496] mac80211: drop frames with unexpected DS bits from fast-rx to slow path
    Date
    4.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Felix Fietkau <nbd@nbd.name>

    [ Upstream commit b323ac19b7734a1c464b2785a082ee50bccd3b91 ]

    Fixes rx for 4-addr packets in AP mode. These may be used for setting
    up a 4-addr link for stations that are allowed to do so.

    Signed-off-by: Felix Fietkau <nbd@nbd.name>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    net/mac80211/rx.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/net/mac80211/rx.c
    +++ b/net/mac80211/rx.c
    @@ -3928,7 +3928,7 @@ static bool ieee80211_invoke_fast_rx(str
    if ((hdr->frame_control & cpu_to_le16(IEEE80211_FCTL_FROMDS |
    IEEE80211_FCTL_TODS)) !=
    fast_rx->expected_ds_bits)
    - goto drop;
    + return false;

    /* assign the key to drop unencrypted frames (later)
    * and strip the IV/MIC if necessary

    \
     
     \ /
      Last update: 2018-05-28 15:31    [W:2.275 / U:0.796 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site