Commit e63ee4da authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

staging: brcm80211: remove WLC_WATCHDOG_TBTT macro

The expanded macro expression will always be false so it has been
removed.
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 63d7c94c
...@@ -100,10 +100,6 @@ ...@@ -100,10 +100,6 @@
* calibration and scb update * calibration and scb update
*/ */
/* watchdog trigger mode: OSL timer or TBTT */
#define WLC_WATCHDOG_TBTT(wlc) \
(wlc->stas_associated > 0 && wlc->PM != PM_OFF && wlc->pub->align_wd_tbtt)
/* To inform the ucode of the last mcast frame posted so that it can clear moredata bit */ /* To inform the ucode of the last mcast frame posted so that it can clear moredata bit */
#define BCMCFID(wlc, fid) wlc_bmac_write_shm((wlc)->hw, M_BCMC_FID, (fid)) #define BCMCFID(wlc, fid) wlc_bmac_write_shm((wlc)->hw, M_BCMC_FID, (fid))
...@@ -1945,14 +1941,7 @@ bool wlc_radio_monitor_stop(struct wlc_info *wlc) ...@@ -1945,14 +1941,7 @@ bool wlc_radio_monitor_stop(struct wlc_info *wlc)
static void wlc_watchdog_by_timer(void *arg) static void wlc_watchdog_by_timer(void *arg)
{ {
struct wlc_info *wlc = (struct wlc_info *) arg;
wlc_watchdog(arg); wlc_watchdog(arg);
if (WLC_WATCHDOG_TBTT(wlc)) {
/* set to normal osl watchdog period */
wl_del_timer(wlc->wl, wlc->wdtimer);
wl_add_timer(wlc->wl, wlc->wdtimer, TIMER_INTERVAL_WATCHDOG,
true);
}
} }
/* common watchdog code */ /* common watchdog code */
...@@ -4281,29 +4270,6 @@ void wlc_tbtt(struct wlc_info *wlc, d11regs_t *regs) ...@@ -4281,29 +4270,6 @@ void wlc_tbtt(struct wlc_info *wlc, d11regs_t *regs)
{ {
struct wlc_bsscfg *cfg = wlc->cfg; struct wlc_bsscfg *cfg = wlc->cfg;
if (BSSCFG_STA(cfg)) {
/* run watchdog here if the watchdog timer is not armed */
if (WLC_WATCHDOG_TBTT(wlc)) {
u32 cur, delta;
if (wlc->WDarmed) {
wl_del_timer(wlc->wl, wlc->wdtimer);
wlc->WDarmed = false;
}
cur = OSL_SYSUPTIME();
delta = cur > wlc->WDlast ? cur - wlc->WDlast :
(u32) ~0 - wlc->WDlast + cur + 1;
if (delta >= TIMER_INTERVAL_WATCHDOG) {
wlc_watchdog((void *)wlc);
wlc->WDlast = cur;
}
wl_add_timer(wlc->wl, wlc->wdtimer,
wlc_watchdog_backup_bi(wlc), true);
wlc->WDarmed = true;
}
}
if (!cfg->BSS) { if (!cfg->BSS) {
/* DirFrmQ is now valid...defer setting until end of ATIM window */ /* DirFrmQ is now valid...defer setting until end of ATIM window */
wlc->qvalid |= MCMD_DIRFRMQVAL; wlc->qvalid |= MCMD_DIRFRMQVAL;
......
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