From nobody Thu May 9 03:30:09 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+111780+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+111780+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1701140826; cv=none; d=zohomail.com; s=zohoarc; b=nnpLzGUOZf9nVvGr9Z5BKzAchVGejfB6gFneK6lVFfOk2mZcuNNav9jE3ergls6IFAt0gvh3GA08S/1/IQdGr0l/d0VJm86FDbNVp8kw+a4dN/JHjTSmShC3uMBs23qSTrhj0zM/fcas6W/pFflh0ZLW5BCN2jaaz/1oZpXTpJA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701140826; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Sender:Subject:Subject:To:To:Message-Id; bh=H0b2ZbjmsOxNVgcjmlQAydg9YxF59LU7NV3K1da+Jdc=; b=W1FyDV8Kv3sM7/t/eowclwpuABruPljl7+hrPBIcFEXPcBoJLBZopeJZ3E/X1kJOAjp5za8hmUMFo2A1Tb1G4ScJnVk0+ZImwm1pPyE3oEQ5j7i4kheLpLuHEOd6KJ2V9t2qCTpQWcxUJ9aCSMYC7RVKKk8ytYA+Ui2MBAEXlks= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+111780+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1701140826567561.8037489455862; Mon, 27 Nov 2023 19:07:06 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=b4K/Vf5gxB0UQoQ74GZ/Mi3D4kKkXeU8NcTE/d8L434=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1701140826; v=1; b=RThEMIvANxOVtrth7sO8ji1lE9UJBXYv5dwd86Pb3sQQc66flCGKXydRMD8mphUFTNwmrh4i BG1q7FUEObFp5nEG0GXokboFOagnGYB1O2buKd71YtSstZ1VoZfsoRD8614LRKYAnGvQ1XVPDgS xjdYXb0baOY65727WpRubeRg= X-Received: by 127.0.0.2 with SMTP id FsFPYY1788612xmfiqSj2f6T; Mon, 27 Nov 2023 19:07:06 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.24118.1701140825347610230 for ; Mon, 27 Nov 2023 19:07:05 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="373010332" X-IronPort-AV: E=Sophos;i="6.04,232,1695711600"; d="scan'208";a="373010332" X-Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 19:07:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="941784500" X-IronPort-AV: E=Sophos;i="6.04,232,1695711600"; d="scan'208";a="941784500" X-Received: from hengluo-dev.ccr.corp.intel.com ([10.239.153.138]) by orsmga005.jf.intel.com with ESMTP; 27 Nov 2023 19:07:03 -0800 From: "Heng Luo" To: devel@edk2.groups.io Cc: Saloni Kasbekar , Zachary Clark-williams Subject: [edk2-devel] [PATCH v2] NetworkPkg: Triger regularly scan only if not connect to AP Date: Tue, 28 Nov 2023 11:06:59 +0800 Message-Id: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,heng.luo@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 6MAOwyNGVvqN1iJBdTq6d2Ewx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1701140827158000001 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4605 When UEFI Wi-Fi is in BSS connected state, the platform is considered as a static and Wi-Fi roaming support is not needed. Wifi connection manager should not initiate Scan requests in this state affect BSS client connectivity and must be avoided. Triger regularly scan only if not connect to AP. Signed-off-by: Heng Luo Cc: Saloni Kasbekar Cc: Zachary Clark-williams Reviewed-by: Kasbekar, Saloni --- NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrImpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrImpl.c b/= NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrImpl.c index d1182e52bd..4c5460b65c 100644 --- a/NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrImpl.c +++ b/NetworkPkg/WifiConnectionManagerDxe/WifiConnectionMgrImpl.c @@ -1506,8 +1506,8 @@ WifiMgrOnTimerTick ( } =20 Nic->ScanTickTime++; - if (((Nic->ScanTickTime > WIFI_SCAN_FREQUENCY) || Nic->OneTimeScanReques= t) && - (Nic->ScanState =3D=3D WifiMgrScanFinished)) + if ((((Nic->ScanTickTime > WIFI_SCAN_FREQUENCY) && (Nic->ConnectState != =3D WifiMgrConnectedToAp)) || + Nic->OneTimeScanRequest) && (Nic->ScanState =3D=3D WifiMgrScanFinis= hed)) { Nic->OneTimeScanRequest =3D FALSE; Nic->ScanTickTime =3D 0; --=20 2.31.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111780): https://edk2.groups.io/g/devel/message/111780 Mute This Topic: https://groups.io/mt/102844565/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-