From f6758eeb865a07b0259b71a04dd9569b21c4a4a2 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Sat, 19 Feb 2005 17:57:16 +0000 Subject: return on invalid beacon state --- sys/dev/ic/ar5212.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/ar5212.c b/sys/dev/ic/ar5212.c index 34092d30296..a12555ca234 100644 --- a/sys/dev/ic/ar5212.c +++ b/sys/dev/ic/ar5212.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5212.c,v 1.1 2005/02/19 16:58:00 reyk Exp $ */ +/* $OpenBSD: ar5212.c,v 1.2 2005/02/19 17:57:15 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter @@ -2408,7 +2408,7 @@ ar5k_ar5212_setStationBeaconTimers(hal, state, tsf, dtim_count, cfp_count) u_int32_t cfp_period, next_cfp; /* Return on an invalid beacon state */ - if (state->bs_interval > 0) + if (state->bs_interval < 1) return; /* -- cgit v1.2.3