2 * Network Configuration Module
4 * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef __NETCONFIG_SCAN_H__
21 #define __NETCONFIG_SCAN_H__
29 #if defined TIZEN_WEARABLE
30 #define SCAN_PERIODIC_DELAY 15
31 #define SCAN_EXPONENTIAL_MIN 5
32 #define SCAN_EXPONENTIAL_MAX 320
34 #define SCAN_PERIODIC_DELAY 10
35 #define SCAN_EXPONENTIAL_MIN 4
36 #define SCAN_EXPONENTIAL_MAX 128
40 WIFI_BGSCAN_MODE_EXPONENTIAL = 0x00,
41 WIFI_BGSCAN_MODE_PERIODIC,
45 void netconfig_wifi_scan_set_scanning(const char *interface_name, gboolean scanning);
46 guint netconfig_wifi_scan_get_scanning(const char *interface_name);
48 gboolean netconfig_wifi_bgscan_set_mode(const char *interface_name, guint mode);
49 guint netconfig_wifi_bgscan_get_mode(const char *interface_name);
50 void netconfig_wifi_bgscan_set_timer_id(const char *interface_name, guint timer_id);
51 guint netconfig_wifi_bgscan_get_timer_id(const char *interface_name);
52 gboolean netconfig_wifi_bgscan_set_interval(const char *interface_name, guint interval);
53 guint netconfig_wifi_bgscan_get_interval(const char *interface_name);
54 void netconfig_wifi_bgscan_set_pause(const char *interface_name, gboolean pause);
55 gboolean netconfig_wifi_bgscan_is_paused(const char *interface_name);
56 void netconfig_wifi_bgscan_start_timer(const char *interface_name, gboolean immediate_scan);
57 void netconfig_wifi_bgscan_stop_timer(const char *interface_name);
59 void netconfig_wifi_bssidscan_set_mode(const char *interface_name, gboolean enable);
60 gboolean netconfig_wifi_bssidscan_get_mode(const char *interface_name);
61 void netconfig_wifi_bssidscan_set_aborted(const char *interface_name, gboolean abort);
62 gboolean netconfig_wifi_bssidscan_get_aborted(const char *interface_name);
63 void netconfig_wifi_bssidscan_set_scanning(const char *interface_name, gboolean scanning);
64 guint netconfig_wifi_bssidscan_get_scanning(const char *interface_name);
70 #endif /* __NETCONFIG_SCAN_H__ */