From: Dave <kilroyd@googlemail.com>
To: Richard Farina <sidhayn@gmail.com>
Cc: linux-wireless@vger.kernel.org, simon@thekelleys.org.uk,
jussi.kivilinna@mbnet.fi, acme@ghostprotocols.net,
pe1rxq@amsat.org
Subject: Re: [PATCH] wireless: Add channel/frequency conversions to ieee80211.h
Date: Tue, 23 Dec 2008 20:22:12 +0000 [thread overview]
Message-ID: <49514874.8060605@gmail.com> (raw)
In-Reply-To: <49510D4F.7060102@gmail.com>
Richard Farina wrote:
> David Kilroy wrote:
>> Added mappings for FHSS, DSSS and OFDM channels - with macros to point
>> HR DSSS and ERP to the DSSS mappings. Currently just static inline
>> functions.
>> +/**
>> + * ieee80211_ofdm_chan_to_freq - get channel center frequency
>> + * @s_freq: starting frequency == (dotChannelStartingFactor/2) MHz
>> + * @channel: the OFDM channel
>> + *
>> + * Convert IEEE802.11 OFDM channel to center frequency (MHz)
>> + * Ref IEEE 802.11-2007 section 17.3.8.3.2
>> + */
>> +static inline int ieee80211_ofdm_chan_to_freq(int s_freq, int channel)
>> +{
>> + if ((channel > 0) && (channel <= 200) &&
>> + (s_freq >= 4000))
>> + return s_freq + (channel * 5);
>> + else
>> + return -1;
>> +}
> Any desire to make 184-196 work? These are the 4.9 GHz channels.
Do you see a reason why these channels wouldn't work with these
conversion routines? Or are you asking about corresponding driver support?
>From the ack I assume the latter. My main motivation is to put the
frequency conversions in a common place. In this case for old drivers
which only use the 2.4 GHz band. The 5GHz conversions are just for
completeness.
If drivers don't currently support those channels, I suspect there's a
more significant issue to be addressed first.
> I checked this all out pretty specifically, seems to work well. As if
> anyone cares but:
>
> ACKED-By: Rick Farina
Thanks for having a look.
Dave.
next prev parent reply other threads:[~2008-12-23 20:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-23 14:03 [PATCH] wireless: Add channel/frequency conversions to ieee80211.h David Kilroy
2008-12-23 14:11 ` Arnaldo Carvalho de Melo
2008-12-23 16:09 ` Richard Farina
2008-12-23 20:22 ` Dave [this message]
2008-12-23 22:18 ` Richard Farina
2008-12-23 22:47 ` Dave
2008-12-23 20:30 ` Jeroen Vreeken
2008-12-24 21:57 ` Jussi Kivilinna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49514874.8060605@gmail.com \
--to=kilroyd@googlemail.com \
--cc=acme@ghostprotocols.net \
--cc=jussi.kivilinna@mbnet.fi \
--cc=linux-wireless@vger.kernel.org \
--cc=pe1rxq@amsat.org \
--cc=sidhayn@gmail.com \
--cc=simon@thekelleys.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).