Search Linux Wireless

Any way to get channel index from channel?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux