2014-07-29 21:25:01 +02:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Wireless daemon for Linux
|
|
|
|
*
|
2019-10-25 00:43:08 +02:00
|
|
|
* Copyright (C) 2013-2019 Intel Corporation. All rights reserved.
|
2014-07-29 21:25:01 +02:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2014-08-06 23:52:42 -07:00
|
|
|
#include <stdint.h>
|
2014-07-29 21:25:01 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2016-05-16 12:21:26 -05:00
|
|
|
struct wiphy;
|
2017-01-20 06:49:40 +01:00
|
|
|
struct scan_bss;
|
2019-04-11 12:14:27 -07:00
|
|
|
struct scan_freq_set;
|
2014-10-23 21:47:38 -05:00
|
|
|
|
2018-11-29 11:22:50 -06:00
|
|
|
enum wiphy_state_watch_event {
|
|
|
|
WIPHY_STATE_WATCH_EVENT_POWERED,
|
|
|
|
WIPHY_STATE_WATCH_EVENT_RFKILLED,
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef void (*wiphy_state_watch_func_t)(struct wiphy *wiphy,
|
|
|
|
enum wiphy_state_watch_event event,
|
|
|
|
void *user_data);
|
|
|
|
typedef void (*wiphy_destroy_func_t)(void *user_data);
|
|
|
|
|
2016-05-16 12:21:26 -05:00
|
|
|
enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy,
|
|
|
|
uint16_t mask);
|
2018-09-24 14:29:53 -07:00
|
|
|
enum ie_rsn_akm_suite wiphy_select_akm(struct wiphy *wiphy,
|
2019-04-19 12:59:03 -07:00
|
|
|
struct scan_bss *bss,
|
|
|
|
bool fils_capable_hint);
|
2016-05-16 12:21:26 -05:00
|
|
|
|
2016-06-01 15:20:33 -05:00
|
|
|
struct wiphy *wiphy_find(int wiphy_id);
|
|
|
|
|
2019-04-11 03:10:23 +02:00
|
|
|
struct wiphy *wiphy_create(uint32_t wiphy_id, const char *name);
|
2019-04-20 22:29:06 +02:00
|
|
|
void wiphy_create_complete(struct wiphy *wiphy);
|
2019-04-11 03:10:23 +02:00
|
|
|
bool wiphy_destroy(struct wiphy *wiphy);
|
2019-09-19 22:54:07 -05:00
|
|
|
void wiphy_update_from_genl(struct wiphy *wiphy, const char *name,
|
|
|
|
struct l_genl_msg *msg);
|
2019-04-11 03:10:23 +02:00
|
|
|
|
2019-04-11 12:14:27 -07:00
|
|
|
bool wiphy_constrain_freq_set(const struct wiphy *wiphy,
|
|
|
|
struct scan_freq_set *set);
|
|
|
|
|
2016-07-12 04:13:54 +02:00
|
|
|
const char *wiphy_get_path(struct wiphy *wiphy);
|
2016-09-13 14:36:46 -05:00
|
|
|
uint32_t wiphy_get_supported_bands(struct wiphy *wiphy);
|
2019-02-27 16:44:17 -08:00
|
|
|
const struct scan_freq_set *wiphy_get_supported_freqs(
|
|
|
|
const struct wiphy *wiphy);
|
2017-01-20 06:49:40 +01:00
|
|
|
bool wiphy_can_connect(struct wiphy *wiphy, struct scan_bss *bss);
|
2019-01-15 19:14:54 -08:00
|
|
|
bool wiphy_can_randomize_mac_addr(struct wiphy *wiphy);
|
2019-07-10 16:23:13 -05:00
|
|
|
bool wiphy_rrm_capable(struct wiphy *wiphy);
|
2018-05-24 10:12:10 -07:00
|
|
|
bool wiphy_has_feature(struct wiphy *wiphy, uint32_t feature);
|
2018-05-24 13:12:36 -05:00
|
|
|
bool wiphy_has_ext_feature(struct wiphy *wiphy, uint32_t feature);
|
2018-05-08 15:54:40 -07:00
|
|
|
uint8_t wiphy_get_max_num_ssids_per_scan(struct wiphy *wiphy);
|
2019-11-06 17:16:23 -05:00
|
|
|
uint16_t wiphy_get_max_scan_ie_len(struct wiphy *wiphy);
|
2019-10-21 15:55:09 +02:00
|
|
|
uint32_t wiphy_get_max_roc_duration(struct wiphy *wiphy);
|
2018-08-07 11:53:31 -05:00
|
|
|
bool wiphy_supports_iftype(struct wiphy *wiphy, uint32_t iftype);
|
2019-10-28 15:04:53 +01:00
|
|
|
const uint8_t *wiphy_get_supported_rates(struct wiphy *wiphy, unsigned int band,
|
|
|
|
unsigned int *out_num);
|
2018-08-07 11:15:23 -05:00
|
|
|
bool wiphy_supports_adhoc_rsn(struct wiphy *wiphy);
|
2019-06-14 10:06:35 -07:00
|
|
|
bool wiphy_can_offchannel_tx(struct wiphy *wiphy);
|
2019-09-13 15:26:30 -07:00
|
|
|
bool wiphy_supports_qos_set_map(struct wiphy *wiphy);
|
2019-05-08 03:15:26 +02:00
|
|
|
const char *wiphy_get_driver(struct wiphy *wiphy);
|
2019-07-01 18:28:07 -05:00
|
|
|
const char *wiphy_get_name(struct wiphy *wiphy);
|
2019-07-01 14:42:12 -05:00
|
|
|
const uint8_t *wiphy_get_permanent_address(struct wiphy *wiphy);
|
2019-07-10 10:53:07 -05:00
|
|
|
const uint8_t *wiphy_get_extended_capabilities(struct wiphy *wiphy,
|
|
|
|
uint32_t iftype);
|
2019-08-23 08:55:54 -05:00
|
|
|
const uint8_t *wiphy_get_rm_enabled_capabilities(struct wiphy *wiphy);
|
2018-08-07 11:15:23 -05:00
|
|
|
|
2019-07-01 18:28:26 -05:00
|
|
|
void wiphy_generate_random_address(struct wiphy *wiphy, uint8_t addr[static 6]);
|
|
|
|
|
2018-11-29 11:22:50 -06:00
|
|
|
uint32_t wiphy_state_watch_add(struct wiphy *wiphy,
|
|
|
|
wiphy_state_watch_func_t func, void *user_data,
|
|
|
|
wiphy_destroy_func_t destroy);
|
|
|
|
bool wiphy_state_watch_remove(struct wiphy *wiphy, uint32_t id);
|