diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-02-19 17:57:16 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-02-19 17:57:16 +0000 |
commit | f6758eeb865a07b0259b71a04dd9569b21c4a4a2 (patch) | |
tree | c5c3c658ff02c85e76529b0537f6b8537fa03258 | |
parent | 7a91cffe3ec3cd3fe3d0afd1238c5e43fc0ba88e (diff) |
return on invalid beacon state
-rw-r--r-- | sys/dev/ic/ar5212.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <reyk@vantronix.net> @@ -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; /* |