summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/brcm80211/brcmsmac/phy
diff options
context:
space:
mode:
authorArend van Spriel <arend@broadcom.com>2011-10-18 14:03:08 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-11-08 15:54:09 -0500
commit1433c59bcc404cd4bd54333d23ce06242d8e32b7 (patch)
treec51d76255bde9e83348817b05d42e6a04f632e28 /drivers/net/wireless/brcm80211/brcmsmac/phy
parent094b199bf707a41bc6748f0c2f0a23ecf5d2ccd6 (diff)
downloadblackbird-op-linux-1433c59bcc404cd4bd54333d23ce06242d8e32b7.tar.gz
blackbird-op-linux-1433c59bcc404cd4bd54333d23ce06242d8e32b7.zip
brcm80211: smac: remove phy api bypass in rate.h
Obviously the phy api should be used to interface with the phy. In rate.h a table within phy was accessed directly by declaring the table extern in rate.h itself. This patch fixes this using the provided api function to obtain the table reference. This bypass was found by a sparse warning on the table not being defined static. Reviewed-by: Alwin Beukers <alwin@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Roland Vossen <rvossen@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/phy')
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c b/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c
index a3149254cbcd..2faea509f017 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c
@@ -112,7 +112,7 @@ static const struct chan_info_basic chan_info_all[] = {
{216, 50800}
};
-const u8 ofdm_rate_lookup[] = {
+static const u8 ofdm_rate_lookup[] = {
BRCM_RATE_48M,
BRCM_RATE_24M,
OpenPOWER on IntegriCloud