diff options
author | Roland Vossen <rvossen@broadcom.com> | 2010-12-24 14:17:41 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-01-20 23:20:34 (GMT) |
commit | d69a135806136ef26298116cc3fa08d14bb1d7d6 (patch) | |
tree | a9c922bf49752f1f5cfda97e6a2501ca858b226f /drivers/staging/brcm80211/sys/wlc_mac80211.c | |
parent | 1b1d36b6e8df93b1ddba81c6b72f0c22be6ed4ef (diff) | |
download | linux-fsl-qoriq-d69a135806136ef26298116cc3fa08d14bb1d7d6.tar.xz |
staging: brcm80211: replaced 5Ghz specific wf_channel2mhz()
Code cleanup related. Replaced broadcom specific function with Linux function
ieee80211_dsss_chan_to_freq().
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/sys/wlc_mac80211.c')
-rw-r--r-- | drivers/staging/brcm80211/sys/wlc_mac80211.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/brcm80211/sys/wlc_mac80211.c b/drivers/staging/brcm80211/sys/wlc_mac80211.c index 4853286..49894b6 100644 --- a/drivers/staging/brcm80211/sys/wlc_mac80211.c +++ b/drivers/staging/brcm80211/sys/wlc_mac80211.c @@ -6837,7 +6837,9 @@ prep_mac80211_status(struct wlc_info *wlc, d11rxhdr_t *rxh, struct sk_buff *p, /* XXX Channel/badn needs to be filtered against whether we are single/dual band card */ if (channel > 14) { rx_status->band = IEEE80211_BAND_5GHZ; - rx_status->freq = wf_channel2mhz(channel, WF_CHAN_FACTOR_5_G); + rx_status->freq = ieee80211_ofdm_chan_to_freq( + WF_CHAN_FACTOR_5_G/2, channel); + } else { rx_status->band = IEEE80211_BAND_2GHZ; rx_status->freq = ieee80211_dsss_chan_to_freq(channel); |