From patchwork Thu May 10 13:21:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 10391817 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0331D60353 for ; Thu, 10 May 2018 13:23:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E40D2289FB for ; Thu, 10 May 2018 13:23:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6E8C28A5F; Thu, 10 May 2018 13:23:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF672289FB for ; Thu, 10 May 2018 13:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757285AbeEJNXF (ORCPT ); Thu, 10 May 2018 09:23:05 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:39493 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756998AbeEJNXE (ORCPT ); Thu, 10 May 2018 09:23:04 -0400 Received: by mail-lf0-f67.google.com with SMTP id j193-v6so2947426lfg.6 for ; Thu, 10 May 2018 06:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+oX/WTf5pI0giwhsnDYxTSLUYO9sm9OGh52km0y0TR0=; b=MqFyjr+GlYyVUE67I2VOQLOvkguUOTgLBn9M5rgNJfQPJMNM0JB5qFQn6K1KCI5zo1 MHD92gOeh3CkMu2O38RKZv6rneEL8PIhda20fl2lfRvySFEi//Io02xCW2OoJa/sFdFu oUtIRbEm0VoO8WzBmT25sW/vKLFV4AT4yy+DCpxuwuyNjTmADXuOdFyAIuChsa8Xp2DX MkMR+9oc2gUxuDQ/HaPeID9Eln6VPyiXfkBz9IjKCvVmMOtTyoxp751lJHzVEHWA+2iG 5O/MA8lGByJoCfBMCahMrlbWgomb2ZxGlFHbw59wot7acBzuTdcD+Jk1fTxADitWMQJA 3B5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+oX/WTf5pI0giwhsnDYxTSLUYO9sm9OGh52km0y0TR0=; b=FB+WM5kX6YvyNXhEHrPNTtAtRMSnEsUFsuJkExpM5dtwtRmH2LIl7JqRKWgJS/8udG ckDsFj/EaC9vfTUdVZVx0sOpfDfUzyVoc3uP+0nvcKHR1c5H+2wKcbNGt1xGZ7H0+QWK fNUwPiHEtPVeRyYEFBURKXSM4pR6+eJoD+FSmEkaSmA2/VSj+r9XAP1UhxoYLvAtYoe6 iJB9LEsZMmdUeOqGdRD0TbdDAhWl+lw8yJPXb5/9cl2DXWZeTghT7kA1BgB+1HtGulNJ NRrFNuu/cNUUxsW/DcMc/PuzYZbJiPy+TyNoAYOanMYj10wgsMMi/KOF62gEzaazRMDd hsgw== X-Gm-Message-State: ALKqPwdN63ChcXg3ydycWZpkNT/3irrEWkb+d0Cau8o15Gx9mlg3tD33 q0UIzGVPIewEx/uNpyTDPSQ= X-Google-Smtp-Source: AB8JxZos55FxoNYTGUA86XBkHm69XD5bKWosU8ZMfjNr4U/u1sOKRI1tNsLt0IrdE3dtViEPl05ZYQ== X-Received: by 2002:a2e:52d2:: with SMTP id n79-v6mr1168333lje.146.1525958583295; Thu, 10 May 2018 06:23:03 -0700 (PDT) Received: from linux-veee.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id a21-v6sm166409lfl.84.2018.05.10.06.23.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 06:23:02 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo Cc: Arend van Spriel , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , Pieter-Paul Giesberts , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH] brcmfmac: set WIPHY_FLAG_HAVE_AP_SME flag Date: Thu, 10 May 2018 15:21:39 +0200 Message-Id: <20180510132139.16279-1-zajec5@gmail.com> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rafał Miłecki brcmfmac is a FullMAC driver and it implements/uses cfg80211 interface for stations management. At the same time it doesn't receive or pass up management frames. This flag indicates that authenticator doesn't have to subscribe to or handle management frames. Some authenticators (e.g. hostapd) were working with brcmfmac thanks to some extra assumptions. This commit clears up the situation. Signed-off-by: Rafał Miłecki Acked-by: Arend van Spriel --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index ff6b3514c501..a400a513dac2 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -6512,6 +6512,7 @@ static int brcmf_setup_wiphy(struct wiphy *wiphy, struct brcmf_if *ifp) wiphy->flags |= WIPHY_FLAG_NETNS_OK | WIPHY_FLAG_PS_ON_BY_DEFAULT | + WIPHY_FLAG_HAVE_AP_SME | WIPHY_FLAG_OFFCHAN_TX | WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_TDLS))