| Message ID | 20250522111940.1718293-2-oleksandr.savchenko.dn@bp.renesas.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;
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=ng17GA6V;
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 4b35S34Hg0z1yF5
for <incoming@patchwork.ozlabs.org>; Thu, 22 May 2025 21:20:19 +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:MIME-Version:List-Subscribe:List-Help:
List-Post:List-Archive:List-Unsubscribe:List-Id: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=0X1EgQs9XxLszM/6mAQOfdSW6S3LuRqo59UMgVzIu34=; b=ng17GA6VXhvYqc
AKIGL2KY/R3msIx++84H8/QME9MbF0NtagbGt32p5Srt63tL8UMa3yrGaiK4HJNfJAEjMVkaaFqw8
zIFPo/w0QkhW7lCPiV/8qoQ2WrkFZtFbz0Tjf01CPYeOejOrvFcHUyyzXQEAbr5rpwVNIM+UMrJTY
hbMzHeRvLS1xGi16Xr5M0YZrTLAd/O4VKbpRsBunJHKU8+OZ8uaeQz9bsFAFzw+pSQd3U82j+JC8d
MdZvLvJnxrCztTQ/O/tvm27RNJjIoeHChIeRROquQv/H35BEG0o/BPFAaGcZ+o4L/YCbl4nsm9TYS
uFzyKsAXzBMsUR7431Kg==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))
id 1uI3xt-00000000pey-3koK;
Thu, 22 May 2025 11:19:57 +0000
Received: from relmlor2.renesas.com ([210.160.252.172]
helo=relmlie6.idc.renesas.com)
by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))
id 1uI3xq-00000000pdl-0Wf2
for hostap@lists.infradead.org;
Thu, 22 May 2025 11:19:55 +0000
X-CSE-ConnectionGUID: +Cv14FCiRWKqgIVE/zmzDg==
X-CSE-MsgGUID: 2GSl4OR5SwOJSZAC25XYjg==
Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152])
by relmlie6.idc.renesas.com with ESMTP; 22 May 2025 20:19:51 +0900
Received: from localhost.localdomain (unknown [10.14.100.17])
by relmlir6.idc.renesas.com (Postfix) with ESMTP id 4982D41E534D;
Thu, 22 May 2025 20:19:47 +0900 (JST)
From: Alexander Savchenko <oleksandr.savchenko.dn@bp.renesas.com>
To: hostap@lists.infradead.org,
Jouni Malinen <quic_jouni@quicinc.com>,
Johannes Berg <johannes.berg@intel.com>
Cc: Alexander Savchenko <oleksandr.savchenko.dn@bp.renesas.com>,
Sergiy Petrov <sergiy.petrov.ue@bp.renesas.com>,
Viktor Barna <viktor.barna.rj@bp.renesas.com>
Subject: [PATCH v3 1/3] nl80211: Remove obsolete ifindex
Date: Thu, 22 May 2025 14:19:38 +0300
Message-Id: <20250522111940.1718293-2-oleksandr.savchenko.dn@bp.renesas.com>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20250522111940.1718293-1-oleksandr.savchenko.dn@bp.renesas.com>
References: <20250522111940.1718293-1-oleksandr.savchenko.dn@bp.renesas.com>
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20250522_041954_272847_F113F1F5
X-CRM114-Status: UNSURE ( 8.05 )
X-CRM114-Notice: Please train this message.
X-Spam-Score: -1.9 (-)
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: When the ifindex of the interface is changed, the obsolete
ifindex is not removed from the drv->if_indices[] and have_idx() returns
false positive. Signed-off-by: Alexander Savchenko
<oleksandr.savchenko.dn@bp.renesas.com>
--- src/drivers/driver_nl80211.c | 1 + 1 file changed, 1 insertion(+)
Content analysis details: (-1.9 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to
Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[210.160.252.172 listed in
bl.score.senderscore.com]
0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to
Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[210.160.252.172 listed in
sa-accredit.habeas.com]
0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The
query to Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[210.160.252.172 listed in
sa-trusted.bondedsender.org]
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
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>
MIME-Version: 1.0
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 |
nl80211: Process RTM event per-bss
|
expand
|
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 2f8ed7428..f926ebaa7 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -1230,6 +1230,7 @@ static int wpa_driver_nl80211_own_ifindex(struct wpa_driver_nl80211_data *drv, nl80211_check_global(drv->global); wpa_printf(MSG_DEBUG, "nl80211: Update ifindex for a removed " "interface"); + del_ifidx(drv, drv->ifindex, IFIDX_ANY); if (wpa_driver_nl80211_finish_drv_init(drv, NULL, 0, NULL, WPA_P2P_MODE_WFD_R1) < 0) return -1;
When the ifindex of the interface is changed, the obsolete ifindex is not removed from the drv->if_indices[] and have_idx() returns false positive. Signed-off-by: Alexander Savchenko <oleksandr.savchenko.dn@bp.renesas.com> --- src/drivers/driver_nl80211.c | 1 + 1 file changed, 1 insertion(+)