aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/brcm80211/phy/wlc_phy_lcn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/brcm80211/phy/wlc_phy_lcn.c')
-rw-r--r--drivers/staging/brcm80211/phy/wlc_phy_lcn.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/staging/brcm80211/phy/wlc_phy_lcn.c b/drivers/staging/brcm80211/phy/wlc_phy_lcn.c
index 3d3112ed4e2..3ac2b49d9a9 100644
--- a/drivers/staging/brcm80211/phy/wlc_phy_lcn.c
+++ b/drivers/staging/brcm80211/phy/wlc_phy_lcn.c
@@ -17,13 +17,18 @@
17#include <linux/kernel.h> 17#include <linux/kernel.h>
18#include <linux/string.h> 18#include <linux/string.h>
19#include <linux/bitops.h> 19#include <linux/bitops.h>
20#include <linux/delay.h>
20#include <wlc_cfg.h> 21#include <wlc_cfg.h>
21#include <qmath.h> 22#include <qmath.h>
22#include <osl.h> 23#include <osl.h>
23#include <linuxver.h> 24#include <linux/pci.h>
24#include <siutils.h> 25#include <siutils.h>
25#include <hndpmu.h> 26#include <hndpmu.h>
26 27
28#include <bcmdevs.h>
29#include <sbhndpio.h>
30#include <sbhnddma.h>
31
27#include <wlc_phy_radio.h> 32#include <wlc_phy_radio.h>
28#include <wlc_phy_int.h> 33#include <wlc_phy_int.h>
29#include <wlc_phy_lcn.h> 34#include <wlc_phy_lcn.h>
@@ -1327,7 +1332,7 @@ static void wlc_lcnphy_clear_tx_power_offsets(phy_info_t *pi)
1327 u32 data_buf[64]; 1332 u32 data_buf[64];
1328 phytbl_info_t tab; 1333 phytbl_info_t tab;
1329 1334
1330 bzero(data_buf, sizeof(data_buf)); 1335 memset(data_buf, 0, sizeof(data_buf));
1331 1336
1332 tab.tbl_id = LCNPHY_TBL_ID_TXPWRCTL; 1337 tab.tbl_id = LCNPHY_TBL_ID_TXPWRCTL;
1333 tab.tbl_width = 32; 1338 tab.tbl_width = 32;
@@ -1951,7 +1956,7 @@ wlc_lcnphy_tx_iqlo_cal(phy_info_t *pi,
1951 band_idx = (CHSPEC_IS5G(pi->radio_chanspec) ? 1 : 0); 1956 band_idx = (CHSPEC_IS5G(pi->radio_chanspec) ? 1 : 0);
1952 1957
1953 cal_gains = *target_gains; 1958 cal_gains = *target_gains;
1954 bzero(ncorr_override, sizeof(ncorr_override)); 1959 memset(ncorr_override, 0, sizeof(ncorr_override));
1955 for (j = 0; j < iqcal_gainparams_numgains_lcnphy[band_idx]; j++) { 1960 for (j = 0; j < iqcal_gainparams_numgains_lcnphy[band_idx]; j++) {
1956 if (hash == tbl_iqcal_gainparams_lcnphy[band_idx][j][0]) { 1961 if (hash == tbl_iqcal_gainparams_lcnphy[band_idx][j][0]) {
1957 cal_gains.gm_gain = 1962 cal_gains.gm_gain =
@@ -2529,7 +2534,7 @@ static void wlc_lcnphy_clear_papd_comptable(phy_info_t *pi)
2529 tab.tbl_width = 32; 2534 tab.tbl_width = 32;
2530 tab.tbl_offset = 0; 2535 tab.tbl_offset = 0;
2531 2536
2532 bzero(temp_offset, sizeof(temp_offset)); 2537 memset(temp_offset, 0, sizeof(temp_offset));
2533 for (j = 1; j < 128; j += 2) 2538 for (j = 1; j < 128; j += 2)
2534 temp_offset[j] = 0x80000; 2539 temp_offset[j] = 0x80000;
2535 2540