blob: 24a7cd25c539a8c6817053340149e5fda4f1ffdb [file] [log] [blame]
Paul Zhang37185672019-05-14 11:20:14 +08001/*
2 * Copyright (c) 2019 The Linux Foundation. All rights reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all
7 * copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18
19/**
20 * DOC: wlan_cfg80211_interop_issues_ap.h
21 *
22 * This Header file provide declaration for cfg80211 command handler API
23 */
24
25#ifndef __WLAN_CFG80211_INTEROP_ISSUES_AP_H__
26#define __WLAN_CFG80211_INTEROP_ISSUES_AP_H__
27
28#include <wlan_objmgr_cmn.h>
29#include <qdf_types.h>
30#include <net/cfg80211.h>
31
32#ifdef WLAN_FEATURE_INTEROP_ISSUES_AP
33
34#define FEATURE_INTEROP_ISSUES_AP_VENDOR_COMMANDS \
35{ \
36 .info.vendor_id = QCA_NL80211_VENDOR_ID, \
37 .info.subcmd = QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP, \
38 .flags = WIPHY_VENDOR_CMD_NEED_WDEV | \
39 WIPHY_VENDOR_CMD_NEED_NETDEV | \
40 WIPHY_VENDOR_CMD_NEED_RUNNING, \
41 .doit = wlan_cfg80211_set_interop_issues_ap_config \
42},
43
44#define FEATURE_INTEROP_ISSUES_AP_VENDOR_COMMANDS_INDEX \
45 [QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX] = { \
46 .vendor_id = QCA_NL80211_VENDOR_ID, \
47 .subcmd = QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP \
48 },
49
50/**
51 * wlan_cfg80211_init_interop_issues_ap() - init interop issues ap setting
52 * @pdev: the pointer of pdev object
53 *
54 * Return: none
55 */
56void wlan_cfg80211_init_interop_issues_ap(struct wlan_objmgr_pdev *pdev);
57
58/**
59 * wlan_cfg80211_set_interop_issues_ap_config() - set interop issues ap config
60 * @wiphy: pointer to wireless wiphy structure
61 * @wdev: pointer to wireless_dev structure
62 * @data: Pointer to the data to be passed via vendor interface
63 * @data_len: Length of the data to be passed
64 *
65 * Return: Return the Success or Failure code
66 */
67int wlan_cfg80211_set_interop_issues_ap_config(struct wiphy *wiphy,
68 struct wireless_dev *wdev,
69 const void *data, int data_len);
70#else
71static inline
72void wlan_cfg80211_init_interop_issues_ap(struct wlan_objmgr_pdev *pdev) {}
73#define FEATURE_INTEROP_ISSUES_AP_VENDOR_COMMANDS
74#define FEATURE_INTEROP_ISSUES_AP_VENDOR_COMMANDS_INDEX
75#endif
76#endif /* __WLAN_CFG80211_INTEROP_ISSUES_AP_H__ */