From patchwork Thu Mar 28 18:16:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Kumar Singh X-Patchwork-Id: 1917570 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=EtoOczAj; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=ZZyxO/51; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V5DHx337nz23sY for ; Fri, 29 Mar 2024 06:34:21 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1r56ZiuoABgyyjg8afI54QxtSfo+qgyGWXuroelf364=; b=EtoOczAjubgvjm 1JwkvZbFliiuIUawkTcADHta39Xag96He+0OrWEG8nw79zX+1rMG5ewaJADGvkv4pM81jwnQdcRr/ 2FxkLQrfXhKpp7bAiGZCOf7bAy7sNo2YCKBIK0nIElCwXlig+uAFH9DNntriH5lEP9z7EzDBUhKOC XVVCxJICE98/cyECrG2C8UA/PTg+eN/qC53EM46ywbQbbE3Prn92SdyYvPbuCKZj2n9v13kcxnndi k5EMW/MNTo4mTbjS2qy97W+Dka4NelIzhjV13or2yXQvAr9n3VtZPKI/op8YYQEmF/3XaXdymodaQ sYCTGTsJ/iEHjTXkjfTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpvVc-0000000FOcP-0l0C; Thu, 28 Mar 2024 19:33:56 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpuJr-0000000F77g-3gRV for hostap@lists.infradead.org; Thu, 28 Mar 2024 18:17:49 +0000 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42SI9Ptq009876 for ; Thu, 28 Mar 2024 18:17:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=uBo0U076/AxfWw5v7grgp4oYMOPxbflO8OCpU/EaD/A=; b=ZZ yxO/51zIubTvfElX2Em+GGUC4nyVwdUE3NMI2+kMZkU9BP84oZI5XVV5Ou1GUoPx u5FH11xu7SLtvIVeB/Cq0w803xVOV+Gw9GfRCjqhybpcm8Xex2OuyMB6sKV4QTRJ ePTZX1j0+65Dfym55yHAElBJXfDg6q9sBbJScVxmO8eJWls5oFKefkcjTVhstEFg lckRf05X1rlrdPnVdxNo5KRPefNbq+Kgakmp//ZSFQ2qx0aXMM77QOHnFuZd3fsE sk+wiJaqCGkS9MtQKImx+p92gFclfFKC5Uugz2g8Jt2DF3gSUsuguzRBUhecybg5 6jWWXwxF2yOAWrxE5crA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x5aqugj9h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 28 Mar 2024 18:17:42 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42SIHfJM021755 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 28 Mar 2024 18:17:41 GMT Received: from hu-adisi-blr.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 28 Mar 2024 11:17:40 -0700 From: Aditya Kumar Singh To: CC: Sriram R , Aditya Kumar Singh Subject: [PATCH 14/22] hostapd: MLO: update all partner's link beacon Date: Thu, 28 Mar 2024 23:46:44 +0530 Message-ID: <20240328181652.2956122-15-quic_adisi@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240328181652.2956122-1-quic_adisi@quicinc.com> References: <20240328181652.2956122-1-quic_adisi@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 9L15b7o0Dl0Cj9aNizS2pIcOScSrZ_vh X-Proofpoint-GUID: 9L15b7o0Dl0Cj9aNizS2pIcOScSrZ_vh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-28_17,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 phishscore=0 clxscore=1015 adultscore=0 mlxscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403280128 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240328_111744_749450_C20B377D X-CRM114-Status: GOOD ( 16.32 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Sriram R Whenever there is a beacon update of any one of the link, all its other partner's link beacon should be refreshed. Add changes to update all partner's link beacon. Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Sriram R Whenever there is a beacon update of any one of the link, all its other partner's link beacon should be refreshed. Add changes to update all partner's link beacon. Signed-off-by: Sriram R Signed-off-by: Aditya Kumar Singh --- src/ap/beacon.c | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 195c7bbd9972..b780d98e4bab 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -2648,7 +2648,7 @@ int ieee802_11_set_beacon(struct hostapd_data *hapd) struct hostapd_iface *iface = hapd->iface; int ret; size_t i, j; - bool is_6g; + bool is_6g, hapd_mld = false; ret = __ieee802_11_set_beacon(hapd); if (ret != 0) @@ -2657,26 +2657,37 @@ int ieee802_11_set_beacon(struct hostapd_data *hapd) if (!iface->interfaces || iface->interfaces->count <= 1) return 0; +#ifdef CONFIG_IEEE80211BE + hapd_mld = hapd->conf->mld_ap; +#endif /* CONFIG_IEEE80211BE */ + /* Update Beacon frames in case of 6 GHz colocation or AP MLD */ is_6g = is_6ghz_op_class(iface->conf->op_class); for (j = 0; j < iface->interfaces->count; j++) { struct hostapd_iface *other; - bool mld_ap = false; + bool other_iface_6g; other = iface->interfaces->iface[j]; if (other == iface || !other || !other->conf) continue; -#ifdef CONFIG_IEEE80211BE - if (hostapd_is_ml_partner(hapd, other->bss[0])) - mld_ap = true; -#endif /* CONFIG_IEEE80211BE */ + other_iface_6g = is_6ghz_op_class(other->conf->op_class); - if (is_6g == is_6ghz_op_class(other->conf->op_class) && - !mld_ap) + if (is_6g == other_iface_6g && !hapd_mld) continue; for (i = 0; i < other->num_bss; i++) { +#ifdef CONFIG_IEEE80211BE + bool mld_ap = false; + + if (hapd_mld && other->bss[i]->conf->mld_ap && + hostapd_is_ml_partner(hapd, other->bss[i])) + mld_ap = true; + + if (is_6g == other_iface_6g && !mld_ap) + continue; +#endif /* CONFIG_IEEE80211BE */ + if (other->bss[i] && other->bss[i]->started) __ieee802_11_set_beacon(other->bss[i]); }