mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-06 03:59:22 +01:00
d8a6fb86c1
iwd_notice is being added so modules can communicate internal state or event information via the NOTICE log level. This log level will be reserved in IWD for only these type of messages. The iwd_notice macro aims to help enforce some formatting requirements for these type of log messages. The messages should be one or more comma-separated "key: value" pairs starting with "event: <name>" and followed by any additional info that pertains to that event. iwd_notice only enforces the initial event key/value format and additional arguments are left to the caller to be formatted correctly.
59 lines
2.0 KiB
C
59 lines
2.0 KiB
C
/*
|
|
*
|
|
* Wireless daemon for Linux
|
|
*
|
|
* Copyright (C) 2013-2019 Intel Corporation. All rights reserved.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* Set a maximum to prevent sending too much data to the kernel when hashing
|
|
* the password (or any other crypto operations involving the password).
|
|
* This value is not tied to IEEE or any RFC's, just chosen to be long enough
|
|
*/
|
|
#define IWD_MAX_PASSWORD_LEN 2048
|
|
|
|
struct l_genl;
|
|
struct l_genl_family;
|
|
|
|
const struct l_settings *iwd_get_config(void);
|
|
struct l_genl *iwd_get_genl(void);
|
|
struct l_netlink *iwd_get_rtnl(void);
|
|
|
|
void netdev_shutdown(void);
|
|
|
|
const char *iwd_get_iface_whitelist(void);
|
|
const char *iwd_get_iface_blacklist(void);
|
|
|
|
const char *iwd_get_phy_whitelist(void);
|
|
const char *iwd_get_phy_blacklist(void);
|
|
bool iwd_is_developer_mode(void);
|
|
|
|
#define IWD_NOTICE_STATE "state"
|
|
#define IWD_NOTICE_CONNECT_INFO "connect-info"
|
|
#define IWD_NOTICE_ROAM_INFO "roam-info"
|
|
#define IWD_NOTICE_DISCONNECT_INFO "disconnect-info"
|
|
#define IWD_NOTICE_FT_ROAM_FAILED "ft-roam-failed"
|
|
#define IWD_NOTICE_CONNECT_FAILED "connect-failed"
|
|
#define IWD_NOTICE_AUTH_TIMEOUT "authentication-timeout"
|
|
#define IWD_NOTICE_ASSOC_TIMEOUT "association-timeout"
|
|
#define IWD_NOTICE_CONNECT_TIMEOUT "connect-timeout"
|
|
#define IWD_NOTICE_ROAM_SCAN "roam-scan"
|
|
|
|
#define iwd_notice(event, ...) \
|
|
l_notice("event: " event ", " __VA_ARGS__)
|