Copyright 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
The Wi-Fi Aware (NAN) HAL API is defined in (hardware/interfaces/wifi/1.0/):
The Wi-Fi Aware (NAN) HAL API surface is very large - only a subset is used from the framework.
Understanding of the HAL API subset which is actively used by the Android framework can be deduced by reviewing framework code, specifically (frameworks/opt/net/wifi/):
The above framework files determine the API usage - and should be consulted as the authoritative reference. Please consult the primary HAL file for documentation - they will not be replicated in this document. APIs which are in the HAL but are not listed in this README file are not used by the framework.
Note: the HAL API is translated to the legacy HAL API (wifi_nan.h). This README file covers the new HAL API only. To understand the mapping between new and legacy HALs please consult hardware/interfaces/wifi/<version>/default/hidl_struct_util.cpp.