From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 770563BD62A for ; Thu, 9 Apr 2026 15:27:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.129.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775748438; cv=none; b=IhpHgjlpUeNzO8JKQ78KgTu+KwuMDzPHnNbXnQ7CzBjTbyKKb520GVAs/dg0ojrVvV/EdUB0N4haD3PbPUaXGwMvM0R3rRGWH5S92qEeeQjW00HHkHtuumEwoMGx/iK/z21vsfr/tLU03woNBq/ocu++jTyOz/Z6jnITy8KOzMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775748438; c=relaxed/simple; bh=bENqwAGIWd+5rU4iDjnQ7Wgk7w2A3yQwftCXQFWN2Jo=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=m1lOvaWhIaflIgQjH6P7amqmtTlWlN2fCgGS8ShcBQikYtpMWeGtxpeH2EvgPnJB0hKrplARVs202hST3WrSfbRnu5XRAM0oAONQ7ho6HJCpg6VObqmOqa+yPPZxZQxlry5N8rrxd6i7+NP02sHSHTbXKaxqD2mlt5o8l4rnT18= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=candelatech.com; spf=pass smtp.mailfrom=candelatech.com; dkim=pass (1024-bit key) header.d=candelatech.com header.i=@candelatech.com header.b=D7PwVn6+; arc=none smtp.client-ip=148.163.129.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=candelatech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=candelatech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=candelatech.com header.i=@candelatech.com header.b="D7PwVn6+" X-Virus-Scanned: Proofpoint Essentials engine Received: from mail3.candelatech.com (mail.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id EBDBB10008B; Thu, 9 Apr 2026 15:27:08 +0000 (UTC) Received: from [192.168.100.159] (firewall.candelatech.com [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 853A713C2B0; Thu, 9 Apr 2026 08:27:06 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 853A713C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1775748426; bh=bENqwAGIWd+5rU4iDjnQ7Wgk7w2A3yQwftCXQFWN2Jo=; h=Date:Subject:To:References:From:In-Reply-To:From; b=D7PwVn6+2eKMlrYohrtH7VOQBTdu5iylJdH35O+BQeDdl0rrZ8OrNnPBOR01OF3Qz ee4WQt6eeTPvd8FhBNNvuuvjHta8ZPDpUmeNc2JR116QJEcZpsGYwLZ8AIKybqJ+XA 4I3LVEYoGSDGeHiTT1BbE7Z5HDmHdM6kBDpkcohA= Message-ID: <1e00d8c4-9d97-da1e-5cbd-cf336900363b@candelatech.com> Date: Thu, 9 Apr 2026 08:27:06 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: nl80211: missing minimum TX power attribute causes misleading userspace behavior To: Steffen May , linux-wireless@vger.kernel.org References: <9ec6fd0b1c7392fce8c913a46c1b197e@posteo.de> Content-Language: en-US From: Ben Greear Organization: Candela Technologies In-Reply-To: <9ec6fd0b1c7392fce8c913a46c1b197e@posteo.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-MDID: 1775748429-SmZojdT5SLkP X-PPE-STACK: {"stack":"us5"} X-MDID-O: us5;ut7;1775748429;SmZojdT5SLkP;;0e0cb912402f57d70bfea4d5fa2fe9ab X-PPE-TRUSTED: V=1;DIR=OUT; On 4/9/26 01:05, Steffen May wrote: > > This issue was discovered during the analysis of two documented OpenWrt bugs. Bug 1 is a type comparison error in LuCI wireless.js that causes 0 dBm to be > displayed incorrectly. Bug 2 is in ucode mac80211.sh where the value 0 is treated as falsy, causing the router to transmit at maximum power instead. Both bugs > are proven and reported. > > During verification of Bug 2 on five devices with three different chipsets, it became apparent that the hardware floor is device-dependent and completely > unknown to the stack. This is not a bug but a missing feature. > > Because the floor is unknown, iwinfo generates selection lists containing values that have no real effect on the actual output power. Userspace accepts > configurations such as 0 dBm even though the hardware cannot apply them. The system reports success while the hardware remains at its minimum supported level. > This creates false assumptions. > > Measurements > > The deviation between the requested transmit power and the actual hardware floor is not constant but depends on the hardware: > > Device                Chipset            Requested     Actual floor Difference > Buffalo WZR-600DHP    Atheros AR7161     1 dBm         3 dBm          +2 dB > TP-Link Archer C7     Qualcomm QCA9558   1 dBm         5 dBm          +4 dB > OpenWrt One           MTK Filogic        1 dBm         1 dBm           0 dB > Cudy WR3000           MTK Filogic        1 dBm         1 dBm           0 dB > GL.iNet GL-MT6000     MTK Filogic        1 dBm         1 dBm           0 dB If you set that tplink to 1dbm, and then read the reported power, does it properly show 5dbm? If so, that seems good enough? If not, then we should fix the reporting, but having a floor reported doesn't seem helpful to me. There are lots of things that can affect actual txpower. User-space can at best offer its suggestion of preferred txpower. Kernel/driver/firmware/hardware then makes final decision. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com