Skip to contentSkip to conversation

ieee802154: energy detection question

DISCUSSION Miquel Raynal 2 participants 3 messages Feb 17, 2023 – Feb 23, 2023 IEEE 802.15.4

lore
Share & tools
lore

Miquel Raynal

author maintainer
#0 lore raw

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

#1 lore raw

Hi,

Quoted 11 lines · Miquel Raynal

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.

Quoted 2 lines

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

author maintainer
#2 lore raw

Hi Alexander,

[email protected] wrote on Mon, 20 Feb 2023 21:58:04 -0500:

Quoted 15 lines

Hi,

Quoted 11 lines · Miquel Raynal

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.

Quoted 1 line

There is no user, there was never an upstream user.

Ah, thanks a lot for the confirmation.

Quoted 8 lines
Quoted 2 lines

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