Fix error handling for VTS test on TWT

Vendors differ in their error handling of TWT HAL APIs: some provide
error codes immediately, while others deliver them later via
callbacks. Handle both scenarios.

Bug: 399269035
Flag: TEST_ONLY
Test: atest VtsHalWifiStaIfaceTargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:419e6ce34eedab44935f0280a1468fbd6a22309c)
Merged-In: I0900ef20a32f5a524597845a21667f5ec3b4e19e
Change-Id: I0900ef20a32f5a524597845a21667f5ec3b4e19e
1 file changed