All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Alexander Aring <aahringo@redhat.com>
Cc: Stefan Schmidt <stefan@datenfreihafen.org>,
	Linux Wpan Mailing List <linux-wpan@vger.kernel.org>
Subject: Re: ieee802154: energy detection question
Date: Thu, 23 Feb 2023 11:35:00 +0100	[thread overview]
Message-ID: <20230223113500.662d1624@xps-13> (raw)
In-Reply-To: <CAK-6q+hUzbUi3quGW6_jvXyGm+cqv4aY6rnLOJ1B=QzOMUoH8A@mail.gmail.com>

Hi Alexander,

aahringo@redhat.com wrote on Mon, 20 Feb 2023 21:58:04 -0500:

> Hi,
> 
> On Fri, Feb 17, 2023 at 4:01 AM Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> >
> > Hello,
> >
> > I know this may sound like a silly question but while looking at the
> > various drivers implementations I found no users (at all) of the ->ed()
> > energy detection hook. Its comment says that the mac layer is supposed
> > to use it but I couldn't find where. Of course, the fact that the
> > abbreviation ends like half of the word in english "-ed" does not help
> > grepping for that, but I could not figure out how useful this callback
> > was. In particular since it is mandatory to provide.
> >  
> 
> There is no user, there was never an upstream user.

Ah, thanks a lot for the confirmation.

> > I am pretty sure I missed something, so perhaps someone has a pointer
> > to help me there.  
> 
> I think there were some non-upstream users for code which never came
> upstream. Please don't look into this code.
> 
> What do you want to do with this functionality? But the finger out and
> look for a suitable channel to switch and operate on?

Yeah, the idea of having a mac hook for that feels odd, but why not.
What is bothering me actually is the fact that this hook seems mandatory
(while mostly useless), see:
https://elixir.bootlin.com/linux/latest/source/net/mac802154/main.c#L53

I propose to remove that check regarding the ->ed() callback presence?

Thanks,
Miquèl

      reply	other threads:[~2023-02-23 10:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-17  9:00 ieee802154: energy detection question Miquel Raynal
2023-02-21  2:58 ` Alexander Aring
2023-02-23 10:35   ` Miquel Raynal [this message]

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=20230223113500.662d1624@xps-13 \
    --to=miquel.raynal@bootlin.com \
    --cc=aahringo@redhat.com \
    --cc=linux-wpan@vger.kernel.org \
    --cc=stefan@datenfreihafen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.