summaryrefslogtreecommitdiff
path: root/drivers/staging/brcm80211
diff options
context:
space:
mode:
authorAlwin Beukers <alwin@broadcom.com>2011-10-04 23:19:10 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-05 13:39:05 -0700
commit68327a1910f4b32226de47f9443068ce511ae2de (patch)
tree4f6c969733e5ee130dfb95c3d0129bdddf931fdb /drivers/staging/brcm80211
parent0f90d23cf4124616f9a42036b50ba5cc3724868c (diff)
staging: brcm80211: remove N mode validation function
Removed the brcms_c_nmode_validate function as it only checks N-mode capability, which should always be true. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Roland Vossen <rvossen@broadcom.com> Reviewed-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211')
-rw-r--r--drivers/staging/brcm80211/brcmsmac/main.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/staging/brcm80211/brcmsmac/main.c b/drivers/staging/brcm80211/brcmsmac/main.c
index 30c5573e8866..9fa84858a8cf 100644
--- a/drivers/staging/brcm80211/brcmsmac/main.c
+++ b/drivers/staging/brcm80211/brcmsmac/main.c
@@ -5912,40 +5912,11 @@ int brcms_c_set_gmode(struct brcms_c_info *wlc, u8 gmode, bool config)
return ret;
}
-static int brcms_c_nmode_validate(struct brcms_c_info *wlc, s32 nmode)
-{
- int err = 0;
-
- switch (nmode) {
-
- case OFF:
- break;
-
- case AUTO:
- case WL_11N_2x2:
- case WL_11N_3x3:
- if (!(BRCMS_PHY_11N_CAP(wlc->band)))
- err = -EINVAL;
- break;
-
- default:
- err = -EINVAL;
- break;
- }
-
- return err;
-}
-
int brcms_c_set_nmode(struct brcms_c_info *wlc)
{
uint i;
- int err;
s32 nmode = AUTO;
- err = brcms_c_nmode_validate(wlc, nmode);
- if (err)
- return err;
-
if (wlc->stf->txstreams == WL_11N_3x3)
nmode = WL_11N_3x3;
else