Skip to content

Commit

Permalink
staging: brcm80211: remove unused function from bcmwifi.c
Browse files Browse the repository at this point in the history
Working through a list of unused functions in the driver tree.
This file has following redundant function(s):

wf_chspec_ctlchspec

Reviewed-by: Brett Rudley <brudley@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Arend van Spriel authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent c836f77 commit ed3556d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
7 changes: 0 additions & 7 deletions drivers/staging/brcm80211/include/bcmwifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,6 @@ extern bool wf_chspec_malformed(chanspec_t chanspec);
*/
extern u8 wf_chspec_ctlchan(chanspec_t chspec);

/*
* This function returns the chanspec that control traffic is being sent on, for legacy
* channels this is just the chanspec, for 40MHZ channels it is the upper or lowre 20MHZ
* sideband depending on the chanspec selected
*/
extern chanspec_t wf_chspec_ctlchspec(chanspec_t chspec);

/*
* Return the channel number for a given frequency and base frequency.
* The returned channel number is relative to the given base frequency.
Expand Down
23 changes: 0 additions & 23 deletions drivers/staging/brcm80211/util/bcmwifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,29 +79,6 @@ u8 wf_chspec_ctlchan(chanspec_t chspec)
return ctl_chan;
}

chanspec_t wf_chspec_ctlchspec(chanspec_t chspec)
{
chanspec_t ctl_chspec = 0;
u8 channel;

ASSERT(!wf_chspec_malformed(chspec));

/* Is there a sideband ? */
if (CHSPEC_CTL_SB(chspec) == WL_CHANSPEC_CTL_SB_NONE) {
return chspec;
} else {
if (CHSPEC_CTL_SB(chspec) == WL_CHANSPEC_CTL_SB_UPPER) {
channel = UPPER_20_SB(CHSPEC_CHANNEL(chspec));
} else {
channel = LOWER_20_SB(CHSPEC_CHANNEL(chspec));
}
ctl_chspec =
channel | WL_CHANSPEC_BW_20 | WL_CHANSPEC_CTL_SB_NONE;
ctl_chspec |= CHSPEC_BAND(chspec);
}
return ctl_chspec;
}

/*
* Return the channel number for a given frequency and base frequency.
* The returned channel number is relative to the given base frequency.
Expand Down

0 comments on commit ed3556d

Please sign in to comment.