Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1438448

Re: [PATCH] cfg80211/nl80211: add wifi tx power mode switching support

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Wei-Ning Huang <wnhuang@google.com>
Newsgroups linux.kernel
Subject Re: [PATCH] cfg80211/nl80211: add wifi tx power mode switching support
Date Thu, 07 Jul 2016 11:40:01 +0200
Message-ID <rSdWN-55O-25@gated-at.bofh.it> (permalink)
References <rvlgJ-2Wk-5@gated-at.bofh.it> <rvu0G-31O-17@gated-at.bofh.it> <rvJ9n-1uU-3@gated-at.bofh.it> <rxuzf-1uk-3@gated-at.bofh.it> <rxHd8-5ub-17@gated-at.bofh.it> <rxVg7-2MC-17@gated-at.bofh.it> <rOYUi-5RL-25@gated-at.bofh.it>
X-Original-To Johannes Berg <johannes@sipsolutions.net>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=0UiDw3jACNB++9MrXD2pTlviHWfu9MgzG/teutoyUQk=; b=Kwz/uQglg3wvu+VPFlQFEYyjuDw8ghuq5NTm9eL1AHDD4SlAo0YIAqmx0yPiZK8Xfp nlUolHKh9lPcsBzTLX4pgRazoE0D6AnFP3VpjwD/WbEqaiVjilpjWey/1eYT9Dzr2vgC OsyoHexSph8K07/GUlOveC9YUn11Nei0EaujQ7nq749ajz/uwrjAq4QKQx4g1a58rfX2 QDoffwST4XfPD+dgPGwf/QRdsZwm+Y7bi8SqUiP3gjgizYNv+nIlq7cr0A8I8aPWp6oV eEmtO7L2nyMZNHFosaKpJkHuWS6wq29yodFM5YNZMv2y4oHwG2GI5dhjNWW9B6HEacCb FbHA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=0UiDw3jACNB++9MrXD2pTlviHWfu9MgzG/teutoyUQk=; b=M8uUNKvJndAmSSHWV/yYU+ZHv65Vs0l3AEpKmsMZepzdawaO/oGl7Wg5lMbM1jqYvg fdWH4h/OtUF8cNiMbH6UoBQVdYB1TVKFVfsTSdgukXH2HJoRBYGeubKePY76ir8qMFRu QMXHXIiphMWJzheoMyDQbNqdPWk9ltq4ZzPvz5/cmxF7EYXKaEg4Py/70rcTV37Ltgxw pQcj7MXLXG3WlcYRznXJa7v4e/hd7vMHe5lMHiEofR0mEIvJpGcBEYQcfSx2m8iPyaPw S0M2VbghfaXnykb9H1JFyWva6WUZVHuH2WwGRID6L0xRHNrOaI+slZHeLx7w714wlp3l f4sA==
X-Gm-Message-State ALyK8tJIXCOk0xTvnngU5LjumB4LYI99D3RWt7YVrcF0jRqWwNI6KNbtK2DvFQIT0ZpyYcrOHRm0ekkjrka+H81K
X-Received by 10.31.248.6 with SMTP id w6mr5185076vkh.30.1467883814398; Thu, 07 Jul 2016 02:30:14 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8BIT
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 61
Organization linux.* mail to news gateway
X-Original-Cc Dan Williams <dcbw@redhat.com>, Linux-Wireless <linux-wireless@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, Sameer Nanda <snanda@chromium.org>, Todd Broch <tbroch@chromium.org>, davem@davemloft.net, netdev@vger.kernel.org
X-Original-Date Thu, 7 Jul 2016 17:30:13 +0800
X-Original-Message-ID <CABicQ-VVhNwbL6BxsTHa2xhEsgVCpudv9+uLO=PngBBZ+VvDYQ@mail.gmail.com>
X-Original-References <1462430663-9448-1-git-send-email-wnhuang@chromium.org> <1462464478.23962.12.camel@redhat.com> <CABicQ-VWrRG+0rEEF0GxUTPixSbkA18Gq4b5hbgph60SoEQ+2Q@mail.gmail.com> <CABicQ-XWm=Rxdj3at4+-0OAWn=T7qOTWEaTK=JY7LDOmcN87yw@mail.gmail.com> <1462991620.22404.5.camel@redhat.com> <CABicQ-UeU-8PPdK9Je51j_KD-BH8G1HuOjo0yZLcNBQgtJsyTA@mail.gmail.com> <1467111448.2493.15.camel@sipsolutions.net>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1438448

Show key headers only | View raw


Hi Johannes,

Thanks for the reply.

You are right that the physical antenna does not change.
When I refer to 'calibration data', it actually corresponding to how
mwifiex adjust the per-band tx power. For mwifiex, the per-band tx
power is pre-calculated based on need, and stored in DT, a vendor
command or std nl80211 message is sent
to tell the driver to switch between two set of "calibration data".
I'm aware that iwl7000 is using a vendor command to do this as well,
but instead of pre-calculate required tx power info, the tx value can
be passed along with the vendor command message.

This patch was sent originally to standardize the requirement of
sending a vendor command to the driver (so it'll be a standard nl80211
message). However, we have decided to move along with vendor command
for both mwifiex and nl80211, so this patch is not needed anymore.
Thanks for the comments!

Wei-Ning

On Tue, Jun 28, 2016 at 6:57 PM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> On Thu, 2016-05-12 at 17:34 +0800, Wei-Ning Huang wrote:
>>
>> Johannes, I feel like being able to set calibration data at runtime
>> is something common to all wireless drivers, so instead of using
>> vendor commands what do you think if I pass the calibration data name
>> instead of using those magic constants? This way, userspace does not
>> need to know the details of what band/range power limit the driver
>> supports. It allows for flexible driver side implementation and
>> easier for userspace to control.
>>
>
> Sorry - I dropped this thread accidentally.
>
> I'm not really sure I understand the situation fully, but right now to
> me this seems very strange.
>
> The physical antennas probably don't really change between "clamshell"
> and "tablet" mode, do the physical radiation properties change enough
> to actually require different *calibration*? To me, that sounds very
> strange.
>
> Assuming they don't really change fundamentally, then I understand the
> need to set different power levels, per band/channel/whatever
> granularity. But that can be achieved in very different ways, and in
> fact if you look at Chrome then for our iwl7000 driver there we do have
> a command to do something similar (currently a vendor command, but that
> can be changed) without ever changing the *calibration*.
>
> So to me, the whole premise of the patch is confusing and/or wrong.
>
> johannes



-- 
Wei-Ning Huang, 黃偉寧 | Software Engineer, Google Inc., Taiwan |
wnhuang@google.com | Cell: +886 910-380678

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH] cfg80211/nl80211: add wifi tx power mode switching  support Johannes Berg <johannes@sipsolutions.net> - 2016-06-28 13:00 +0200
  Re: [PATCH] cfg80211/nl80211: add wifi tx power mode switching support Wei-Ning Huang <wnhuang@google.com> - 2016-07-07 11:40 +0200

csiph-web