linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Any way to get channel index from channel?
@ 2012-04-13 20:00 Ben Greear
  0 siblings, 0 replies; only message in thread
From: Ben Greear @ 2012-04-13 20:00 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org

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

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-13 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-13 20:00 Any way to get channel index from channel? Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).