Linux IEEE 802.15.4 and 6LoWPAN development
 help / color / mirror / Atom feed
* ieee802154: energy detection question
@ 2023-02-17  9:00 Miquel Raynal
  2023-02-21  2:58 ` Alexander Aring
  0 siblings, 1 reply; 3+ messages in thread
From: Miquel Raynal @ 2023-02-17  9:00 UTC (permalink / raw)
  To: Alexander Aring; +Cc: Stefan Schmidt, Linux Wpan Mailing List

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.

I am pretty sure I missed something, so perhaps someone has a pointer
to help me there.

Thanks a lot!
Miquèl

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ieee802154: energy detection question
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Aring @ 2023-02-21  2:58 UTC (permalink / raw)
  To: Miquel Raynal; +Cc: Stefan Schmidt, Linux Wpan Mailing List

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.

> 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?

- Alex


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ieee802154: energy detection question
  2023-02-21  2:58 ` Alexander Aring
@ 2023-02-23 10:35   ` Miquel Raynal
  0 siblings, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2023-02-23 10:35 UTC (permalink / raw)
  To: Alexander Aring; +Cc: Stefan Schmidt, Linux Wpan Mailing List

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-23 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox