Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2578911pxb; Tue, 19 Jan 2021 00:14:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxa66p1936UVOl+GHcQ3OAH9T7f/gFvioo2AotVKj0h4QFnoSxtvblo/UELehj09DxaK5oG X-Received: by 2002:a05:6402:41:: with SMTP id f1mr2439823edu.286.1611044067316; Tue, 19 Jan 2021 00:14:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611044067; cv=none; d=google.com; s=arc-20160816; b=yLjHWcK4K94J/kqCUK055qDOc7P0Q7Q9yE5UA3zogUhawoQuJkSjvb5ZojuFac1ZO5 pPPvsjF0LfteMTtCM+DNDElWYhC5voOfbMRNNaXMg0KAz6Qfjj6yF42lALA4+8ty/I1i 2JVXnsogCziSw6MsAnGyfv2FToWt+5lhZxqqaFeb5zKIVz6RGAVM3Ix2iP8cw7x9krU0 Re7wgJBEldYwXiw/GvUNdiWzdWNiFh/Z39ZcVYbEqzdMDWKPT/4YPY4p7u6JaHmHsXJ4 8IoG6h+C7tcYR3Oc0nPpDk9WAY/XGU48UQw5z7/Tw4bL6b9GgLHGPI48wAsFUMg6UUk1 s8Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:sender:dkim-signature; bh=BhAMRyR+5Tx1OgUKVRW+my+n85OwcVw4F3vY5dgl3x0=; b=ZeVvrbGKSgvfuYIha7bQoQOa+rM8K1BI01wULMsIIwdgCIecArsrSgaCK3A0FNjCBx uX58b32zvDEZiB2yzSZRFzr11WTwL0BVFM06OQYmb2XaIUY2exYQw5LfGuRymjrpw8dw cxw8AjRSjA/e49TVA0GtmlC05LXB5m+t+llVkbIzNwkSU2XCWHnDw2w+pahGO4k6bOiP 6zc4xP9C95km6cSFJgfFCjbzDWhTWXe3hXwl6tJmS3NpfGJCl55qKnjITIwuiRu1fFvc UOKytEPuW52s18wufE80bLSl+aE3sy2hXTGzjLMFGvVBsQMcNRhUzqC+G2QeI6O5j9cA jchA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=kd7WoelI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si1404993ejy.529.2021.01.19.00.14.04; Tue, 19 Jan 2021 00:14:27 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=kd7WoelI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731567AbhASIMM (ORCPT + 99 others); Tue, 19 Jan 2021 03:12:12 -0500 Received: from m42-8.mailgun.net ([69.72.42.8]:23918 "EHLO m42-8.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731642AbhASILQ (ORCPT ); Tue, 19 Jan 2021 03:11:16 -0500 X-Greylist: delayed 358 seconds by postgrey-1.27 at vger.kernel.org; Tue, 19 Jan 2021 03:10:27 EST DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1611043851; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=BhAMRyR+5Tx1OgUKVRW+my+n85OwcVw4F3vY5dgl3x0=; b=kd7WoelIr/6TRB0qwBS27q1B1ddv88K5pXLouqHiaUJHwm2on/a+I7/ScB3oyJd+Pqr4gNL8 YdbVk7byGOxwQOwKQImDIKEko1DoWOf76POoi4QswqWn4Q8OVhlpVkeDaV3C/7spgw0VMX87 ik/8C7O6YvlJZYzwH7ArN3Uvd9A= X-Mailgun-Sending-Ip: 69.72.42.8 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 600694018a0374a5013c51d7 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 19 Jan 2021 08:10:41 GMT Sender: alokad=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 54CE9C43461; Tue, 19 Jan 2021 08:10:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from alokad-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: alokad) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6DA96C43463; Tue, 19 Jan 2021 08:10:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6DA96C43463 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=alokad@codeaurora.org From: Aloka Dixit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, John Crispin , Aloka Dixit Subject: [PATCH V6 4/4] mac80211: CSA on non-transmitting interfaces Date: Tue, 19 Jan 2021 00:10:27 -0800 Message-Id: <20210119081027.5133-5-alokad@codeaurora.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20210119081027.5133-1-alokad@codeaurora.org> References: <20210119081027.5133-1-alokad@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: John Crispin Trigger ieee80211_csa_finish() on the non-transmitting interfaces when CSA concludes on the tranmitting interface. Modify offset in beacon generation to reflect multiple BSSID element length. Signed-off-by: John Crispin Signed-off-by: Aloka Dixit --- v6: CSA is triggered on all interface, not only transmitting. net/mac80211/cfg.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 9c4346f69a7b..11a22a3b9cab 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -3239,6 +3239,17 @@ void ieee80211_csa_finish(struct ieee80211_vif *vif) { struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); + if (sdata->vif.multiple_bssid.flags & IEEE80211_VIF_MBSS_TRANSMITTING) { + struct ieee80211_sub_if_data *child; + + rcu_read_lock(); + list_for_each_entry_rcu(child, &sdata->local->interfaces, list) + if (child->vif.multiple_bssid.parent == &sdata->vif) + ieee80211_queue_work(&child->local->hw, + &child->csa_finalize_work); + rcu_read_unlock(); + } + ieee80211_queue_work(&sdata->local->hw, &sdata->csa_finalize_work); } -- 2.25.0