diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-01-18 21:47:24 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-01-18 21:47:24 +0000 |
commit | 0fa5c268c2fc0dfb175f7ba40e532e30570ce349 (patch) | |
tree | e1211a0372d2fa665e41949d0ea9776079a69f7a /sys/dev | |
parent | 6b25c9382ea507c72c28f8035293fd86b0ff7d6d (diff) |
Timeslot mask is no longer shifted when passed form ifconfig to make the
ioctl more intuitive.
From alex@ Ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_san_te1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_san_te1.c b/sys/dev/pci/if_san_te1.c index f5e1cad92ff..5763f2f304f 100644 --- a/sys/dev/pci/if_san_te1.c +++ b/sys/dev/pci/if_san_te1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_san_te1.c,v 1.5 2004/12/07 06:10:24 mcbride Exp $ */ +/* $OpenBSD: if_san_te1.c,v 1.6 2005/01/18 21:47:23 claudio Exp $ */ /*- * Copyright (c) 2001-2004 Sangoma Technologies (SAN) @@ -2337,7 +2337,7 @@ sdla_te_config(void* card_id) EnableAllChannels(card); } else { for (i = 1; i <= channel_range; i++) { - if (te_cfg->active_ch & (1 << (i - 1))) { + if (te_cfg->active_ch & (1 << i)) { #ifdef DEBUG_INIT log(LOG_DEBUG, "%s: Enable channel %d\n", card->devname, i); |