mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
zapit: return 0 in CFrontend::getBitErrorRate for broken drivers
This commit is contained in:
@@ -376,6 +376,8 @@ uint32_t CFrontend::getBitErrorRate(void) const
|
|||||||
{
|
{
|
||||||
uint32_t ber = 0;
|
uint32_t ber = 0;
|
||||||
fop(ioctl, FE_READ_BER, &ber);
|
fop(ioctl, FE_READ_BER, &ber);
|
||||||
|
if (ber > 100000000) /* azbox minime driver has useless values around 500.000.000 */
|
||||||
|
ber = 0;
|
||||||
|
|
||||||
return ber;
|
return ber;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user