Any way to get channel index from channel?
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