diff options
author | Thomas Pedersen <thomas@adapt-ip.com> | 2020-04-02 04:18:03 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2020-04-24 13:33:43 +0300 |
commit | 934f4c7dd3a544bb8000f7436f1f0e12e04ebc37 (patch) | |
tree | 3a852cedb96aa510836d1f1fe5810297fbeac29e /net/mac80211 | |
parent | b572510100165ba037ba43dbbb0f05e8da12c741 (diff) | |
download | linux-934f4c7dd3a544bb8000f7436f1f0e12e04ebc37.tar.xz |
cfg80211: express channels with a KHz component
Some bands (S1G) define channels centered on a non-integer
MHz. Give ieee80211_channel and cfg80211_chan_def a
freq_offset component where the final frequency can be
expressed as:
MHZ_TO_KHZ(chan->center_freq) + chan->freq_offset;
Also provide some helper functions to do the frequency
conversion and test for equality.
Retain the existing interface to frequency and channel
conversion helpers, and expose new ones which handle
frequencies in units of KHz.
Some internal functions (net/wireless/chan.c) pass around
a frequency value. Convert these to units of KHz.
mesh, ibss, wext, etc. are currently ignored.
Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20200402011810.22947-3-thomas@adapt-ip.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
0 files changed, 0 insertions, 0 deletions