aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2022-07-30 14:23:14 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2022-07-30 14:23:14 +0000
commitd8dd6b329e4653a2aca308102187797d44afc2c4 (patch)
tree574dc0e62e9e611b751c826c5c23fa1e709bde8e
parent206203f5301b1bda1ceabcb7ecb7c0eee3e6b07a (diff)
downloadsrc-d8dd6b329e4653a2aca308102187797d44afc2c4.tar.gz
src-d8dd6b329e4653a2aca308102187797d44afc2c4.zip
LinuxKPI: 802.11: add missing linuxkpi_cfg80211_bss_flush()
Add the missing implementation of linuxkpi_cfg80211_bss_flush(). without this we get unresolved symbols and drivers won't load. Reported by: eduardo, Berislav Purgar (bpurgar gmail.com) MFC after: 3 days X-MFC-Squash: b0f73768220e945deebebefc4a2d63ae6a3bfe19
-rw-r--r--sys/compat/linuxkpi/common/src/linux_80211.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index 66a0a3f87cfc..a98ed56fcdad 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -530,6 +530,31 @@ linuxkpi_ieee80211_get_channel(struct wiphy *wiphy, uint32_t freq)
return (NULL);
}
+void
+linuxkpi_cfg80211_bss_flush(struct wiphy *wiphy)
+{
+ struct lkpi_hw *lhw;
+ struct ieee80211com *ic;
+ struct ieee80211vap *vap;
+
+ lhw = wiphy_priv(wiphy);
+ ic = lhw->ic;
+
+ /*
+ * If we haven't called ieee80211_ifattach() yet
+ * or there is no VAP, there are no scans to flush.
+ */
+ if (ic == NULL ||
+ (lhw->sc_flags & LKPI_MAC80211_DRV_STARTED) == 0)
+ return;
+
+ /* Should only happen on the current one? Not seen it late enough. */
+ IEEE80211_LOCK(ic);
+ TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next)
+ ieee80211_scan_flush(vap);
+ IEEE80211_UNLOCK(ic);
+}
+
#ifdef TRY_HW_CRYPTO
static int
_lkpi_iv_key_set_delete(struct ieee80211vap *vap, const struct ieee80211_key *k,