zapit: return 0 in CFrontend::getBitErrorRate for broken drivers

This commit is contained in:
Stefan Seyfried
2012-07-15 13:29:14 +02:00
parent ad7c88379a
commit d9d451dfb5

View File

@@ -376,6 +376,8 @@ uint32_t CFrontend::getBitErrorRate(void) const
{
uint32_t ber = 0;
fop(ioctl, FE_READ_BER, &ber);
if (ber > 100000000) /* azbox minime driver has useless values around 500.000.000 */
ber = 0;
return ber;
}