Message ID | 20230725071658.15731-2-quic_mpaluri@quicinc.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=<UNKNOWN>) 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=WLCO1WB9; 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=ZCPvOdxp; dkim-atps=neutral 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R97fm2D7Jz1yZv for <incoming@patchwork.ozlabs.org>; Tue, 25 Jul 2023 17:18:24 +1000 (AEST) 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=BQfcmxcxCyLY35ja1HlUcvXicq+vE567TghUkugogGM=; b=WLCO1WB92sBbG4 m0al6jCokhUL1m0rEYSc11Gqc0ImXKXHcXpKo6Ebv1jtjGALBC8u+GTeQD+rqoJXi9EleEGT4J6z6 AWRpjpkOuUGmFI6CLwAXtCX8Nc8qLu+LykY951lHfmOAVgtBFxOmf3olguVU8pMEd9tl2Q9YW7nBb OzTav5JUoCvNuGUpgEyNZp1uknPxB/8uYz0Ba5y3+0+3/GO12xtoq1RYzlQdgh0x/PnS8/1oTJUJh UVyB5yF/xDzjEDgMjGQLMHRRYZYYAiBLet49+weSaiqglVaUUT1XcSWXLEX2BSgjhumJsaSlyGDdf nFK6XxzdQhflA5E+3xiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qOCIe-006YvB-2i; Tue, 25 Jul 2023 07:17:40 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qOCIM-006YlR-1p for hostap@lists.infradead.org; Tue, 25 Jul 2023 07:17:24 +0000 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36P79781022344; Tue, 25 Jul 2023 07:17:20 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-type; s=qcppdkim1; bh=JYWZRvu/LWe0Pa97h+NCnx5lIKhQQs9T1ZkBBIlMvP0=; b=ZCPvOdxpQdCxW0MKiCChGZbUvx3y+JvgKiLbFEtSODPev0b5mSWYVEiXpHYa6WNgEm1z kER8Ud3KmJhmRY2oM1xpdoWFXJf2sbMUJAcsDgcBclWCwHwB7YpezPo7fYdxlaA/nryc BJg/75J0Cs+88p+2QTpfXsj66HM14UMLen535tiWxTiJ/YXzzThsFeNigp4us8Mn9nDK DW6jIZnd4eE2IdQUStk66+11dY8E5MZLUgORR/X4rJO58GpreMZG5V273RqK3nyATWoO Ibdgv4e0BM+EdjWAfRtTTitQlvbhVgvSFDDeja7RzYW2Gu7Est5og8pSivpxRcCODBhI 3Q== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s1qa3t89e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 07:17:20 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36P7HJlK004817 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 07:17:19 GMT Received: from hu-mpaluri-hyd.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Tue, 25 Jul 2023 00:17:17 -0700 From: Manaswini Paluri <quic_mpaluri@quicinc.com> To: <hostap@lists.infradead.org> CC: <quic_mpaluri@quicinc.com>, <ilan.peer@intel.com>, <andrei.otcheretianski@intel.com>, <quic_vjakkam@quicinc.com> Subject: [PATCH v2 2/2] AP: Use is_zero_ether_addr() to check if BSSID is NULL Date: Tue, 25 Jul 2023 12:46:58 +0530 Message-ID: <20230725071658.15731-2-quic_mpaluri@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230725071658.15731-1-quic_mpaluri@quicinc.com> References: <20230725071658.15731-1-quic_mpaluri@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: Z-Hsj6emFs4qYNd8BYKr4E2vh-Pjssuq X-Proofpoint-GUID: Z-Hsj6emFs4qYNd8BYKr4E2vh-Pjssuq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-25_02,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 malwarescore=0 suspectscore=0 clxscore=1015 mlxlogscore=787 priorityscore=1501 mlxscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307250064 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230725_001722_723358_36C86CAD X-CRM114-Status: GOOD ( 17.31 ) 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: Ilan Peer <ilan.peer@intel.com> Use helper function is_zero_ether_addr() for checking empty bssid value in hostapd_driver_init(). Signed-off-by: Ilan Peer <ilan.peer@intel.com> Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Signed-off-by: Manaswini Paluri <quic_mpaluri@quicinc.com> --- hostapd/main.c | 2 [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[v2,1/2] AP: Add configuration option to specify the desired MLD address
|
expand
|
diff --git a/hostapd/main.c b/hostapd/main.c index ac9a47a48..4b730b6ef 100644 --- a/hostapd/main.c +++ b/hostapd/main.c @@ -218,7 +218,7 @@ static int hostapd_driver_init(struct hostapd_iface *iface) #endif /* CONFIG_IEEE80211BE */ /* Initialize the driver interface */ - if (!(b[0] | b[1] | b[2] | b[3] | b[4] | b[5])) + if (is_zero_ether_addr(b)) b = NULL; os_memset(¶ms, 0, sizeof(params));