2 * Copyright (C) 2016 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef WIFICOND_SCANNING_SCAN_RESULT_H_
18 #define WIFICOND_SCANNING_SCAN_RESULT_H_
22 #include <binder/Parcel.h>
23 #include <binder/Parcelable.h>
31 // This is the class to represent a scan result for wificond internal use.
32 class NativeScanResult : public ::android::Parcelable {
34 NativeScanResult() = default;
35 NativeScanResult(std::vector<uint8_t>& ssid,
36 std::vector<uint8_t>& bssid,
37 std::vector<uint8_t>& info_element,
43 ::android::status_t writeToParcel(::android::Parcel* parcel) const override;
44 ::android::status_t readFromParcel(const ::android::Parcel* parcel) override;
49 std::vector<uint8_t> ssid;
51 std::vector<uint8_t> bssid;
52 // Binary array containing the raw information elements from the probe
54 std::vector<uint8_t> info_element;
57 // Signal strength of probe response/beacon in (100 * dBm).
59 // TSF of the received probe response/beacon.
61 // This is a bit mask describing the capabilities of a BSS.
62 // See IEEE Std 802.11: 8.4.1.4
65 // Bit 2 - CF Pollable
66 // Bit 3 - CF-Poll Request
68 // Bit 5 - Short Preamble
70 // Bit 7 - Channel Agility
71 // Bit 8 - Spectrum Mgmt
73 // Bit 10 - Short Slot Time
75 // Bit 12 - Radio Measurement
77 // Bit 14 - Delayed Block Ack
78 // Bit 15 - Immediate Block Ack
83 } // namespace wificond
86 } // namespace android
89 #endif // WIFICOND_SCANNING_SCAN_RESULT_H_