wifi: Remove internal function, add version checks when using new API
1. Remove internal function
2. Add the version check in new APIs which miss it before
PS: The hostapd HAL will check the HAL version runtime.
Thus it doesn't need to add the OS version
since it never runs the code in old build.
Bug: 173791707
Test: S module on R base image boots and connects to wifi and SAP
enable succeed.
Test: atest FrameworksWifiTests in S image.
Change-Id: I57407be531efa784ade2bfa9d2235b8652f7a715
3 files changed