wcb4xxp: Do not show LASVEGAS2 as echocan name if vpmsupport is set to 0
This fixes an issue where "EC: LASVEGAS2" was displayed in /proc/dahdi/x for a B410P span even though vpmsupport was disabled with the module parameter. Internal-Issue-ID: DAHLIN-247 Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10251 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
parent
e14f3fa541
commit
f06aa486c7
@ -2205,7 +2205,7 @@ static const char *b4xxp_echocan_name(const struct dahdi_chan *chan)
|
|||||||
{
|
{
|
||||||
struct b4xxp_span *bspan = container_of(chan->span, struct b4xxp_span,
|
struct b4xxp_span *bspan = container_of(chan->span, struct b4xxp_span,
|
||||||
span);
|
span);
|
||||||
if (bspan->parent->card_type == B410P)
|
if (vpmsupport && (B410P == bspan->parent->card_type))
|
||||||
return "LASVEGAS2";
|
return "LASVEGAS2";
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user