fix handling of unknown error rate in mbim signal state info
authordlg <dlg@openbsd.org>
Tue, 29 Aug 2023 23:28:38 +0000 (23:28 +0000)
committerdlg <dlg@openbsd.org>
Tue, 29 Aug 2023 23:28:38 +0000 (23:28 +0000)
commita077d710c2f5440af9dfa06e50044422447386f8
tree52ce50e19caa835d9c145cc3d66f0b8e448fc598
parent16cce00f95c57e1143e0e245e7277ba32aff2396
fix handling of unknown error rate in mbim signal state info

from gerhard@:

> According to MBIM spec, table 10-58 (MBIM_SIGNAL_STATE_INFO) a value
> of 99 means the error rate is "Unknown or undetectable".

the code was using -99 before, but properly reports unknown/null now.
sys/dev/usb/if_umb.c