Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1058333ybz; Fri, 17 Apr 2020 15:09:09 -0700 (PDT) X-Google-Smtp-Source: APiQypKT7pkVqdav6vxdZdnvTfy51xcpqMYzsjOyjXjOlkn70zayxGEtx9b+AUb522SEe79dGLOK X-Received: by 2002:a50:da49:: with SMTP id a9mr4998530edk.388.1587161349248; Fri, 17 Apr 2020 15:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587161349; cv=none; d=google.com; s=arc-20160816; b=sBu86jWnfrhOo7nc0mbk1hCGug7jyG8USzJl0tsN72Ed2lj38g3qIY0tIIQo6Hwz2n dCHb/0fl14GhzromdXU9yrThS6E8ikGOf0GULPCUMYvE+d0AqlAnXNeYvJ0XELC8gTQg ZsjoWSgdkO6Qj4l/TjcArHWrTaKwRMD8gisUl9bZLdqtcBqRwt1ufQQTe2vVAIeZwd5Z 0C+XOzwpY2u9q3VAXs4nB+FXQ7DPrTArvYNzwzEvts35lbFEzrwv4DBe2a03krDf9VsB 0vzw3UfSGZGclI+gcbpsX0nielPjig3+yY+mgIkBzLpUCjMnA71Zeo8QaXWN9cCKo3Mo 1L5A== 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:mime-version :subject:user-agent:references:in-reply-to:message-id:date:cc:to :from:dkim-signature; bh=7UMBTTxqddn7dk5hxGVt8ENAgHrrOZUMGFunYXqysqA=; b=rARA2qDImF3cKi4qkdAoo+mLqk1QLyNdJcbcb/QfMtQDa0WRyGX/VGzo+xbmpweIJh 3G4oqda1cn/0Q4P/tv0bCQ4yfg/WxHUEv9+Wlw7B7WV83vRfjisB/vkBb8KJvGudGfD2 ERIWEr8EXvmFmmkTNIgRSom1jAybfSss6xpgpiDFOjEEa61HkHQnnA9okwEdxaAjwSvx I2N6hr1Eh1nBoMBOy9RZ1qnk9gDIkPNo9slVqfTA6tmVsnLOBuFZ6W1wpXkr5SxqBJm0 niyCx6I/4tcSKSWtx0Z32noGhBz417p0z68wLxJPe1QbLZQ1hSyqZwSO3V/3jT/pNFQx rw9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=MP1LrdCb; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v2si9877126edd.536.2020.04.17.15.08.29; Fri, 17 Apr 2020 15:09:09 -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=@broadcom.com header.s=google header.b=MP1LrdCb; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728402AbgDQWIQ (ORCPT + 99 others); Fri, 17 Apr 2020 18:08:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726284AbgDQWIP (ORCPT ); Fri, 17 Apr 2020 18:08:15 -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 38B12C061A0C for ; Fri, 17 Apr 2020 15:08:15 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id t14so4697181wrw.12 for ; Fri, 17 Apr 2020 15:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:date:message-id:in-reply-to:references:user-agent :subject:mime-version:content-transfer-encoding; bh=7UMBTTxqddn7dk5hxGVt8ENAgHrrOZUMGFunYXqysqA=; b=MP1LrdCb8ddufiI+W8M1tv1/uPxewY8by4mSYewFcQJqAvV5hX3wyXw293pOaIqVeL BjDyZYmONlwW1d7uXSVFHzv4k4UvAOo9nEKqxyonEUC1nTPwL6EBRmu0ISzYNr4+27Z5 nkVSCDVzCFK74fSUa8/SVLwF53TOxuy6FQUEM= 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:date:message-id:in-reply-to :references:user-agent:subject:mime-version :content-transfer-encoding; bh=7UMBTTxqddn7dk5hxGVt8ENAgHrrOZUMGFunYXqysqA=; b=guDhzdW1nhxa16YTpc85frg50fLBdPxgXNlAiqCnQION08Wki6m8u2iHkqf3cwDqn1 G/GE2nkkoljWmRZnaklcCaE5hXDG0uN2Pz6/+UT1VhF234Yy6S2Ay4dxlUd7Z7WxP/+9 lWQ1EihSbAZFWrGLDJ40zbZ/7rdmAZWlhyTGswoLiF59I6J98RLQKB2/RJywC2U5lQmv JYUekGFH76MoQ/BeELryBpKF66Ic8BPUOMdomUNsegpyCQ3LEhepGUa0ctWUf+8fME5s /nG9PPl+HMSjq2z+5KZ7bWTD2Tl2cekeHArMkM2eauh1Uze3oryudSbGWS03/nqkR40W 5FxA== X-Gm-Message-State: AGi0PuYP2Py46wzyWtFMKLqp8EduAt3i9mu5DerUTFzC1f3GqYYkAAlh 0PvG0aFbd6nWclG8IpylgCdkvA== X-Received: by 2002:adf:bb94:: with SMTP id q20mr6581496wrg.105.1587161293712; Fri, 17 Apr 2020 15:08:13 -0700 (PDT) Received: from [192.168.178.38] (f140230.upc-f.chello.nl. [80.56.140.230]) by smtp.gmail.com with ESMTPSA id n131sm9394168wmf.35.2020.04.17.15.08.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2020 15:08:12 -0700 (PDT) From: Arend Van Spriel To: Johannes Berg , CC: Kalle Valo , Franky Lin , Hante Meuleman , "Chi-Hsien Lin" , Wright Feng , , , Amitkumar Karwar , Ganapathi Bhat , Xinming Hu , Igor Mitsyanko , Avinash Patil , Sergey Matyukevich , Johannes Berg Date: Sat, 18 Apr 2020 00:08:12 +0200 Message-ID: <1718a2f5ce0.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> In-Reply-To: <20200417124300.f47f3828afc8.I7f81ef59c2c5a340d7075fb3c6d0e08e8aeffe07@changeid> References: <20200417124300.f47f3828afc8.I7f81ef59c2c5a340d7075fb3c6d0e08e8aeffe07@changeid> User-Agent: AquaMail/1.23.0-1556 (build: 102300002) Subject: Re: [PATCH v2] cfg80211: change internal management frame registration API MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On April 17, 2020 12:43:09 PM Johannes Berg wrote: > From: Johannes Berg > > Almost all drivers below cfg80211 get the API wrong (except for > cfg80211) and are unable to cope with multiple registrations for > the same frame type, which is valid due to the match filter. > This seems to indicate the API is wrong, and we should maintain > the full information in cfg80211 instead of the drivers. > > Change the API to no longer inform the driver about individual > registrations and unregistrations, but rather every time about > the entire state of the entire wiphy and single wdev, whenever > it may have changed. This also simplifies the code in cfg80211 > as it no longer has to track exactly what was unregistered and > can free things immediately. For brcmfmac... Acked-by: Arend van Spriel > Signed-off-by: Johannes Berg > --- > drivers/net/wireless/ath/ath6kl/cfg80211.c | 26 +++--- > .../broadcom/brcm80211/brcmfmac/cfg80211.c | 19 ++---