From nobody Sat Apr 30 08:03:27 2022 X-Original-To: dev-commits-src-all@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 3365F1ABDA89; Sat, 30 Apr 2022 08:03:28 +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 4Kr20w0znXz4Z9W; Sat, 30 Apr 2022 08:03:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651305808; 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=zN+FbSA5BiqVQNMnbjArgy50KPJMHDN7KE+jaY6ADQk=; b=aunivJavn7A1sF+JmbUtdTiNsnTMEluB+cjbgxcjTkPQssYOc6PgVDAiXxb2BEt8v3ldEr c7KuG/3sDu/FVsWUMndF8VomebyWKbc6Cl2f4pUq0+5RyeJwCZra8mdSvvw1mHbgeK4QcG M/DEZGUIFKLLMPLmGwINfOtnYqFcoEp2+P91f4CYgqoWnTaOzP4vkOx4tp/+/Qa0+fnqTK Ioi5um8Rdwj00hDXYMxrvgqht6aPNgQqjWHQizA22PEyLs9k6MJFinGJ6uWQ8cCKF0BdQs 7Q7zsz0GMZn/+RCj+X87ADq148rijtLN2nF5bWdk+FdGaZVTGwcLTBqWc4fbXA== 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 027E41D9FA; Sat, 30 Apr 2022 08:03:28 +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 23U83RNa058014; Sat, 30 Apr 2022 08:03:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23U83RU3058013; Sat, 30 Apr 2022 08:03:27 GMT (envelope-from git) Date: Sat, 30 Apr 2022 08:03:27 GMT Message-Id: <202204300803.23U83RU3058013@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: 3540911bfdd8 - main - LinuxKPI: 802.11: use ieee80211_beacon_miss() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 3540911bfdd83ce69d1c436f6773becefef403fa Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651305808; 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=zN+FbSA5BiqVQNMnbjArgy50KPJMHDN7KE+jaY6ADQk=; b=K41GDW+KJfSFs74Dh4c4DReJT640SNoz3SUR172lMR02YfNhZ0NlLoTYnxFR1CtrQ+Z9FF 2m793EMnS4R0ByL8jz+Cwsu2jo17lkx0cCzWPIiRiw8ycHxxqMaQSR6Rt1u+YzFYKmuieh BEW/G+3B1qzfLZZFD8VRqtiY4r3C7KnrFUeluveazeEA2b1VSMjK5NtR+Rl09KpLuaT+04 rLvmfc3QUJL4XotNCkrPTqHg53UJWS11RTU2Scw7hFpcHOF84mfiPHkMK/yFqjEMgsZ73w XE3XE64b5YKwPgTTSi/RmaHsW0f25Z53/n08RDepAC/eYC8QknPUkOOh/n7W/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651305808; a=rsa-sha256; cv=none; b=xElvmibwBzh7QeRdEawhEJK4lZjoo9d6yUD08DVpU6grq5R9bI6IRB+s5uqobWgUNsNhEq y7zIv+Qp+3CWF7OTCqD3qQBIR8S6kOgvwV0CCYx3JV6HCdtbBNPF0I+T4u+CwyIAkYm+wb ixXMnfkPQsBiF2k4lkNm+Lwmljn4NbY8gej6stCLD7SAvZC0ckKCLprD+4CD0oP0KSqgTf ILI9Vux+O6IxSZW27fsc3Oc7H9eMaSH/JP6gX/teSW583Ft/94vIWMSQcLyVmEYHbVV5FU shZnL241YssY8+AQrcUUgB4jMeheKu+n/nv+nhemptI9oGCedu5ApM1/4JYPQg== 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=3540911bfdd83ce69d1c436f6773becefef403fa commit 3540911bfdd83ce69d1c436f6773becefef403fa Author: Bjoern A. Zeeb AuthorDate: 2022-04-30 07:57:34 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-04-30 07:57:34 +0000 LinuxKPI: 802.11: use ieee80211_beacon_miss() In ieee80211_beacon_loss() call into net80211::ieee80211_beacon_miss() rather than manually bouncing our state. That should give us the ability to send a probereq and see if the AP is till there rather than right away going to scan. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/src/linux_80211.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index d2608792f8c4..6d67c29ed7a6 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -4459,27 +4459,16 @@ linuxkpi_ieee80211_beacon_loss(struct ieee80211_vif *vif) { struct lkpi_vif *lvif; struct ieee80211vap *vap; - enum ieee80211_state nstate; - int arg; lvif = VIF_TO_LVIF(vif); vap = LVIF_TO_VAP(lvif); - /* - * Go to scan; otherwise we need to elaborately check state and - * handle accordingly, e.g., if in RUN we could call iv_bmiss. - * Let the statemachine handle all neccessary changes. - */ - nstate = IEEE80211_S_SCAN; - arg = 0; - - /* We should be in RUN. Can we assert that? */ #ifdef LINUXKPI_DEBUG_80211 if (linuxkpi_debug_80211 & D80211_TRACE || vap->iv_state != IEEE80211_S_RUN) ic_printf(vap->iv_ic, "%s: vif %p vap %p state %s\n", __func__, vif, vap, ieee80211_state_name[vap->iv_state]); #endif - ieee80211_new_state(vap, nstate, arg); + ieee80211_beacon_miss(vap->iv_ic); } MODULE_VERSION(linuxkpi_wlan, 1);