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

Bug: 173791707
Test: S module on R base image boots and connects to wifi and SAP
enable succeed.

Change-Id: Ic9ea9fecfa7d39f54a1875ad687fe21c1381124c
3 files changed