From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796092085; b=lH7i96vc2EIuwFwUgRG8D1z3BJNhDis800kEEhZDXzt2JqTN41MT9lJpISJAQrXojB3z Q6zbDbYDs5TQ4DL5SsiLyFzA81A+fDw5Lm7JunUQScTsFUaOKfaDyYLjrGGNViISucsIz R5MuV0YeWSTCyzKCTQgVNLR+gWtGRs2xSLVJ2i60oty+Z4CyIuL0xfjn9amtkh7osA3tF 6OLNAUxDzzTLTXUdktSv5LUoR0RYTLPj1QD4UITbQQWppOWXoM1nklhhKvNziZf4tadIQ vI5DHbEEoAS86L+UHauk9dt2PdOq+KTDd0JnR/ktLEDv4XLeWxlF8PRUe2Tvuq52Mhg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796092085; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=jTlv/YMFu+a5+Dlrj7VjRUcQz44/u2DRZGGduJa+JCA=; b=y6gSlhtMcB8qYOOPzu28s1v0PA9paN3asj6puE71swzZql8iRLgeiVqcEJmCHLhHjZIK RJ6SsBoWTlHNoiF4BFAJqMwukGZIaQ9W5J4iJUzRQNMKYLLCz521R8PYHiEP5buF8yxP7 c7JdkYmaYm6/pLHXutczoIBvO2RRQsBJlztBq/DrH/jODmnCWPupDATq9IyFdkrNDKcCO kzoudzN4JY40d4SMSeGQet312rD3L0gg4Ref1Es4dkeLB40vXfZvnqJCkWjDkszEE+H3a fPsKxoZ/wKYqI2KqUnUxJzANikZ7VSQOoHKdoPHk1XBnggUdwnLVhEbxFri3cXZQ7Wg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=uKLAGlQG; arc=none smtp.remote-ip=74.125.82.173 Received: from mail-dy1-f173.google.com (mail-dy1-f173.google.com [74.125.82.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6AEF1606A320 for ; Tue, 1 Dec 2026 02:28:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6AEF1606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=uKLAGlQG Received: by mail-dy1-f173.google.com with SMTP id 5a478bee46e88-38644aedba1so18973675eec.0 for ; Mon, 30 Nov 2026 18:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796092084; x=1796696884; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jTlv/YMFu+a5+Dlrj7VjRUcQz44/u2DRZGGduJa+JCA=; b=uKLAGlQG843Gr5H651EF7/uO+MfLEUrpyQPCQwFbtv4fjMqdI8fLTvm9/CARYd0b8O enHETcpX8y4/3dCeTQKJrhzJ64GEvjtFey6xgfL1gi89+dMWdkGrXdtKB9kI9YKHYd9S yOtLYRAlZHvaYyjkglM840P+LGHEjsB+1EP29Y17cxlQZQ7wNO0lX8/dls6rL5m5AjhS TtOA/gW00exGbZUbq0LCscGPlqAJ4HHSUwBh9JxH4zIzXgCrP683LIIunDmM04Yqwo/p AAJdZfz7x5lfFZIitt5VzCxarWOIKvQzr21Ul/WGUpKmEIMaqCgeqY9h6aC6VZWhkrrk BXrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796092084; x=1796696884; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=jTlv/YMFu+a5+Dlrj7VjRUcQz44/u2DRZGGduJa+JCA=; b=2UbjOYeQN7XS+EjLnUDzdMZlssaoGWuRTt9kTz58OTAyfwRixlnNJZfJu/oBbgsLD6 /F6/0zSulyI5i0ncoXf8YlutuS9aWbPpSkF8jkW8RHWl73moL1SC8F6Kh3U8DIq9RaeA V33v9JGrWFvTQh0tkyWmthahVipW9xY/u83sj6ZDzhSHWhuZCVkqD9j6sg2z1oPzjknU rn71CmxCai0d9ugIvPiTfOC1eJIqIK4yZYL8iJGK1xmIH8EfWRQUe8vsSkGfHKd+gOpv /5H9hVRAyDgt4APSKQK2mdYlILPYlFDQP8NRRslSCLRxE8BaeW9nhXxdCmnzxAugtGdy EVDA== X-Forwarded-Encrypted: i=1; AL+hErH8fFO6g052drNonpdFFVK7UEolIEWX9+jE2adk73j8SrvnX2DUPS3PKUXCbXbu4VRZpDF9vZNOGhUKkYO82Q==@vger.kernel.org X-Gm-Message-State: APuU4Z/FeV3v76TnygCKAWdPU48v8s8lcF8PgRgdbR/tFHIYJ2cEd4sR lsjZXZH5oQ9i54kemcDuybjeubMc7Ye2MEgX/8JIa7WW3w/uR+FQHvPmFxlspg== X-Gm-Gg: AZFdTZeqytz3XlbVJlDoxRCX9CK2ycIeBavn1KusLb6xw7MixE9Nt3yfX/3Zt5oIuDA qJJSFAx3xqr0jM8OI3sjRhmLwAWpJnfvbyenOS9HS6M28J1YwqG61TPBHZNB1EDKPnB/JHamsSl OTVXtIpzGkk8+dMOEuXtbmM8z26D2lUENluaKUs7p34W3UrwkxnliaGKTkvmTXf13V6IESOmvZG Bvxfrajlu24RhZ6sCoiYadIhpCdg9sD4suJ20zNxqwOsWaPEXm2a0Bo7wKHLxCnDb01tVzXE7A5 vMeLb4zGZi8uFXHiuUpwsmKgyhyvAd6Rd2+PCASuWto1Mmo7wJuoL4+sEswcZcWO2AZQPK2d2g5 PaEtJFSOY6C6uo15Xfyr1GAfBJ0HFz7t+3vGcOhviPYiMnA9GKXLydDn/sQtRnxnAso+bQjNKt/ a9yjMA9yrUUaY+0NtM+CN5Ll1O2klhIIG6dgMwwfSOM42hvrpLOpytArtJCDtVVYaon0Q/jaJeu Wrh0Pzm+1l6mxzEUl495XIdSPvk46ib/WaVHSyRTgBqcRyKgSgP3YWeQ/cdKOmtT16fy6dufyme 6si7Oi7vuT0r4kkDeejx5w8jHNHDoO+LOk6XNYGgVnh6hVE= X-Received: by 2002:a05:693c:8843:b0:386:b429:fe0 with SMTP id 5a478bee46e88-386b429175cmr23296266eec.16.1796092084417; Mon, 30 Nov 2026 18:28:04 -0800 (PST) Received: from henryzhang62-XPS-15-9500.. ([24.7.106.8]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385d2b93dd9sm116478427eec.24.2026.11.30.18.28.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 18:28:04 -0800 (PST) From: Henry Zhang To: stable@vger.kernel.org Cc: Henry Zhang , greg@kroah.com, jjohnson@kernel.org, quic_lingbok@quicinc.com, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org Subject: [PATCH 6.1.y 0/2] wifi: ath11k: fix ack and average signal strength Date: Mon, 30 Nov 2026 18:27:57 -0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: <2026112814-habitable-falsify-b2ab@gregkh> References: <2026112814-habitable-falsify-b2ab@gregkh> X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Backports of two ath11k fixes from mainline (v6.11), as requested in: https://lore.kernel.org/stable/2026112814-habitable-falsify-b2ab@gregkh/ 94f228ac4f5b ("wifi: ath11k: fix ack signal strength calculation") aadeee47e9d7 ("wifi: ath11k: modify the calculation of the average signal strength in station mode") On firmware that reports signal in dBm, 6.1.y adds the noise floor to an unsigned ack signal and to the average signal, so "iw station dump" reports incorrect values, including impossible positive values. aadeee47e9d7 applies as-is. The 94f228ac4f5b backport omits the dp_tx.h Copyright-line change, which does not apply to 6.1.y; its code changes are identical to upstream. Testing: - A full x86_64 kernel and modules build on top of v6.1.193 completed with CONFIG_ATH11K=m and CONFIG_ATH11K_PCI=m. Separate W=1 ath11k builds before and after the series completed without warnings or errors. - Runtime-tested the same code changes on a QCA6390 (hw2.0, fw 0x101c06cc) with Ubuntu 6.8.0-149. The stock and patched ath11k modules were built from the same Ubuntu source. The stock module's srcversion matched the installed running module, and the patched module's srcversion matched the module loaded at boot. - The affected calculations and field declarations in that Ubuntu source match 6.1.y; surrounding source differences do not affect the patched code. I have not booted a 6.1.y kernel. Representative station dumps from separate boots, using the same AP and frequency: station dump stock with the two commits signal -63 dBm -63 dBm signal avg 98 dBm -61 dBm last ack signal 102 dBm -60 dBm avg ack signal -97 dBm -60 dBm (Beacon signal average was -57 dBm in both boots. Both boots also completed 60 gateway pings with no packet loss.) Lingbo Kong (2): wifi: ath11k: fix ack signal strength calculation wifi: ath11k: modify the calculation of the average signal strength in station mode drivers/net/wireless/ath/ath11k/dp_tx.c | 16 ++++++++++++---- drivers/net/wireless/ath/ath11k/dp_tx.h | 2 +- drivers/net/wireless/ath/ath11k/hal_tx.h | 4 ++-- drivers/net/wireless/ath/ath11k/mac.c | 7 +++++-- 4 files changed, 20 insertions(+), 9 deletions(-) -- 2.34.1