From patchwork Thu Feb 8 01:02:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arowa Suliman X-Patchwork-Id: 1896391 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Vi0oA4qm; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Nts0uKib; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TVf0D5Q9pz23gM for ; Thu, 8 Feb 2024 12:04:42 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yO7afUUTSRieqWXkdelFEu2ZPtyindbwSmsdCfu+A50=; b=Vi0oA4qmeueRGH QmYZRcbkNCdt1q2TMqbji9lJGUvc9X1L68Gw4fSNRiq8dL8k3ysZFOPd/JqSF4y8ewN2SJJ23PC37 uh2SDExD0w5E/7CG8x+k5lbP7AeMXl/ozXa6gt7Uirn/3AJeYlcnkok/vOU5HhxwdGtRyK2KNO6t8 9Ar4OgZujkJEbZTh59YvNbmDHvn6u0faEkHAxpmoHoqmejY3/QRJJvE5I6Xx9FLd6RZCmCukC95Hd 7vTldhy1Pj6sCfQSVafSu2tcIoko8K+PvQLfNncKa4vZGnq/OjICA6RXnMr/uAQPwRxAgI4qSXP9y WxWH8lRVBObMGxlI4dPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXspp-0000000CMQ3-1oeS; Thu, 08 Feb 2024 01:04:13 +0000 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXspm-0000000CMPh-3GPx for hostap@lists.infradead.org; Thu, 08 Feb 2024 01:04:12 +0000 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6e11988708aso418864a34.2 for ; Wed, 07 Feb 2024 17:04:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707354248; x=1707959048; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=S6Sgm0rzHyvrDF8mkgy6clGQ9RK44Sx+6/S05b5STys=; b=Nts0uKibTuZ3+BOADXv7mJ8foNi9VoUb7W0/X4hrdVohgrLVzzVz1YFWGfWeshqwSN ilaHbdAlkMKT/uJQX3FjyciX5jpUUtdDGti+jFSeLU3I4hJae3mmz+64mUP41yTb6dM9 rs4xQ5tAPsySNLTgtev7p28unQQc6GOO6hSiY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707354248; x=1707959048; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=S6Sgm0rzHyvrDF8mkgy6clGQ9RK44Sx+6/S05b5STys=; b=XkbqHmGOJvrNiS7jcoKLisClzPCnhhMIxLQ+2cne8p3yheqBOR4VMoknHpLgiC9rqN D3l1Jt8LfpoFezREMmQVwdt4qcD0AhUOdxns/A0BhYD9bYkDHs75KQE9+CbzMGT1k0Hn +suBQMLkTI8c6WymRl8lqfnyvDxKzzwiQ/SFR6um5F/4POqM5f9XA/Dc66OLJIVyEWxz leJhrupsc/wXEJrQEjtUQU+9DB1SQtslq+rH90q21AzEB20sFstSkMEs4GMqc/0HSZBx wyeyscWodqkrJKMp15rAYHWyOFpEds7P8om7PhxKpay/PTkTN2jcUUik1lGJv3GYQoHU E82Q== X-Gm-Message-State: AOJu0YzCftiG2MwnSNTlrI6MqcSN4qIOvg+/Zb+oglAsYpzCRkrXp1DP KQW1UValt5dw0jQYa2BexreX0JPyu8eBn8c28S3YSckirXdx1prBTgvBzDt1HoCbQ/NYDRZBLGU = X-Google-Smtp-Source: AGHT+IE4A0iNl1roOeRlcndyVNVlKA0oUp3ojUv5K5Jt258hwNeg+w0rknUTx5wCqOGGQhUXQKlEOg== X-Received: by 2002:a05:6358:5922:b0:178:9c71:f89a with SMTP id g34-20020a056358592200b001789c71f89amr5106522rwf.9.1707354247732; Wed, 07 Feb 2024 17:04:07 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUKB79kRC6Pp7WEHqXSvhauI8QESV5Zqx7bRWyll2mr7ixLH2mQ1d7oYDcyIzeeZozCozaiUnhT6+9ES067me6RX2M= Received: from arowa.mtv.corp.google.com ([2620:15c:9d:4:8cf2:2662:e02c:7455]) by smtp.gmail.com with ESMTPSA id g13-20020aa79dcd000000b006e03a640007sm2309885pfq.71.2024.02.07.17.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 17:04:07 -0800 (PST) From: Arowa Suliman X-Google-Original-From: Arowa Suliman To: hostap@lists.infradead.org Cc: Arowa Suliman , Arowa Suliman Subject: [PATCH] wpa_supplicant: dBus: Flush Sate Property Change Date: Wed, 7 Feb 2024 17:02:40 -0800 Message-ID: <20240208010301.2630340-1-arowa@google.com> X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240207_170410_869120_57C94A16 X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.3 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The "State" property in wpa_supplicant helps track important WiFi connection events (like when the security key is being updated). Currently, updates to this property aren't always sent right away. Th [...] Content analysis details: (-0.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 T_SCC_BODY_TEXT_LINE No description available. -0.1 DKIMWL_WL_HIGH DKIMwl.org - High trust sender -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:32d listed in] [list.dnswl.org] X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The "State" property in wpa_supplicant helps track important WiFi connection events (like when the security key is being updated). Currently, updates to this property aren't always sent right away. This delay can make it difficult to accurately track the different stages of the connection process. This change ensures that any updates to the "State" property are sent immediately. This will provide a more accurate and real-time view of the WiFi connection process. Signed-off-by: Arowa Suliman --- wpa_supplicant/dbus/dbus_new.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/dbus/dbus_new.c b/wpa_supplicant/dbus/dbus_new.c index 00b38edf5..8db3407e9 100644 --- a/wpa_supplicant/dbus/dbus_new.c +++ b/wpa_supplicant/dbus/dbus_new.c @@ -2327,6 +2327,7 @@ void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s, break; case WPAS_DBUS_PROP_STATE: prop = "State"; + flush = TRUE; break; case WPAS_DBUS_PROP_CURRENT_BSS: prop = "CurrentBSS";