DA: Skip initializing failed_bssids list when eapol failure case
[platform/upstream/connman.git] / include / mesh-netlink.h
1 /*
2  *
3  *  Connection Manager
4  *
5  *
6  *  Copyright (C) 2017 Samsung Electronics Co., Ltd.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License version 2 as
10  *  published by the Free Software Foundation.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  *  02110-1301  USA
21  */
22
23 #ifndef __CONNMAN_MESH_NETLINK_H
24 #define __CONNMAN_MESH_NETLINK_H
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 typedef struct {
31         int id;
32         struct nl_sock *nl_socket;
33         struct nl_cb *cb;
34 } mesh_nl80211_global;
35
36 #define MESH_HWMP_ROOTMODE_NO_ROOT                                              0
37 #define MESH_HWMP_ROOTMODE_PROACTIVE_PREQ_NO_PREP               2
38 #define MESH_HWMP_ROOTMODE_PROACTIVE_PREQ_WITH_PREP             3
39 #define MESH_HWMP_ROOTMODE_RANN                                                 4
40
41 #define NL80211_ATTR_IFINDEX                                                    3
42 #define NL80211_CMD_SET_MESH_CONFIG                                             29
43 #define NL80211_ATTR_MESH_CONFIG                                                35
44
45 #define NL80211_MESHCONF_HWMP_ROOTMODE                                  14
46 #define NL80211_MESHCONF_GATE_ANNOUNCEMENTS                             17
47
48 int __connman_mesh_netlink_set_gate_announce(mesh_nl80211_global *global,
49                                         int mesh_if_index, bool gate_announce, int hwmp_rootmode);
50
51 mesh_nl80211_global *__connman_mesh_nl80211_global_init(void);
52 void __connman_mesh_nl80211_global_deinit(mesh_nl80211_global *global);
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif /* __CONNMAN_MESH_NETLINK_H */