6 * Copyright (C) 2017 Samsung Electronics Co., Ltd.
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.
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.
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
23 #ifndef __CONNMAN_MESH_NETLINK_H
24 #define __CONNMAN_MESH_NETLINK_H
32 struct nl_sock *nl_socket;
34 } mesh_nl80211_global;
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
41 #define NL80211_ATTR_IFINDEX 3
42 #define NL80211_CMD_SET_MESH_CONFIG 29
43 #define NL80211_ATTR_MESH_CONFIG 35
45 #define NL80211_MESHCONF_HWMP_ROOTMODE 14
46 #define NL80211_MESHCONF_GATE_ANNOUNCEMENTS 17
48 int __connman_mesh_netlink_set_gate_announce(mesh_nl80211_global *global,
49 int mesh_if_index, bool gate_announce, int hwmp_rootmode);
51 mesh_nl80211_global *__connman_mesh_nl80211_global_init(void);
52 void __connman_mesh_nl80211_global_deinit(mesh_nl80211_global *global);
58 #endif /* __CONNMAN_MESH_NETLINK_H */