From nobody Sat Jul 30 14:27:29 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Lw6D13Tnrz4XpVc; Sat, 30 Jul 2022 14:27:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lw6D130fBz4FrW; Sat, 30 Jul 2022 14:27:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659191249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WAARIPjfiAeicQ/5/Zbkf66Lo9CejI2zUnSK40fUOGc=; b=tH/c2v8KxDuAKgLsIDNenejexXIyz4o7UPziaOeOSYcCi+/JsBGDO7m2UnVCY/0EIAzBsZ ROZogxJnRWxI/QQQsKc1fI1i3CqTVwpgOHNQ5esZ9tKf+uVrHUpq6OjaeIBfs6iEs2gKdX Il7g0Zb3TODSa1QYEg4OHmeOCSJIJH2qjhfBqDWcfnEGWd+Cc3i6lJoBNB41Rqoc5qDjd9 HUph4TF63DMW1pFIwXnhhGDysKISD/yXKVb5WRHFCHUY/vz/325SPSOYTgD3WNKaoJr+3z I/QiQdHOz13TC7spH3KALeEl3MN32h1lLSLEZMxgEUO69tTVCfrD25Isdu8qag== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lw6D11nlqzHm3; Sat, 30 Jul 2022 14:27:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26UERTa1028674; Sat, 30 Jul 2022 14:27:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26UERTMN028673; Sat, 30 Jul 2022 14:27:29 GMT (envelope-from git) Date: Sat, 30 Jul 2022 14:27:29 GMT Message-Id: <202207301427.26UERTMN028673@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: d8dd6b329e46 - main - LinuxKPI: 802.11: add missing linuxkpi_cfg80211_bss_flush() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d8dd6b329e4653a2aca308102187797d44afc2c4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659191249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WAARIPjfiAeicQ/5/Zbkf66Lo9CejI2zUnSK40fUOGc=; b=OxkR1dGuxPoFoK6BZnozARbDWRjuspypjTwtu0R3nunMTYV8F49ey3kBifV7LVBlE3cvwC k1cUojJtYYSecB7Nhdhy3Lijb0KVMHZbeDpSz05VBF+NhiN30sNqnSyIg59H/lTRBR41UH eFgZT6f5MbihpfJWg+GxnkzYQXmSZD6D/gypBwXqi2eq8yMAaS+Bv17kGmG72GWfQ421EG JC648q3VcudHyF9qEsTMVY5uoT20S8m4wjIoV59X+7K4mVbCGN+GQYBtM2JQAKm0z7aQPm Ke/pDzhk9e9UOid21yXOW4rWiAzQO/rHSXIK8JgpogrA5EECj/GeLgJc3U66lQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659191249; a=rsa-sha256; cv=none; b=M50O2AEIsn7zamMEFgtUGN8Eac1p4j291uhuibNM2RfiJ4FH+EY5gRBxPxHVR6EnUJBE9H 08FvVzNlm6v9bT7/teaESVQFmVdc3B8TBEoJsH7h9KwzJ8V0vEw5d/qrS/3Ub8xeqY9fk4 R3HDLmNglCjVfRx9crvOLDUlvZaVQziW3+4uEANdW9gypNNhAN1iiF8E0TFsZuzs4hiHSK UBS2ag5aP/fC6tncLDN8yo90ZvEtCvI27F+O0xyv6qSZ9suaKocxTs6cPRhjCQtn95yBdS rMUYuAI6gBC1TTCAxMORymC8p+Y/2ZruZxQ7M45cYA0Xdc9oUXdsbJVpLDRwqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=d8dd6b329e4653a2aca308102187797d44afc2c4 commit d8dd6b329e4653a2aca308102187797d44afc2c4 Author: Bjoern A. Zeeb AuthorDate: 2022-07-30 14:23:14 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-07-30 14:23:14 +0000 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 --- sys/compat/linuxkpi/common/src/linux_80211.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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,