• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 #include "offload_hal_test_constants.h"
17 
18 namespace android {
19 namespace wificond {
20 namespace offload_hal_test_constants {
21 
22 const uint8_t kSsid1[] = {'G', 'o', 'o', 'g', 'l', 'e'};
23 const size_t kSsid1_size = sizeof(kSsid1);
24 const uint8_t kSsid2[] = {'X', 'f', 'i', 'n', 'i', 't', 'y'};
25 const size_t kSsid2_size = sizeof(kSsid2);
26 const uint8_t kBssid[6] = {0x12, 0xef, 0xa1, 0x2c, 0x97, 0x8b};
27 const int16_t kRssi = -60;
28 const int16_t kRssiThreshold = -76;
29 const uint32_t kFrequency1 = 2412;
30 const uint32_t kFrequency2 = 2437;
31 const uint8_t kBssidSize = 6;
32 const uint64_t kTsf = 0;
33 const uint16_t kCapability = 0;
34 const uint8_t kNetworkFlags = 0;
35 const uint32_t kDisconnectedModeScanIntervalMs = 5000;
36 const uint64_t kSubscriptionDurationMs = 10000;
37 const uint64_t kScanDurationMs[2] = {2000, 500};
38 const uint32_t kNumChannelsScanned[2] = {14, 6};
39 const uint8_t kDefaultNumTimesAChannelsIsScanned = 1;
40 const uint8_t kChannelNotScanned = 0;
41 const uint32_t kDefaultNumScansRequestedByWifi = 2;
42 const uint32_t kDefaultNumScansServicedByWifi = 2;
43 const uint64_t kScanDurationTotalMs = 2000;
44 const uint32_t kNumChannelsTotalScanned = 20;
45 const uint32_t kNumChannelsInHistogram = 256;
46 const uint64_t kDeathCode = 0xBEEF;
47 
48 }  // namespace offload_hal_test_constants
49 }  // namespace wificond
50 }  // namespace android
51