WifiHal: Set wifi_error return code when command/operation fails

Setting the return value to corresponding error before returning
from the APIs.

Bug: 241058906
Test: VTS test
CRs-Fixed: 3264767
Change-Id: Id77b3d64459f4957b6921be8ad8ad4d60f32a4cb
13 files changed
tree: e6aa580c34dabd52ddc3aa51a892456dc10a0c68
  1. legacy/
  2. wcn6740/
  3. Android.mk
  4. METADATA
  5. OWNERS