License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 14:07:57 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2018-08-03 10:56:13 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 - 2018 Microchip Technology Inc., and its subsidiaries
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
2019-11-05 09:51:28 +00:00
|
|
|
#ifndef WILC_HIF_H
|
|
|
|
#define WILC_HIF_H
|
staging: wilc1000: Refactor handling of HT caps fields
This addresses the following sparse warnings:
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2006:51: warning: incorrect type in assignment (different base types)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2006:51: expected unsigned short [unsigned] [assigned] [usertype] ht_capa_info
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2006:51: got restricted __le16 const [usertype] cap_info
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2011:52: warning: incorrect type in assignment (different base types)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2011:52: expected unsigned short [unsigned] [assigned] [usertype] ht_ext_params
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2011:52: got restricted __le16 const [usertype] extended_ht_cap_info
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2012:51: warning: incorrect type in assignment (different base types)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2012:51: expected unsigned int [unsigned] [assigned] [usertype] ht_tx_bf_cap
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2012:51: got restricted __le32 const [usertype] tx_BF_cap_info
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2078:51: warning: incorrect type in assignment (different base types)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2078:51: expected unsigned short [unsigned] [assigned] [usertype] ht_capa_info
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2078:51: got restricted __le16 const [usertype] cap_info
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2083:52: warning: incorrect type in assignment (different base types)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2083:52: expected unsigned short [unsigned] [assigned] [usertype] ht_ext_params
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2083:52: got restricted __le16 const [usertype] extended_ht_cap_info
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2084:51: warning: incorrect type in assignment (different base types)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2084:51: expected unsigned int [unsigned] [assigned] [usertype] ht_tx_bf_cap
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:2084:51: got restricted __le32 const [usertype] tx_BF_cap_info
This is not the first attempt to address this problem:
https://lkml.org/lkml/2017/3/7/808
First, the current code works because the final use of the
ht_capa values (in host_interface.c: WILC_HostIf_PackStaParam) packs them
into a buffer in little-endian format. Since this matches the byte-order of
struct ieee80211_ht_cap, all is seemingly well.
What the current code does not do, and what these warnings expose, is
clearly communicate what the fields in struct add_sta_param
represent -- values with a specific (little endian) byte order.
This will lead to problems if the values are ever actually used by the
host, and that host is not little endian.
The proposed change addresses this by embedding a
struct ieee80211_ht_cap into struct add_sta_param. When the values
are later packed out, the newly embedded struct is copied directly
into the outbound buffer. All 16 and 32 bit types are treated as
little endian and marked as such. Future use of the values by the
host would still require conversion, or sparse would flag them again.
The following items are required for this to be correct:
1. The data is not currently used by the host.
2. struct ieee80211_ht_cap is packed.
3. The packing of the fields matches the order in
struct ieee80211_ht_cap.
This is similar, I believe, to how the same data is handled in
marvell/mwifiex/11n.c.
Test-compiled/loaded against staging-next on x86_64
Test-compiled against staging-next for ARM.
Applied/built against staging-testing.
Testing consists of compilation for the above trees/targets, and a
sparse check, no functional testing.
Signed-off-by: Jason Litzinger <jlitzingerdev@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-29 13:46:47 +00:00
|
|
|
#include <linux/ieee80211.h>
|
2019-11-05 09:51:25 +00:00
|
|
|
#include "wlan_if.h"
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2018-11-12 05:45:29 +00:00
|
|
|
enum {
|
|
|
|
WILC_IDLE_MODE = 0x0,
|
|
|
|
WILC_AP_MODE = 0x1,
|
|
|
|
WILC_STATION_MODE = 0x2,
|
|
|
|
WILC_GO_MODE = 0x3,
|
|
|
|
WILC_CLIENT_MODE = 0x4
|
|
|
|
};
|
|
|
|
|
|
|
|
#define WILC_MAX_NUM_PROBED_SSID 10
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2019-02-07 11:29:01 +00:00
|
|
|
#define WILC_TX_MIC_KEY_LEN 8
|
|
|
|
#define WILC_RX_MIC_KEY_LEN 8
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2015-10-02 07:41:15 +00:00
|
|
|
#define WILC_ADD_STA_LENGTH 40
|
2018-11-12 05:45:29 +00:00
|
|
|
#define WILC_NUM_CONCURRENT_IFC 2
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2018-11-12 05:45:29 +00:00
|
|
|
enum {
|
|
|
|
WILC_SET_CFG = 0,
|
|
|
|
WILC_GET_CFG
|
|
|
|
};
|
2018-11-01 16:45:26 +00:00
|
|
|
|
2018-11-12 05:45:29 +00:00
|
|
|
#define WILC_MAX_ASSOC_RESP_FRAME_SIZE 256
|
2018-11-01 16:45:26 +00:00
|
|
|
|
2015-10-12 07:55:58 +00:00
|
|
|
struct rf_info {
|
2015-10-29 03:05:29 +00:00
|
|
|
u8 link_speed;
|
2015-10-29 03:05:30 +00:00
|
|
|
s8 rssi;
|
2015-10-29 03:05:31 +00:00
|
|
|
u32 tx_cnt;
|
2015-10-29 03:05:32 +00:00
|
|
|
u32 rx_cnt;
|
2015-10-29 03:05:33 +00:00
|
|
|
u32 tx_fail_cnt;
|
2015-10-12 07:55:58 +00:00
|
|
|
};
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2015-10-12 07:55:53 +00:00
|
|
|
enum host_if_state {
|
2015-09-15 05:06:23 +00:00
|
|
|
HOST_IF_IDLE = 0,
|
|
|
|
HOST_IF_SCANNING = 1,
|
|
|
|
HOST_IF_CONNECTING = 2,
|
|
|
|
HOST_IF_WAITING_CONN_RESP = 3,
|
|
|
|
HOST_IF_CONNECTED = 4,
|
|
|
|
HOST_IF_P2P_LISTEN = 5,
|
|
|
|
HOST_IF_FORCE_32BIT = 0xFFFFFFFF
|
2015-10-12 07:55:53 +00:00
|
|
|
};
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2016-02-23 06:37:58 +00:00
|
|
|
struct cfg_param_attr {
|
2015-10-12 07:56:07 +00:00
|
|
|
u32 flag;
|
2015-06-11 05:35:54 +00:00
|
|
|
u16 short_retry_limit;
|
|
|
|
u16 long_retry_limit;
|
|
|
|
u16 frag_threshold;
|
|
|
|
u16 rts_threshold;
|
2015-10-05 06:25:46 +00:00
|
|
|
};
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2015-10-12 07:56:00 +00:00
|
|
|
enum cfg_param {
|
2018-11-12 05:45:29 +00:00
|
|
|
WILC_CFG_PARAM_RETRY_SHORT = BIT(0),
|
|
|
|
WILC_CFG_PARAM_RETRY_LONG = BIT(1),
|
|
|
|
WILC_CFG_PARAM_FRAG_THRESHOLD = BIT(2),
|
|
|
|
WILC_CFG_PARAM_RTS_THRESHOLD = BIT(3)
|
2015-10-12 07:56:00 +00:00
|
|
|
};
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2015-10-12 07:55:59 +00:00
|
|
|
enum scan_event {
|
|
|
|
SCAN_EVENT_NETWORK_FOUND = 0,
|
|
|
|
SCAN_EVENT_DONE = 1,
|
|
|
|
SCAN_EVENT_ABORTED = 2,
|
|
|
|
SCAN_EVENT_FORCE_32BIT = 0xFFFFFFFF
|
|
|
|
};
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2015-10-12 07:56:01 +00:00
|
|
|
enum conn_event {
|
2015-05-11 05:30:56 +00:00
|
|
|
CONN_DISCONN_EVENT_CONN_RESP = 0,
|
|
|
|
CONN_DISCONN_EVENT_DISCONN_NOTIF = 1,
|
2015-09-15 05:06:23 +00:00
|
|
|
CONN_DISCONN_EVENT_FORCE_32BIT = 0xFFFFFFFF
|
2015-10-12 07:56:01 +00:00
|
|
|
};
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2019-02-07 11:29:04 +00:00
|
|
|
enum {
|
|
|
|
WILC_HIF_SDIO = 0,
|
|
|
|
WILC_HIF_SPI = BIT(0)
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
WILC_MAC_STATUS_INIT = -1,
|
|
|
|
WILC_MAC_STATUS_DISCONNECTED = 0,
|
|
|
|
WILC_MAC_STATUS_CONNECTED = 1
|
|
|
|
};
|
|
|
|
|
2019-01-17 13:21:21 +00:00
|
|
|
struct wilc_rcvd_net_info {
|
|
|
|
s8 rssi;
|
|
|
|
u8 ch;
|
|
|
|
u16 frame_len;
|
|
|
|
struct ieee80211_mgmt *mgmt;
|
|
|
|
};
|
|
|
|
|
2019-02-07 11:29:01 +00:00
|
|
|
struct wilc_user_scan_req {
|
2019-01-17 13:21:44 +00:00
|
|
|
void (*scan_result)(enum scan_event evt,
|
|
|
|
struct wilc_rcvd_net_info *info, void *priv);
|
2015-10-29 02:58:51 +00:00
|
|
|
void *arg;
|
2018-07-29 06:06:55 +00:00
|
|
|
u32 ch_cnt;
|
2015-10-12 07:55:51 +00:00
|
|
|
};
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2019-01-17 13:21:32 +00:00
|
|
|
struct wilc_conn_info {
|
|
|
|
u8 bssid[ETH_ALEN];
|
2016-02-12 14:04:42 +00:00
|
|
|
u8 security;
|
2018-07-18 22:45:04 +00:00
|
|
|
enum authtype auth_type;
|
2018-12-02 18:03:34 +00:00
|
|
|
u8 ch;
|
2019-01-17 13:21:32 +00:00
|
|
|
u8 *req_ies;
|
|
|
|
size_t req_ies_len;
|
|
|
|
u8 *resp_ies;
|
|
|
|
u16 resp_ies_len;
|
|
|
|
u16 status;
|
2019-01-17 13:21:38 +00:00
|
|
|
void (*conn_result)(enum conn_event evt, u8 status, void *priv_data);
|
2015-10-29 03:05:27 +00:00
|
|
|
void *arg;
|
2018-12-02 18:03:34 +00:00
|
|
|
void *param;
|
2015-10-12 07:55:52 +00:00
|
|
|
};
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2019-02-07 11:29:01 +00:00
|
|
|
struct wilc_remain_ch {
|
2015-10-29 02:58:41 +00:00
|
|
|
u16 ch;
|
2016-01-03 08:35:33 +00:00
|
|
|
u32 duration;
|
2019-02-05 07:15:39 +00:00
|
|
|
void (*expired)(void *priv, u64 cookie);
|
2015-10-29 02:58:44 +00:00
|
|
|
void *arg;
|
2019-02-05 07:15:39 +00:00
|
|
|
u32 cookie;
|
2015-09-21 03:16:58 +00:00
|
|
|
};
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2015-11-18 06:11:32 +00:00
|
|
|
struct wilc;
|
2015-10-12 07:55:35 +00:00
|
|
|
struct host_if_drv {
|
2019-02-07 11:29:01 +00:00
|
|
|
struct wilc_user_scan_req usr_scan_req;
|
2019-01-17 13:21:32 +00:00
|
|
|
struct wilc_conn_info conn_info;
|
2019-02-07 11:29:01 +00:00
|
|
|
struct wilc_remain_ch remain_on_ch;
|
2015-10-29 03:05:39 +00:00
|
|
|
u64 p2p_timeout;
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2015-10-29 02:58:24 +00:00
|
|
|
enum host_if_state hif_state;
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2015-10-29 02:58:25 +00:00
|
|
|
u8 assoc_bssid[ETH_ALEN];
|
2015-10-29 02:58:34 +00:00
|
|
|
|
|
|
|
struct timer_list scan_timer;
|
2017-10-16 23:24:32 +00:00
|
|
|
struct wilc_vif *scan_timer_vif;
|
|
|
|
|
2015-10-29 02:58:35 +00:00
|
|
|
struct timer_list connect_timer;
|
2017-10-16 23:24:32 +00:00
|
|
|
struct wilc_vif *connect_timer_vif;
|
|
|
|
|
2015-10-29 02:58:36 +00:00
|
|
|
struct timer_list remain_on_ch_timer;
|
2017-10-16 23:24:32 +00:00
|
|
|
struct wilc_vif *remain_on_ch_timer_vif;
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2018-07-18 22:45:09 +00:00
|
|
|
bool ifc_up;
|
2018-11-12 05:45:29 +00:00
|
|
|
u8 assoc_resp[WILC_MAX_ASSOC_RESP_FRAME_SIZE];
|
2015-10-12 07:55:35 +00:00
|
|
|
};
|
2015-05-11 05:30:56 +00:00
|
|
|
|
2015-12-21 05:18:39 +00:00
|
|
|
struct wilc_vif;
|
2015-12-21 05:18:40 +00:00
|
|
|
int wilc_remove_wep_key(struct wilc_vif *vif, u8 index);
|
|
|
|
int wilc_set_wep_default_keyid(struct wilc_vif *vif, u8 index);
|
|
|
|
int wilc_add_wep_key_bss_sta(struct wilc_vif *vif, const u8 *key, u8 len,
|
|
|
|
u8 index);
|
|
|
|
int wilc_add_wep_key_bss_ap(struct wilc_vif *vif, const u8 *key, u8 len,
|
2018-07-18 22:45:04 +00:00
|
|
|
u8 index, u8 mode, enum authtype auth_type);
|
2015-12-22 00:48:58 +00:00
|
|
|
int wilc_add_ptk(struct wilc_vif *vif, const u8 *ptk, u8 ptk_key_len,
|
|
|
|
const u8 *mac_addr, const u8 *rx_mic, const u8 *tx_mic,
|
|
|
|
u8 mode, u8 cipher_mode, u8 index);
|
2015-12-21 05:18:40 +00:00
|
|
|
s32 wilc_get_inactive_time(struct wilc_vif *vif, const u8 *mac,
|
2018-04-23 16:33:35 +00:00
|
|
|
u32 *out_val);
|
2015-12-22 00:49:00 +00:00
|
|
|
int wilc_add_rx_gtk(struct wilc_vif *vif, const u8 *rx_gtk, u8 gtk_key_len,
|
|
|
|
u8 index, u32 key_rsc_len, const u8 *key_rsc,
|
|
|
|
const u8 *rx_mic, const u8 *tx_mic, u8 mode,
|
|
|
|
u8 cipher_mode);
|
2018-12-02 18:03:11 +00:00
|
|
|
int wilc_set_pmkid_info(struct wilc_vif *vif, struct wilc_pmkid_attr *pmkid);
|
2015-12-22 00:49:07 +00:00
|
|
|
int wilc_get_mac_address(struct wilc_vif *vif, u8 *mac_addr);
|
2019-01-17 13:21:32 +00:00
|
|
|
int wilc_set_join_req(struct wilc_vif *vif, u8 *bssid, const u8 *ies,
|
|
|
|
size_t ies_len);
|
2018-12-02 18:03:28 +00:00
|
|
|
int wilc_disconnect(struct wilc_vif *vif);
|
2015-12-21 05:18:40 +00:00
|
|
|
int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
|
2015-12-24 07:52:37 +00:00
|
|
|
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
|
2016-01-05 14:06:47 +00:00
|
|
|
int wilc_scan(struct wilc_vif *vif, u8 scan_source, u8 scan_type,
|
2019-03-25 22:27:26 +00:00
|
|
|
u8 *ch_freq_list, u8 ch_list_len,
|
2019-01-17 13:21:44 +00:00
|
|
|
void (*scan_result_fn)(enum scan_event,
|
|
|
|
struct wilc_rcvd_net_info *, void *),
|
2019-03-25 22:27:26 +00:00
|
|
|
void *user_arg, struct cfg80211_scan_request *request);
|
2016-02-05 01:35:11 +00:00
|
|
|
int wilc_hif_set_cfg(struct wilc_vif *vif,
|
2016-02-23 06:37:58 +00:00
|
|
|
struct cfg_param_attr *cfg_param);
|
2016-01-05 14:06:57 +00:00
|
|
|
int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler);
|
2016-02-05 01:35:13 +00:00
|
|
|
int wilc_deinit(struct wilc_vif *vif);
|
2016-01-03 08:35:57 +00:00
|
|
|
int wilc_add_beacon(struct wilc_vif *vif, u32 interval, u32 dtim_period,
|
2018-12-02 18:02:48 +00:00
|
|
|
struct cfg80211_beacon_data *params);
|
2015-12-21 05:18:40 +00:00
|
|
|
int wilc_del_beacon(struct wilc_vif *vif);
|
2018-12-02 18:02:34 +00:00
|
|
|
int wilc_add_station(struct wilc_vif *vif, const u8 *mac,
|
|
|
|
struct station_parameters *params);
|
2016-01-03 08:35:50 +00:00
|
|
|
int wilc_del_allstation(struct wilc_vif *vif, u8 mac_addr[][ETH_ALEN]);
|
2015-12-21 05:18:40 +00:00
|
|
|
int wilc_del_station(struct wilc_vif *vif, const u8 *mac_addr);
|
2018-12-02 18:02:34 +00:00
|
|
|
int wilc_edit_station(struct wilc_vif *vif, const u8 *mac,
|
|
|
|
struct station_parameters *params);
|
2015-12-30 12:15:32 +00:00
|
|
|
int wilc_set_power_mgmt(struct wilc_vif *vif, bool enabled, u32 timeout);
|
2019-01-17 13:21:41 +00:00
|
|
|
int wilc_setup_multicast_filter(struct wilc_vif *vif, u32 enabled, u32 count,
|
2018-09-04 06:39:26 +00:00
|
|
|
u8 *mc_list);
|
2019-02-05 07:15:39 +00:00
|
|
|
int wilc_remain_on_channel(struct wilc_vif *vif, u64 cookie,
|
2016-01-03 08:35:36 +00:00
|
|
|
u32 duration, u16 chan,
|
2019-02-05 07:15:39 +00:00
|
|
|
void (*expired)(void *, u64),
|
2016-01-03 08:35:39 +00:00
|
|
|
void *user_arg);
|
2019-02-05 07:15:39 +00:00
|
|
|
int wilc_listen_state_expired(struct wilc_vif *vif, u64 cookie);
|
2018-09-25 06:23:16 +00:00
|
|
|
void wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg);
|
2019-08-01 20:15:11 +00:00
|
|
|
int wilc_set_operation_mode(struct wilc_vif *vif, int index, u8 mode,
|
|
|
|
u8 ifc_id);
|
2018-12-02 18:03:25 +00:00
|
|
|
int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats);
|
2015-12-21 05:18:44 +00:00
|
|
|
int wilc_get_vif_idx(struct wilc_vif *vif);
|
2016-02-04 09:15:27 +00:00
|
|
|
int wilc_set_tx_power(struct wilc_vif *vif, u8 tx_power);
|
|
|
|
int wilc_get_tx_power(struct wilc_vif *vif, u8 *tx_power);
|
2018-11-01 16:45:26 +00:00
|
|
|
void wilc_scan_complete_received(struct wilc *wilc, u8 *buffer, u32 length);
|
|
|
|
void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length);
|
|
|
|
void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *buffer, u32 length);
|
2019-01-17 13:21:27 +00:00
|
|
|
void *wilc_parse_join_bss_param(struct cfg80211_bss *bss,
|
|
|
|
struct cfg80211_crypto_settings *crypto);
|
2015-05-11 05:30:56 +00:00
|
|
|
#endif
|