Skip to contentSkip to conversation

Any way to get channel index from channel?

DISCUSSION Ben Greear 1 participant 1 message Apr 13, 2012

lore
Share & tools
lore

Ben Greear

author
#0 lore raw

In the ethtool stats patches, I'm trying to get the survey for just the current operating channel. (Previously posted code is wrong..can't just use index 0, duh!)

I know the channel object: local->oper_channel but the API that gets survey results wants the channel index.

Is there a fast way to get the channel index from a channel, or do I just need to iterate through all channels and compare the center-frequencies?

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com