Don't call mau_i_duplex_admin_old() if the device doesn't implement

the table at all.
This commit is contained in:
Bill Fenner
2006-04-13 04:03:53 +00:00
parent bd6cc8d7f4
commit 53ebeacc09

View File

@@ -169,7 +169,11 @@ sub mau_i_duplex_admin {
# Older HP4000's don't implement ifMauDefaultType, but we can # Older HP4000's don't implement ifMauDefaultType, but we can
# figure out from ifMauAutoNegCapAdvertised what we'd like. # figure out from ifMauAutoNegCapAdvertised what we'd like.
if (!defined($mau_type_admin)) { if (!defined($mau_type_admin)) {
if (defined($mau_index)) {
return mau_i_duplex_admin_old($mau,$mau_index,$mau_autostat); return mau_i_duplex_admin_old($mau,$mau_index,$mau_autostat);
} else {
return undef;
}
} }
my %i_duplex_admin; my %i_duplex_admin;