iwd.h (2094B)
1 /* 2 * 3 * Wireless daemon for Linux 4 * 5 * Copyright (C) 2013-2019 Intel Corporation. All rights reserved. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This library 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 GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 * 21 */ 22 23 /* 24 * Set a maximum to prevent sending too much data to the kernel when hashing 25 * the password (or any other crypto operations involving the password). 26 * This value is not tied to IEEE or any RFC's, just chosen to be long enough 27 */ 28 #define IWD_MAX_PASSWORD_LEN 2048 29 30 struct l_genl; 31 struct l_genl_family; 32 33 const struct l_settings *iwd_get_config(void); 34 struct l_genl *iwd_get_genl(void); 35 struct l_netlink *iwd_get_rtnl(void); 36 37 void netdev_shutdown(void); 38 39 const char *iwd_get_iface_whitelist(void); 40 const char *iwd_get_iface_blacklist(void); 41 42 const char *iwd_get_phy_whitelist(void); 43 const char *iwd_get_phy_blacklist(void); 44 bool iwd_is_developer_mode(void); 45 46 #define IWD_NOTICE_STATE "state" 47 #define IWD_NOTICE_CONNECT_INFO "connect-info" 48 #define IWD_NOTICE_ROAM_INFO "roam-info" 49 #define IWD_NOTICE_DISCONNECT_INFO "disconnect-info" 50 #define IWD_NOTICE_FT_ROAM_FAILED "ft-roam-failed" 51 #define IWD_NOTICE_CONNECT_FAILED "connect-failed" 52 #define IWD_NOTICE_AUTH_TIMEOUT "authentication-timeout" 53 #define IWD_NOTICE_ASSOC_TIMEOUT "association-timeout" 54 #define IWD_NOTICE_CONNECT_TIMEOUT "connect-timeout" 55 #define IWD_NOTICE_ROAM_SCAN "roam-scan" 56 57 #define iwd_notice(event, ...) \ 58 l_notice("event: " event ", " __VA_ARGS__)