commit | 80feb3cdf0865cc3e71d92633000f87b54a4bdf1 | [log] [tgz] |
---|---|---|
author | Ahmed ElArabawy <arabawy@google.com> | Thu Oct 24 19:15:27 2019 -0700 |
committer | Ahmed ElArabawy <arabawy@google.com> | Thu Oct 24 19:22:17 2019 -0700 |
tree | 5303ed908c9e5e60f65f3e95ceb4bcc7b53521d4 | |
parent | f19af45c9ed4074c485134ec0c56ced47af1ca2c [diff] |
Wifi: Handle invalid error values from vendor HAL The HAL shim (default implementation) expects all vendor hal functions to return valid wifi_error values. In case the vendor hal returning a value outside this range of values, the HAL service crashes. This commit is to handle this type of error by defaulting to WIFI_ERROR_UNKNOWN. Bug: 143317834 Test: Manual Test: Pass an invalid error code, and make sure it is properly handled Change-Id: Ifaba8a7e4e866a2be154c9dcaeb521cd758010ee