Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2025 14:37:19 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3d9f2164482b - stable/14 - LinuxKPI: 802.11: optimize mo_bss_info_changed
Message-ID:  <202504181437.53IEbJCF092020@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=3d9f2164482bd885e8b5ad0d001d7eb0c16358e5

commit 3d9f2164482bd885e8b5ad0d001d7eb0c16358e5
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-04-10 15:10:38 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-04-18 14:36:01 +0000

    LinuxKPI: 802.11: optimize mo_bss_info_changed
    
    In case we are not announcing any changes there is no need to do a
    downcall into the driver.  Catch that with an early return.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit ae8c3b6509c66d03cb68dc6f8bbad43acbc8c977)
---
 sys/compat/linuxkpi/common/src/linux_80211_macops.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211_macops.c b/sys/compat/linuxkpi/common/src/linux_80211_macops.c
index ff3959340af7..c5720142401d 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211_macops.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211_macops.c
@@ -554,6 +554,9 @@ lkpi_80211_mo_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vi
 	    lhw->ops->bss_info_changed == NULL)
 		return;
 
+	if (changed == 0)
+		return;
+
 	LKPI_80211_TRACE_MO("hw %p vif %p conf %p changed %#jx", hw, vif, conf, (uintmax_t)changed);
 	if (lhw->ops->link_info_changed != NULL)
 		lhw->ops->link_info_changed(hw, vif, conf, changed);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202504181437.53IEbJCF092020>