Copyright 2018 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
http://www.apache.org/licenses/LICENSE-2.0
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/ and hardware/interfaces/wifi/1.2/):
Note that the 1.2 HAL is supplemental to the 1.0 HAL - not a replacement.
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.
Format:
APIs:
Format:
API: