Skip to content

Commit

Permalink
staging: brcm80211: remove duplicated file, bcmwifi.c
Browse files Browse the repository at this point in the history
Remove duplicated file, bcmwifi.c from brcmfmac.
bcmwifi.c under brcm80211/util/ will be shared
between softmac & fullmac drivers

Signed-off-by: Nohee Ko <noheek@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
nohee ko authored and Greg Kroah-Hartman committed Oct 6, 2010
1 parent 0ddc6f4 commit d11a5c6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 171 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/brcm80211/brcmfmac/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ccflags-y := \
-Idrivers/staging/brcm80211/util

DHDOFILES = dhd_linux.o linux_osl.o bcmutils.o dhd_common.o dhd_custom_gpio.o \
wl_iw.o wl_cfg80211.o ../util/siutils.o ../util/sbutils.o ../util/aiutils.o ../util/hndpmu.o bcmwifi.o dhd_sdio.o \
wl_iw.o wl_cfg80211.o ../util/siutils.o ../util/sbutils.o ../util/aiutils.o ../util/hndpmu.o ../util/bcmwifi.o dhd_sdio.o \
dhd_linux_sched.o dhd_cdc.o bcmsdh_sdmmc.o bcmsdh.o bcmsdh_linux.o \
bcmsdh_sdmmc_linux.o

Expand Down
170 changes: 0 additions & 170 deletions drivers/staging/brcm80211/brcmfmac/bcmwifi.c

This file was deleted.

17 changes: 17 additions & 0 deletions drivers/staging/brcm80211/util/bcmwifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,22 @@ int wf_mhz2channel(uint freq, uint start_factor)
*
* Reference 802.11 REVma, section 17.3.8.3, and 802.11B section 18.4.6.2
*/
#ifdef BRCM_FULLMAC
int wf_channel2mhz(uint ch, uint start_factor)
{
int freq;

if ((start_factor == WF_CHAN_FACTOR_2_4_G && (ch < 1 || ch > 14)) ||
(ch <= 200))
freq = -1;
if ((start_factor == WF_CHAN_FACTOR_2_4_G) && (ch == 14))
freq = 2484;
else
freq = ch * 5 + start_factor / 2;

return freq;
}
#else /* !BRCM_FULLMAC */
int wf_channel2mhz(uint ch, uint start_factor)
{
int freq;
Expand All @@ -316,3 +332,4 @@ int wf_channel2mhz(uint ch, uint start_factor)

return freq;
}
#endif /* BRCM_FULLMAC */

0 comments on commit d11a5c6

Please sign in to comment.