From 307fc61247e696b18d84d7fd59f6576b1aca9cec Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 19 May 2009 16:01:27 +0000 Subject: xpp: fix the Astribank state machine This generally is a case that would not happen in the wild, though. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6641 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/xproto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/dahdi/xpp/xproto.h') diff --git a/drivers/dahdi/xpp/xproto.h b/drivers/dahdi/xpp/xproto.h index 0034ab6..efa5e88 100644 --- a/drivers/dahdi/xpp/xproto.h +++ b/drivers/dahdi/xpp/xproto.h @@ -147,9 +147,9 @@ bool valid_xpd_addr(const struct xpd_addr *addr); do { \ int pack_len = RPACKET_SIZE(card,op); \ \ - if(XBUS_IS(xbus, DISCONNECTED)) \ + if(!XBUS_FLAGS(xbus, CONNECTED)) \ return -ENODEV; \ - (frm) = ALLOC_SEND_XFRAME(xbus); \ + (frm) = ALLOC_SEND_XFRAME(xbus); \ if(!(frm)) \ return -ENOMEM; \ (p) = xframe_next_packet(frm, pack_len); \ -- cgit v1.2.3