ath10k.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Abhishek Kumar <kuabhs@chromium.org>
To: Carl Huang <cjhuang@codeaurora.org>
Cc: Brian Norris <briannorris@chromium.org>,
	linux-wireless <linux-wireless@vger.kernel.org>,
	Douglas Anderson <dianders@chromium.org>,
	ath10k <ath10k@lists.infradead.org>
Subject: Re: [PATCH v2 2/3] mac80211: add ieee80211_set_sar_specs
Date: Tue, 1 Dec 2020 00:38:49 -0800	[thread overview]
Message-ID: <CACTWRwtMJEoDY3hZKYL-w4h0t85vMPpHktHJH8xt51i6EUu52Q@mail.gmail.com> (raw)
In-Reply-To: <20201120085312.4355-3-cjhuang@codeaurora.org>

Changes LGTM,
Reviewed-by: Abhishek Kumar <kuabhs@chromium.org>

Thanks
Abhishek

On Fri, Nov 20, 2020 at 12:54 AM Carl Huang <cjhuang@codeaurora.org> wrote:
>
> This change registers ieee80211_set_sar_specs to
> mac80211_config_ops, so cfg80211 can call it.
>
> Signed-off-by: Carl Huang <cjhuang@codeaurora.org>
> ---
> v2:
> - rebased on ToT
>
>  include/net/mac80211.h |  2 ++
>  net/mac80211/cfg.c     | 12 ++++++++++++
>  2 files changed, 14 insertions(+)
>
> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> index 05c7524..3576e34 100644
> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
> @@ -4197,6 +4197,8 @@ struct ieee80211_ops {
>                                    struct ieee80211_vif *vif);
>         void (*sta_set_4addr)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
>                               struct ieee80211_sta *sta, bool enabled);
> +       int (*set_sar_specs)(struct ieee80211_hw *hw,
> +                            const struct cfg80211_sar_specs *sar);
>  };
>
>  /**
> diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
> index 7276e66a..f7ff35b 100644
> --- a/net/mac80211/cfg.c
> +++ b/net/mac80211/cfg.c
> @@ -4083,6 +4083,17 @@ static int ieee80211_reset_tid_config(struct wiphy *wiphy,
>         return ret;
>  }
>
> +static int ieee80211_set_sar_specs(struct wiphy *wiphy,
> +                                  struct cfg80211_sar_specs *sar)
> +{
> +       struct ieee80211_local *local = wiphy_priv(wiphy);
> +
> +       if (!local->ops->set_sar_specs)
> +               return -EOPNOTSUPP;
> +
> +       return local->ops->set_sar_specs(&local->hw, sar);
> +}
> +
>  const struct cfg80211_ops mac80211_config_ops = {
>         .add_virtual_intf = ieee80211_add_iface,
>         .del_virtual_intf = ieee80211_del_iface,
> @@ -4186,4 +4197,5 @@ const struct cfg80211_ops mac80211_config_ops = {
>         .probe_mesh_link = ieee80211_probe_mesh_link,
>         .set_tid_config = ieee80211_set_tid_config,
>         .reset_tid_config = ieee80211_reset_tid_config,
> +       .set_sar_specs = ieee80211_set_sar_specs,
>  };
> --
> 2.7.4
>

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

  reply	other threads:[~2020-12-01  8:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-20  8:53 [PATCH v2 0/3] add common API to configure SAR Carl Huang
2020-11-20  8:53 ` [PATCH v2 1/3] nl80211: add common API to configure SAR power limitations Carl Huang
2020-11-21  2:42   ` Brian Norris
2020-11-30 10:10     ` Carl Huang
2020-12-01  8:37       ` Abhishek Kumar
2020-12-01  9:40         ` Carl Huang
2020-11-20  8:53 ` [PATCH v2 2/3] mac80211: add ieee80211_set_sar_specs Carl Huang
2020-12-01  8:38   ` Abhishek Kumar [this message]
2020-11-20  8:53 ` [PATCH v2 3/3] ath10k: allow dynamic SAR power limits via common API Carl Huang
2020-11-20 11:43   ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACTWRwtMJEoDY3hZKYL-w4h0t85vMPpHktHJH8xt51i6EUu52Q@mail.gmail.com \
    --to=kuabhs@chromium.org \
    --cc=ath10k@lists.infradead.org \
    --cc=briannorris@chromium.org \
    --cc=cjhuang@codeaurora.org \
    --cc=dianders@chromium.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).