Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp518378rdb; Fri, 26 Jan 2024 02:46:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhPdWWHb49U26H09SY5J9yOxXkPQH+QniJq37aXfm+xu0nWiZl0C21qsDOlUOx5VdfY8ua X-Received: by 2002:a17:90a:1148:b0:290:8bbf:e4c0 with SMTP id d8-20020a17090a114800b002908bbfe4c0mr655288pje.39.1706266017615; Fri, 26 Jan 2024 02:46:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706266017; cv=pass; d=google.com; s=arc-20160816; b=spHEynBGvyycLBCNs+jeApP3Mjxy4PUgd4G/GnScS9OcDa2j6tCzyZP56z9sWty3vr OEZra+b3crmsvGwxs8zfExHDZ+Pk3jdF2qkERR19hI1D2g7gLrKOqhx8sEQ8n6Vsw6Ni CWyZGTHIlcaA0nj2w0xc1TELZ7LEZr1XlHnzBwXHZN/8SY83jFxhiZq01en6P5Y8Qm0q whlYpsKwKgYdyeaB0WkAVa49KT7jJHam/BqSBvjJS9emsWG7Qn396V9XJlO6a/mRnyZ7 SCambZVME/zsUVdQUjG0yRhnSf7pyOTQywLFav82j7EjvaLvotx4jdBM02tA6beUzDMI VDSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=krVn4OeUL/ZtKJj1q/PKY6xPFZUbhi/ZPPKjnOMh/OU=; fh=FOXa89fSEHiX4D7o/xBWfKbeQlXdTRWxyfDge8uBynE=; b=iu94ONXmXm7t/u5JjGPVtx0aNK5aQR+u3qKqMf4qfAYVylL8oZ2dQb9PqdemTYI7AV BjIikS9Xjb5j/RaveaJCkmCSGTnfvC1RYX2UEZ4bqsNxEP8Y4yMH1hHl/sg8NMauk2VT HM7CUaVVx4ou8sdqm2W6Yh+yS6Gh8vV+DimlhqXID6gb5XGgMyPx5KFhuLNp1rvBKPV/ TI+WbwDE3VD4H5isFJK7uU2z/koxmKv42u9b1jGJsPvZrn86SefOAf9wZM6DAlj4EdPU /GOfVrxofJHtZu0sZhF3sFjgg9pB2l9moEFOPVrQHf0+sv2PSwZMt+oilTyXWZTZlCL1 DXoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Sa8uny3r; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-2550-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2550-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 91-20020a17090a09e400b0028cd4e6e480si964852pjo.22.2024.01.26.02.46.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 02:46:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2550-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Sa8uny3r; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-2550-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2550-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 116E92856EC for ; Fri, 26 Jan 2024 10:46:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BD2F12B6C; Fri, 26 Jan 2024 10:46:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Sa8uny3r" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) (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 A90FA12B6F for ; Fri, 26 Jan 2024 10:46:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706265997; cv=none; b=hHnQl8xy/pRbD0vByFEoW8e+zq1XTWwtNIiXhDRKY0BoNR/p33kEutdl8/WiOJcykYs/lZUBKfAq8sRPseEc3HbQHEb6yRhhHDvRblTjSSvTeM453C2w3s3BFYCLsLOSn8Qzpmma1nYPvGMRfcrxIgWFwvcGwIZOBa+nF16uI1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706265997; c=relaxed/simple; bh=lv7lTnch23M14rjMsV/eshYaQgNIUJk4h2Njl3Rn63M=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=j9M5pW8Sur01iryGFo7XeFzRcMTmT0Cg4+q60B0vCnAdi8PLaslOlliPX30xx3fcCQCY4WeuMlfE1Z15ErYxb95Zh6nblrvQUhno2qj+1G4+n+LXSGGDzNvACzE/X68GDIIys8fwo6KCpP22yKQxGmKrSK61pQFRlWqwWpcKPQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Sa8uny3r; arc=none smtp.client-ip=209.85.219.42 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 Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-6818f3cf00aso3001236d6.0 for ; Fri, 26 Jan 2024 02:46:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706265994; x=1706870794; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=krVn4OeUL/ZtKJj1q/PKY6xPFZUbhi/ZPPKjnOMh/OU=; b=Sa8uny3rhBmvR6hNMkWPkVNd5JXuWfvng5ugRldp9vkAIKF7V7XQ/iwIPKiDyWhlOp zuQk0mkUKEa38O0e60pS0VCk+nev7Ci+nXX58kRCJHVJz1DGvGpzE7adpvGIvoc1XRer KulaWV9a+35WEJEC2D+tqjsoPouxOulXhFqQwzikxwm7yxowdYrCyaCtjZe73TU+1IMS NaA+8kAFzk9nDRKk9RH7rz8a+6en3FKpJBBQaczaG7KsQxAQeA+1L209N6kglscdRt+Z 2ou4ISKQ44JsYkwdvMD5G358NUnjz29uzgUB09zfJwWw3Qsna3SwgaWgeqT/ipQgZLX3 bRWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706265994; x=1706870794; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=krVn4OeUL/ZtKJj1q/PKY6xPFZUbhi/ZPPKjnOMh/OU=; b=C1fyNM58IkOhi/gaNiuSqzBpn92I5K8nvmIkHCoQT2nL0qrFbGbjQ09fUwyVI309zC 4T0AJfgjP0gEOJdhGW+m/3OmGcRB8GOxk/ZCAUsaLDg6CKyFUOP2tKzX0yyfd0RdhlvD oml7MKPRnaQJlYpdGs6lXmmx/SfKws+bX8WwCfSlOAgb640Ulc/BThjAaX6CfYW2X4g6 JaNEzPr73n1+L/Kgn3bl8JhQSUyHnWSBRZ7w6a5aYXtQn8cv/Xx6NYEuEREarGn+aO/B 8XaRJTsKyRC//vfSn7Z99UVt4WjPW/WsPOaoXojOUO7CbeqvE68AsldonAkBCv9FOAsP 8Bbw== X-Gm-Message-State: AOJu0Yzte/050DflAM+CFR7Wauw+Db/G3l7X7TvCqxNhIZOw29CiJn6y FHM+iHQmTkB+Vmu/ty9DchLRhNX4y4xe2zSQ3Y4kBaCEuoAyfjS2O/5bFYDMM0q1CxAMhWQ52Ce 0mkSRPydp9FKgfovZgksFU734q2fwE+PRElc= X-Received: by 2002:a05:6214:2249:b0:686:ab0f:9ad0 with SMTP id c9-20020a056214224900b00686ab0f9ad0mr1211997qvc.124.1706265994387; Fri, 26 Jan 2024 02:46:34 -0800 (PST) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Petko Bordjukov Date: Fri, 26 Jan 2024 12:46:23 +0200 Message-ID: Subject: Re: WiF Transmit Power Control (TPC) Regulatory Requirements? To: b.K.il.h.u+tigbuh@gmail.com Cc: wireless-regdb , linux-wireless , thomas.huehn@hs-nordhausen.de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, The only project I've heard of that implements such functionality is https://github.com/thuehn/Minstrel-Blues. On Thu, Jan 4, 2024 at 12:02=E2=80=AFPM wrote= : > > Ideally, TPC should be a fully automatic mechanism that reduces > transmit power between the two points to as low of a level as possible > while delivering the same quality of service. The purpose is to reduce > the excess headroom in each link. I.e., if you could still link with > 65Mb/s towards a given direction using 14dBmW, you should not transmit > with 20dBmW. > > Some only set the AP TX power globally (i.e., same towards all of its > connected clients at the moment) to tackle the hidden/exposed node > problem, but again must do this adaptively and change this constantly > without human intervention. There exist multiple advanced algorithms > for this, some proprietary tuned for corporate deployment. > > Actually, if we accepted automatically retuning tx power with iw based > on actual link stats of momentarily connected clients every 60s with > cron, this could be added to OpenWrt pretty easily. > > > Class A devices control their transmit power within =C2=B13 dB and clas= s B devices control their power within =C2=B19 dB. > > - https://www.litepoint.com/blog/wi-fi-6-ofdma/ > - https://www.cisco.com/c/en/us/td/docs/wireless/controller/technotes/8-3= /b_RRM_White_Paper/tpc.html > > On Thu, Jan 4, 2024 at 10:42=E2=80=AFAM Johannes Berg wrote: > > > > On Thu, 2024-01-04 at 10:07 +0100, b.K.il.h.u+tigbuh@gmail.com wrote: > > > You can find a wording in most such regulations that if TPC is not > > > supported, the maximal TX power must be reduced by 3 dBmW. Hence in > > > all such cases, the entries in db.txt contain 3 less than the maximum= . > > > > > > If, on the other hand, you know of a country that specifies that > > > devices lacking TPC may not use the band at all, all such band entrie= s > > > must be omitted (commented out along with a URL). > > > > Yeah, that's how we (currently) handle things. > > > > I'm not even sure what the requirements would be for "TPC" to be > > implemented, tbh. > > > > > > As far as I know the kernel doesn't have facilities to support TPC = or > > > > transmit power control, > > > > Right. I have, however, heard the interpretation that the fact that we > > have - even if nobody uses it - the "iw set txpower" command means that > > we *do* have TPC ... Not really sure what to make of that though. > > > > > > nor does the wireless-regdb database. > > > > Correct. With the new regdb format we could add something that would > > enable these ranges in the kernel only with some additional > > requirements, but > > (a) we don't implement that now, and > > (b) I don't know what the requirements would actually be, e.g. would > > it be enough that the driver promises it implements "TPC" in some > > way? Or even the manual setting? > > > > > > And so > > > > in the database we would either omit rules that require TPC, or inc= lude > > > > alternative rules (as specified by local regulations) not requiring= TPC. > > > > Am I right? > > > > Right. > > > > johannes >