From: "Zhao\, Gang" <gamerh2o@gmail.com>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: <linux-wireless@vger.kernel.org>,
Johannes Berg <johannes.berg@intel.com>
Subject: Re: [PATCH 7/7] ieee80211: remove function ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan}
Date: Wed, 19 Feb 2014 08:59:05 +0800 [thread overview]
Message-ID: <878ut75352.fsf@will.lan> (raw)
In-Reply-To: <c9305f68668f20186c1b2a8f8f3f6dac3d23b5db.1392728354.git.gamerh2o@gmail.com> (Gang Zhao's message of "Tue, 18 Feb 2014 21:36:03 +0800")
On Tue, 2014-02-18 at 21:36:03 +0800, Zhao, Gang wrote:
> Function ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan} have been
> replaced with ieee80211_{channel_to_frequency, frequency_to_channel}.
>
> There should be no users of the two functions now. So remove them.
>
> Cc: Johannes Berg <johannes.berg@intel.com>
> Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
> ---
Since staging driver wlan-ng uses function ieee80211_dsss_chan_to_freq,
This patch "ieee80211: remove function ieee80211_{dsss_chan_to_freq,
freq_to_dsss_chan}" should be applied later, when that staging-next
patch "staging: wlan-ng: replace function ieee80211_dsss_chan_to_freq()"
appear on wireless-next.
> include/linux/ieee80211.h | 36 ------------------------------------ 1
> file changed, 36 deletions(-)
>
> diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
> index 5f34935..0629904 100644
> --- a/include/linux/ieee80211.h
> +++ b/include/linux/ieee80211.h
> @@ -2308,42 +2308,6 @@ static inline bool ieee80211_is_public_action(struct ieee80211_hdr *hdr,
> }
>
> /**
> - * ieee80211_dsss_chan_to_freq - get channel center frequency
> - * @channel: the DSSS channel
> - *
> - * Convert IEEE802.11 DSSS channel to the center frequency (MHz).
> - * Ref IEEE 802.11-2007 section 15.6
> - */
> -static inline int ieee80211_dsss_chan_to_freq(int channel)
> -{
> - if ((channel > 0) && (channel < 14))
> - return 2407 + (channel * 5);
> - else if (channel == 14)
> - return 2484;
> - else
> - return -1;
> -}
> -
> -/**
> - * ieee80211_freq_to_dsss_chan - get channel
> - * @freq: the frequency
> - *
> - * Convert frequency (MHz) to IEEE802.11 DSSS channel
> - * Ref IEEE 802.11-2007 section 15.6
> - *
> - * This routine selects the channel with the closest center frequency.
> - */
> -static inline int ieee80211_freq_to_dsss_chan(int freq)
> -{
> - if ((freq >= 2410) && (freq < 2475))
> - return (freq - 2405) / 5;
> - else if ((freq >= 2482) && (freq < 2487))
> - return 14;
> - else
> - return -1;
> -}
> -
> -/**
> * ieee80211_tu_to_usec - convert time units (TU) to microseconds
> * @tu: the TUs
> */
next prev parent reply other threads:[~2014-02-19 0:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-18 13:35 [PATCH 0/7] api clean: ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan} Zhao, Gang
2014-02-18 13:35 ` [PATCH 1/7] airo: replace function " Zhao, Gang
2014-02-18 13:35 ` [PATCH 2/7] atmel: " Zhao, Gang
2014-02-18 13:35 ` [PATCH 3/7] wl3501_cs: " Zhao, Gang
2014-02-18 13:36 ` [PATCH 4/7] rndis_wlan: " Zhao, Gang
2014-02-18 13:36 ` [PATCH 5/7] zd1201: " Zhao, Gang
2014-02-18 13:36 ` [PATCH 6/7] orinoco: " Zhao, Gang
2014-02-19 8:33 ` Dave Kilroy
2014-02-19 8:58 ` [PATCH 6/7 v2] " Zhao, Gang
2014-02-18 13:36 ` [PATCH 7/7] ieee80211: remove " Zhao, Gang
2014-02-19 0:59 ` Zhao, Gang [this message]
2014-02-28 18:58 ` John W. Linville
2014-02-19 11:00 ` [PATCH 0/7] api clean: " Johannes Berg
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=878ut75352.fsf@will.lan \
--to=gamerh2o@gmail.com \
--cc=johannes.berg@intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.