Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1835742ybz; Sat, 18 Apr 2020 09:26:07 -0700 (PDT) X-Google-Smtp-Source: APiQypJTrEfzi4zpqgCISGOa2/7tphM6BD38UTwMnTop2zbnm27rxUVbABXBIyK7c1+zo5Vmrn53 X-Received: by 2002:a17:906:548:: with SMTP id k8mr8167181eja.259.1587227167253; Sat, 18 Apr 2020 09:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587227167; cv=none; d=google.com; s=arc-20160816; b=SYDswzzkJZPbwdXre24YbsMibPiAiP5O8jXQfezP4HJMgrSr+IPNDIVwOa4foZQsfE vp/L3OM2cfyTZ7i1Kx9ICP73qmqG/VUMzX58LUsk6YC1+77WRe8HbCiREvs2zg+NJSfs eGgCDRLzUV+i48RhxtmSuuHORNsLfpNA1HeUT62wAMEYFZ8nu1T56AMy0m2bZsUqYGZA 5aRYiiQaZs2pWh3ekSp3QBHD0AKBpmDJoChTHD+tKEmqvcdZrW9bgPoChK6b28f+ajqO rUOYBA/4rvnRWBUP1SdXPN+4itSDA0wLpVjH6eeIGADILjscS+69u67Uj8eqdj83Bxm+ RyrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:dkim-signature; bh=XGEj3VJB73XMSjdKjc291NmLGevIXZKdlnrTsayg+jI=; b=FEygXLtfPvQSbQxQJqE/fXQSUTxaMNsm8AVOnw77gt91PcLGP1FABDCVSf8fmgwGVv lnOP4q7PorDVmiwrzUCK7Tr888O5Tj6THGxuKjuWiOVYu88DfQI/Ges+kyjawRcWZs8T mLtq14hYKbtCTfA8uFedqGzGSOModzVXS708hTy3Opp9BUjJTHlKjFPq3lDAI1KGXbtt icHWuzPTNwZJN/Le2lvJD7Ajxl34HPbnikjrCIj4nChmt4H1qql1sq1gUNOwBuOBN64q isHk3HCBastVW3EZ+4wbWS7MZc/Fkkqu2yE8p3+YVuVPSmhYEfVOhQgyTsHZogn6apHs gSgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SIZzTwJn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cy6si6426500edb.41.2020.04.18.09.25.28; Sat, 18 Apr 2020 09:26:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SIZzTwJn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726459AbgDRQYz (ORCPT + 99 others); Sat, 18 Apr 2020 12:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726331AbgDRQYy (ORCPT ); Sat, 18 Apr 2020 12:24:54 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24B7AC061A0C; Sat, 18 Apr 2020 09:24:54 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id u13so6632606wrp.3; Sat, 18 Apr 2020 09:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=XGEj3VJB73XMSjdKjc291NmLGevIXZKdlnrTsayg+jI=; b=SIZzTwJn1Yk5or/nLv3lvJko9gK7r7meNLSAizJaXd2P+BkrneGSkZaX7F7PvWRHGx tskb8uW80qPF4B1Wflmodvg1Ku2ssALa/mnOMD8UHGbC9M0bNUFmUvDgCxh1hSsv+OuC NCqnDREXNCtElIaiBEXV9lOObMRnMql0d8Aiec9C6IW0u/cpOFUjFQg771wuAuTLdSgw 18yYusrLrPg86sbv1amNBFhJVoauC+mJqk8fmg6gEQohbqRyVOFwX0Ra/bupcedSVs58 2/P9WYshzBp/Jssq94je885lPDRKRsVQQK7dpP3fimazY1DB/0ByqQV0StDCVbQIu/Ml gHcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=XGEj3VJB73XMSjdKjc291NmLGevIXZKdlnrTsayg+jI=; b=uYXfLbvhLaFbpu0LOylPB92vozJTWNTWQ1P9XKk2QQCx5NcpAnu2XfW//5VubWGmtt A4cgRCX6keWThDpMEjzb+zr8wMqmE3C4e5ctBmOCaVL2KYmR8PDSynnirUwzudq1lrTf zF8AMp9JeQLVjtwbZXrYdXEjp+OpMAvVQcdDnxPwgyYnIEoYxc4yv0bsrwYJr14wPlP4 J7cG4y7mr2MXvvRG2yErLCouT0qQxtX2UM8Nvq8bCOp0Oj/oiuKpNDaf0Pom98/ZZlcv nW2z2vlNikphxGsvlaSYWQk5NDwBPE57QXYXboiG3yH03nazcDFb5lADcDuyjgU4koG1 vuIA== X-Gm-Message-State: AGi0PuZKbZ89KQYlocNHZpaXHia1dff3wp0wFKudvp6p3yRT0FxbUtoN Au8ThzLLDbSuZQ9PiUP3SEpei45D X-Received: by 2002:a5d:4447:: with SMTP id x7mr9540180wrr.299.1587227092419; Sat, 18 Apr 2020 09:24:52 -0700 (PDT) Received: from [192.168.43.18] (188.29.165.57.threembb.co.uk. [188.29.165.57]) by smtp.gmail.com with ESMTPSA id x18sm35822640wrs.11.2020.04.18.09.24.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Apr 2020 09:24:51 -0700 (PDT) To: Greg Kroah-Hartman Cc: "devel@driverdev.osuosl.org" , linux-wireless@vger.kernel.org, Oscar Carter , stable@vger.kernel.org From: Malcolm Priestley Subject: [PATCH] staging: vt6656: Don't set RCR_MULTICAST or RCR_BROADCAST by default. Message-ID: <2c24c33d-68c4-f343-bd62-105422418eac@gmail.com> Date: Sat, 18 Apr 2020 17:24:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org mac80211/users control whether multicast is on or off don't enable it by default. Fixes an issue when multicast/broadcast is always on allowing other beacons through in power save. Fixes: db8f37fa3355 ("staging: vt6656: mac80211 conversion: main_usb add functions...") Cc: stable Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/main_usb.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 3c76d3cb5bbe..b2729d5eadfb 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -801,15 +801,11 @@ static void vnt_configure(struct ieee80211_hw *hw, { struct vnt_private *priv = hw->priv; u8 rx_mode = 0; - int rc; *total_flags &= FIF_ALLMULTI | FIF_OTHER_BSS | FIF_BCN_PRBRESP_PROMISC; - rc = vnt_control_in(priv, MESSAGE_TYPE_READ, MAC_REG_RCR, - MESSAGE_REQUEST_MACREG, sizeof(u8), &rx_mode); - - if (!rc) - rx_mode = RCR_MULTICAST | RCR_BROADCAST; + vnt_control_in(priv, MESSAGE_TYPE_READ, MAC_REG_RCR, + MESSAGE_REQUEST_MACREG, sizeof(u8), &rx_mode); dev_dbg(&priv->usb->dev, "rx mode in = %x\n", rx_mode); -- 2.25.1