blob: d086ae0d4a4dce329386e1ba7ecb2062e1456305 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
Jeff Johnson9755a512017-08-28 12:01:57 -07002 * Copyright (c) 2012-2014, 2017 The Linux Foundation. All rights reserved.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22#if !defined(WLAN_HDD_EXT_SCAN_H)
23#define WLAN_HDD_EXT_SCAN_H
24
25/**
26 * DOC: wlan_hdd_ext_scan.h
27 *
28 * WLAN Host Device Driver EXT SCAN feature implementation
29 *
30 */
31
Jeff Johnson9755a512017-08-28 12:01:57 -070032struct hdd_context;
33
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080034#ifdef FEATURE_WLAN_EXTSCAN
35
36#include "wlan_hdd_main.h"
37
38/*
39 * Used to allocate the size of 4096 for the EXTScan NL data.
40 * The size of 4096 is considered assuming that all data per
41 * respective event fit with in the limit.Please take a call
42 * on the limit based on the data requirements.
43 */
44
45#define EXTSCAN_EVENT_BUF_SIZE 4096
46
47int wlan_hdd_cfg80211_extscan_start(struct wiphy *wiphy,
48 struct wireless_dev *wdev,
49 const void *data, int data_len);
50
51int wlan_hdd_cfg80211_extscan_stop(struct wiphy *wiphy,
52 struct wireless_dev *wdev,
53 const void *data, int data_len);
54
55int wlan_hdd_cfg80211_extscan_get_valid_channels(struct wiphy *wiphy,
56 struct wireless_dev
57 *wdev, const void *data,
58 int data_len);
59
60int wlan_hdd_cfg80211_extscan_get_capabilities(struct wiphy *wiphy,
61 struct wireless_dev *wdev,
62 const void *data, int data_len);
63
64int wlan_hdd_cfg80211_extscan_get_cached_results(struct wiphy *wiphy,
65 struct wireless_dev
66 *wdev, const void *data,
67 int data_len);
68
69int wlan_hdd_cfg80211_extscan_set_bssid_hotlist(struct wiphy *wiphy,
70 struct wireless_dev
71 *wdev, const void *data,
72 int data_len);
73
74int wlan_hdd_cfg80211_extscan_reset_bssid_hotlist(struct wiphy *wiphy,
75 struct wireless_dev
76 *wdev, const void *data,
77 int data_len);
78
79int wlan_hdd_cfg80211_extscan_set_significant_change(struct wiphy *wiphy,
80 struct wireless_dev
81 *wdev, const void *data,
82 int data_len);
83
84int wlan_hdd_cfg80211_extscan_reset_significant_change(struct wiphy
85 *wiphy,
86 struct
87 wireless_dev
88 *wdev, const void *data,
89 int data_len);
90
91int wlan_hdd_cfg80211_set_epno_list(struct wiphy *wiphy,
92 struct wireless_dev *wdev,
93 const void *data,
94 int data_len);
95
96int wlan_hdd_cfg80211_set_passpoint_list(struct wiphy *wiphy,
97 struct wireless_dev *wdev,
98 const void *data,
99 int data_len);
100
101int wlan_hdd_cfg80211_reset_passpoint_list(struct wiphy *wiphy,
102 struct wireless_dev *wdev,
103 const void *data,
104 int data_len);
105
106int
107wlan_hdd_cfg80211_extscan_set_ssid_hotlist(struct wiphy *wiphy,
108 struct wireless_dev *wdev,
109 const void *data,
110 int data_len);
111
112int
113wlan_hdd_cfg80211_extscan_reset_ssid_hotlist(struct wiphy *wiphy,
114 struct wireless_dev *wdev,
115 const void *data,
116 int data_len);
117
Jeff Johnson9755a512017-08-28 12:01:57 -0700118void wlan_hdd_cfg80211_extscan_init(struct hdd_context *hdd_ctx);
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800119
120#else /* FEATURE_WLAN_EXTSCAN */
121
Jeff Johnson9755a512017-08-28 12:01:57 -0700122static void wlan_hdd_cfg80211_extscan_init(struct hdd_context *hdd_ctx)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800123{
124}
125
126#endif /* End of FEATURE_WLAN_EXTSCAN */
127
128#endif /* end #if !defined(WLAN_HDD_EXT_SCAN_H) */
129