git: 3d9f2164482b - stable/14 - LinuxKPI: 802.11: optimize mo_bss_info_changed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Apr 2025 14:37:19 UTC
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);