Commit ea7b2805 authored by Roland Vossen's avatar Roland Vossen Committed by Greg Kroah-Hartman

staging: brcm80211: code cleanup

Removed inactive code sections (BCM_DMAPAD and CHIPC_UART_ALWAYS_ON
were never defined). Also replaced magic number by #define. Deleted
incorrect comment.
Signed-off-by: default avatarRoland Vossen <rvossen@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c0765e99
...@@ -48,6 +48,8 @@ ...@@ -48,6 +48,8 @@
#include "wl_ucode.h" #include "wl_ucode.h"
#include "wl_mac80211.h" #include "wl_mac80211.h"
#define N_TX_QUEUES 4 /* #tx queues on mac80211<->driver interface */
static void wl_timer(unsigned long data); static void wl_timer(unsigned long data);
static void _wl_timer(struct wl_timer *t); static void _wl_timer(struct wl_timer *t);
...@@ -1070,8 +1072,7 @@ static int ieee_hw_init(struct ieee80211_hw *hw) ...@@ -1070,8 +1072,7 @@ static int ieee_hw_init(struct ieee80211_hw *hw)
| IEEE80211_HW_AMPDU_AGGREGATION; | IEEE80211_HW_AMPDU_AGGREGATION;
hw->extra_tx_headroom = wlc_get_header_len(); hw->extra_tx_headroom = wlc_get_header_len();
/* FIXME: should get this from wlc->machwcap */ hw->queues = N_TX_QUEUES;
hw->queues = 4;
/* FIXME: this doesn't seem to be used properly in minstrel_ht. /* FIXME: this doesn't seem to be used properly in minstrel_ht.
* mac80211/status.c:ieee80211_tx_status() checks this value, * mac80211/status.c:ieee80211_tx_status() checks this value,
* but mac80211/rc80211_minstrel_ht.c:minstrel_ht_get_rate() * but mac80211/rc80211_minstrel_ht.c:minstrel_ht_get_rate()
......
...@@ -1451,9 +1451,6 @@ static int BCMFASTPATH dma64_txfast(dma_info_t *di, struct sk_buff *p0, ...@@ -1451,9 +1451,6 @@ static int BCMFASTPATH dma64_txfast(dma_info_t *di, struct sk_buff *p0,
data = p->data; data = p->data;
len = p->len; len = p->len;
#ifdef BCM_DMAPAD
len += PKTDMAPAD(di->osh, p);
#endif /* BCM_DMAPAD */
next = p->next; next = p->next;
/* return nonzero if out of tx descriptors */ /* return nonzero if out of tx descriptors */
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
/* debug-only definitions */ /* debug-only definitions */
/* #define BCMDBG_FORCEHT */ /* #define BCMDBG_FORCEHT */
/* #define CHIPC_UART_ALWAYS_ON */
#else #else
#define PMU_MSG(args) #define PMU_MSG(args)
#endif /* BCMDBG */ #endif /* BCMDBG */
...@@ -2511,11 +2510,6 @@ void si_pmu_chip_init(si_t *sih) ...@@ -2511,11 +2510,6 @@ void si_pmu_chip_init(si_t *sih)
ASSERT(sih->cccaps & CC_CAP_PMU); ASSERT(sih->cccaps & CC_CAP_PMU);
#ifdef CHIPC_UART_ALWAYS_ON
si_corereg(sih, SI_CC_IDX, offsetof(chipcregs_t, clk_ctl_st),
CCS_FORCEALP, CCS_FORCEALP);
#endif /* CHIPC_UART_ALWAYS_ON */
/* Gate off SPROM clock and chip select signals */ /* Gate off SPROM clock and chip select signals */
si_pmu_sprom_enable(sih, false); si_pmu_sprom_enable(sih, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment