Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5425236pxu; Thu, 22 Oct 2020 01:46:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgWd+Fw3zUzwTy/PSAeRsHnqM3Kpn5xFGP43PzQjVBkHgzKVKRS2HjuVMipDX5yi0VYDaC X-Received: by 2002:a05:6402:1c10:: with SMTP id ck16mr1259813edb.7.1603356419319; Thu, 22 Oct 2020 01:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603356419; cv=none; d=google.com; s=arc-20160816; b=AzZSVWH/Aafh5bZJcvUa06zO1oI8ZUgniyoGO4SI+qKj3NSTuWt0BR+htfvieAgVOy au+2KiW3/3kFjHZ6wOVbAvAaCwPwTyS6HvlNOUvVgg25TTcGnr5BNo9N8fazV7zEvTJP HvRs/dNdMO/XgghaDdS3bNZQxKK83N4WAXjjh2w5wXkhuczgn9/KbgX9B0V9etuPQ0m1 WoyKyBlDT5kCjhycant9ZzF4EmQg4b0IC75NdlFcSHEE19v91xAgEM54bT+aiewe6J4Q Y3ogUGDVDZpRxJoXnQUvlHUJ9gTcjfX6rJOUDpFqW+J3+NMotEf82xw0BE+2+LzitpdC TP/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=dTuCiQpdvLzdOlCNjb4TqHfwyO04bx5KYyYZWxLd2jo=; b=ot79OEXAGtN0PQhEW9tjrRLMX19EXvq6OUtEmLPKxfbz7sBdSx0npGap00PGA4hCA+ r8SYPDVG7ck+XNVOSOxOGnMibKgkmfrFoxF/B5PPmVqxYpAwJJc4LCS9wfw54Tv/YvEV 9XFqug5foh1VpJTotsQVQhLiwIXle7exLAnNpD3qUpqbutBZ7r+lBg9JgOtPXOYyqZC/ 25YMsB+T7epZrgRhONuhsrDBdSSIyT4oxWN+eYpl8Q75KVvkpnso9GQwABnT1F8hUO+Y nF7RRd9VljfxCo+wzTfWeL7St16tbz7hbvd9pHo9ustawwlUAif0irnAfpuUZUlepStb STNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=S5Jo1tqq; 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 o17si451419ejh.535.2020.10.22.01.46.34; Thu, 22 Oct 2020 01:46:58 -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=S5Jo1tqq; 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 S2506391AbgJVH15 (ORCPT + 99 others); Thu, 22 Oct 2020 03:27:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440738AbgJVH15 (ORCPT ); Thu, 22 Oct 2020 03:27:57 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68A1AC0613CE for ; Thu, 22 Oct 2020 00:27:57 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id s22so416079pga.9 for ; Thu, 22 Oct 2020 00:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to; bh=dTuCiQpdvLzdOlCNjb4TqHfwyO04bx5KYyYZWxLd2jo=; b=S5Jo1tqqWq98bSK5Q4oIfhqgc40/yrCqjxQ/EIgICxxZromzsVHwOFVuxxBeCyziyA i6+mgi7fRtqX//00591ytm5+TWShwPNVy/0KLeA6dq/C4HtjRRRNx/RVOyaUijeOQmmi r0UAUvPh+Adm+F7CCY6BsVhQOoqpyova8UPaI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=dTuCiQpdvLzdOlCNjb4TqHfwyO04bx5KYyYZWxLd2jo=; b=OxeusCJZlYAN4iG7mFQSbmrcxgmcSGcdd685FOf5IZSTog89CWA/50ziXS+r6TN80h I7h5qhZ48nHDRyHfiWGcwwHIsqvLgxNzLpZ3VL3Od/ZXDJsISDYa5e+OXAUZQQABWnXU dxnoU6sHLcbcAidj6cjXRKCZKeX56O6+A+269VpIITpScf7P9cL549+39k3LovvliXbC hUhCXyyvlEIABIjJAHRYs9gqII9y6+h68cRufWIseC0fHzZKe7Oqdph0f1UOsrdVW4Bz XUAWDYxMvm91HoW6kW50b8JuNrhvPWawIqi/EYYkUX0ANrXYj735dCFsSzwVhlFZ6r5f vvLQ== X-Gm-Message-State: AOAM533TVsKpQB3hbMqnnGmjdURCJu/yC7gQ1Oh04LHQqDKgJcQz8gsQ ibVJbYHM32vShx9zmS/YYvyUfA== X-Received: by 2002:a63:4514:: with SMTP id s20mr1118852pga.298.1603351676802; Thu, 22 Oct 2020 00:27:56 -0700 (PDT) Received: from [192.168.178.129] (f140230.upc-f.chello.nl. [80.56.140.230]) by smtp.gmail.com with ESMTPSA id y124sm1011107pfy.28.2020.10.22.00.27.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Oct 2020 00:27:56 -0700 (PDT) Subject: Re: [PATCH v2 2/4] brcmfmac: don't allow arp/nd offload to be enabled if ap mode exists To: Wright Feng , linux-wireless@vger.kernel.org, Kalle Valo , chi-hsien.lin@cypress.com Cc: brcm80211-dev-list@broadcom.com, brcm80211-dev-list@cypress.com, Franky Lin , Hante Meuleman , Ting-Ying Li References: <20201020022812.37064-1-wright.feng@cypress.com> <20201020022812.37064-3-wright.feng@cypress.com> From: Arend Van Spriel Message-ID: Date: Thu, 22 Oct 2020 09:27:52 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 MIME-Version: 1.0 In-Reply-To: <20201020022812.37064-3-wright.feng@cypress.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000002b935805b23d67ec" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --0000000000002b935805b23d67ec Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 10/20/2020 4:28 AM, Wright Feng wrote: > From: Ting-Ying Li > > Add a condition to determine whether arp/nd offload enabling > request is allowed. If there is any interface acts as ap > mode and is operating, then reject the request of arp oflload > enabling from cfg80211. Reviewed-by: Arend van Spriel > Signed-off-by: Ting-Ying Li > Signed-off-by: Wright Feng > --- > .../broadcom/brcm80211/brcmfmac/cfg80211.c | 17 ++++++++++++++++- > .../broadcom/brcm80211/brcmfmac/cfg80211.h | 1 + > .../wireless/broadcom/brcm80211/brcmfmac/core.c | 5 +++++ > 3 files changed, 22 insertions(+), 1 deletion(-) --0000000000002b935805b23d67ec Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQTAYJKoZIhvcNAQcCoIIQPTCCEDkCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2hMIIE6DCCA9CgA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