Commit | Line | Data |
---|---|---|
5e6e3a92 BZ |
1 | /* |
2 | * Marvell Wireless LAN device driver: major data structures and prototypes | |
3 | * | |
4 | * Copyright (C) 2011, Marvell International Ltd. | |
5 | * | |
6 | * This software file (the "File") is distributed by Marvell International | |
7 | * Ltd. under the terms of the GNU General Public License Version 2, June 1991 | |
8 | * (the "License"). You may use, redistribute and/or modify this File in | |
9 | * accordance with the terms and conditions of the License, a copy of which | |
10 | * is available by writing to the Free Software Foundation, Inc., | |
11 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the | |
12 | * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. | |
13 | * | |
14 | * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE | |
15 | * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE | |
16 | * ARE EXPRESSLY DISCLAIMED. The License provides additional details about | |
17 | * this warranty disclaimer. | |
18 | */ | |
19 | ||
20 | #ifndef _MWIFIEX_MAIN_H_ | |
21 | #define _MWIFIEX_MAIN_H_ | |
22 | ||
23 | #include <linux/kernel.h> | |
24 | #include <linux/module.h> | |
25 | #include <linux/sched.h> | |
26 | #include <linux/semaphore.h> | |
27 | #include <linux/ip.h> | |
28 | #include <linux/skbuff.h> | |
29 | #include <linux/if_arp.h> | |
30 | #include <linux/etherdevice.h> | |
31 | #include <net/sock.h> | |
32 | #include <net/lib80211.h> | |
92c2538f | 33 | #include <linux/vmalloc.h> |
5e6e3a92 BZ |
34 | #include <linux/firmware.h> |
35 | #include <linux/ctype.h> | |
699b027b | 36 | #include <linux/of.h> |
5e6e3a92 BZ |
37 | |
38 | #include "decl.h" | |
39 | #include "ioctl.h" | |
40 | #include "util.h" | |
41 | #include "fw.h" | |
d930faee | 42 | #include "pcie.h" |
5e6e3a92 BZ |
43 | |
44 | extern const char driver_version[]; | |
5e6e3a92 BZ |
45 | |
46 | enum { | |
600f5d90 AK |
47 | MWIFIEX_ASYNC_CMD, |
48 | MWIFIEX_SYNC_CMD | |
5e6e3a92 BZ |
49 | }; |
50 | ||
67a50035 BZ |
51 | #define MWIFIEX_MAX_AP 64 |
52 | ||
5e6e3a92 BZ |
53 | #define MWIFIEX_DEFAULT_WATCHDOG_TIMEOUT (5 * HZ) |
54 | ||
55 | #define MWIFIEX_TIMER_10S 10000 | |
56 | #define MWIFIEX_TIMER_1S 1000 | |
57 | ||
62a5b7dc MY |
58 | #define MAX_TX_PENDING 100 |
59 | #define LOW_TX_PENDING 80 | |
5e6e3a92 | 60 | |
5e6e3a92 BZ |
61 | #define MWIFIEX_UPLD_SIZE (2312) |
62 | ||
21f58d20 | 63 | #define MAX_EVENT_SIZE 2048 |
5e6e3a92 BZ |
64 | |
65 | #define ARP_FILTER_MAX_BUF_SIZE 68 | |
66 | ||
67 | #define MWIFIEX_KEY_BUFFER_SIZE 16 | |
68 | #define MWIFIEX_DEFAULT_LISTEN_INTERVAL 10 | |
69 | #define MWIFIEX_MAX_REGION_CODE 7 | |
70 | ||
71 | #define DEFAULT_BCN_AVG_FACTOR 8 | |
72 | #define DEFAULT_DATA_AVG_FACTOR 8 | |
73 | ||
74 | #define FIRST_VALID_CHANNEL 0xff | |
75 | #define DEFAULT_AD_HOC_CHANNEL 6 | |
76 | #define DEFAULT_AD_HOC_CHANNEL_A 36 | |
77 | ||
78 | #define DEFAULT_BCN_MISS_TIMEOUT 5 | |
79 | ||
80 | #define MAX_SCAN_BEACON_BUFFER 8000 | |
81 | ||
82 | #define SCAN_BEACON_ENTRY_PAD 6 | |
83 | ||
38e8b7d9 BZ |
84 | #define MWIFIEX_PASSIVE_SCAN_CHAN_TIME 110 |
85 | #define MWIFIEX_ACTIVE_SCAN_CHAN_TIME 30 | |
86 | #define MWIFIEX_SPECIFIC_SCAN_CHAN_TIME 30 | |
5e6e3a92 BZ |
87 | |
88 | #define SCAN_RSSI(RSSI) (0x100 - ((u8)(RSSI))) | |
89 | ||
90 | #define MWIFIEX_MAX_TOTAL_SCAN_TIME (MWIFIEX_TIMER_10S - MWIFIEX_TIMER_1S) | |
91 | ||
3249ba73 | 92 | #define MWIFIEX_MAX_SCAN_DELAY_CNT 50 |
bdd37bed | 93 | #define MWIFIEX_MAX_EMPTY_TX_Q_CNT 10 |
3249ba73 AK |
94 | #define MWIFIEX_SCAN_DELAY_MSEC 20 |
95 | ||
de09364e AK |
96 | #define MWIFIEX_MIN_TX_PENDING_TO_CANCEL_SCAN 2 |
97 | ||
5e6e3a92 BZ |
98 | #define RSN_GTK_OUI_OFFSET 2 |
99 | ||
100 | #define MWIFIEX_OUI_NOT_PRESENT 0 | |
101 | #define MWIFIEX_OUI_PRESENT 1 | |
102 | ||
e39faa73 SP |
103 | #define PKT_TYPE_MGMT 0xE5 |
104 | ||
4daffe35 AK |
105 | /* |
106 | * Do not check for data_received for USB, as data_received | |
107 | * is handled in mwifiex_usb_recv for USB | |
108 | */ | |
5e6e3a92 | 109 | #define IS_CARD_RX_RCVD(adapter) (adapter->cmd_resp_received || \ |
4daffe35 AK |
110 | adapter->event_received || \ |
111 | ((adapter->iface_type != MWIFIEX_USB) && \ | |
112 | adapter->data_received) || \ | |
113 | ((adapter->iface_type == MWIFIEX_USB) && \ | |
114 | !skb_queue_empty(&adapter->usb_rx_data_q))) | |
5e6e3a92 BZ |
115 | |
116 | #define MWIFIEX_TYPE_CMD 1 | |
117 | #define MWIFIEX_TYPE_DATA 0 | |
118 | #define MWIFIEX_TYPE_EVENT 3 | |
119 | ||
a0b7315a | 120 | #define MAX_BITMAP_RATES_SIZE 18 |
5e6e3a92 BZ |
121 | |
122 | #define MAX_CHANNEL_BAND_BG 14 | |
a3c2c4f6 | 123 | #define MAX_CHANNEL_BAND_A 165 |
5e6e3a92 BZ |
124 | |
125 | #define MAX_FREQUENCY_BAND_BG 2484 | |
126 | ||
d930faee | 127 | #define MWIFIEX_EVENT_HEADER_LEN 4 |
e568634a | 128 | #define MWIFIEX_UAP_EVENT_EXTRA_HEADER 2 |
d930faee | 129 | |
4daffe35 AK |
130 | #define MWIFIEX_TYPE_LEN 4 |
131 | #define MWIFIEX_USB_TYPE_CMD 0xF00DFACE | |
132 | #define MWIFIEX_USB_TYPE_DATA 0xBEADC0DE | |
133 | #define MWIFIEX_USB_TYPE_EVENT 0xBEEFFACE | |
134 | ||
8908c7d5 AN |
135 | /* Threshold for tx_timeout_cnt before we trigger a card reset */ |
136 | #define TX_TIMEOUT_THRESHOLD 6 | |
137 | ||
5e6e3a92 BZ |
138 | struct mwifiex_dbg { |
139 | u32 num_cmd_host_to_card_failure; | |
140 | u32 num_cmd_sleep_cfm_host_to_card_failure; | |
141 | u32 num_tx_host_to_card_failure; | |
142 | u32 num_event_deauth; | |
143 | u32 num_event_disassoc; | |
144 | u32 num_event_link_lost; | |
145 | u32 num_cmd_deauth; | |
146 | u32 num_cmd_assoc_success; | |
147 | u32 num_cmd_assoc_failure; | |
148 | u32 num_tx_timeout; | |
5e6e3a92 BZ |
149 | u16 timeout_cmd_id; |
150 | u16 timeout_cmd_act; | |
151 | u16 last_cmd_id[DBG_CMD_NUM]; | |
152 | u16 last_cmd_act[DBG_CMD_NUM]; | |
153 | u16 last_cmd_index; | |
154 | u16 last_cmd_resp_id[DBG_CMD_NUM]; | |
155 | u16 last_cmd_resp_index; | |
156 | u16 last_event[DBG_CMD_NUM]; | |
157 | u16 last_event_index; | |
158 | }; | |
159 | ||
160 | enum MWIFIEX_HARDWARE_STATUS { | |
161 | MWIFIEX_HW_STATUS_READY, | |
162 | MWIFIEX_HW_STATUS_INITIALIZING, | |
163 | MWIFIEX_HW_STATUS_FW_READY, | |
164 | MWIFIEX_HW_STATUS_INIT_DONE, | |
165 | MWIFIEX_HW_STATUS_RESET, | |
166 | MWIFIEX_HW_STATUS_CLOSING, | |
167 | MWIFIEX_HW_STATUS_NOT_READY | |
168 | }; | |
169 | ||
170 | enum MWIFIEX_802_11_POWER_MODE { | |
171 | MWIFIEX_802_11_POWER_MODE_CAM, | |
172 | MWIFIEX_802_11_POWER_MODE_PSP | |
173 | }; | |
174 | ||
175 | struct mwifiex_tx_param { | |
176 | u32 next_pkt_len; | |
177 | }; | |
178 | ||
179 | enum MWIFIEX_PS_STATE { | |
180 | PS_STATE_AWAKE, | |
181 | PS_STATE_PRE_SLEEP, | |
182 | PS_STATE_SLEEP_CFM, | |
183 | PS_STATE_SLEEP | |
184 | }; | |
185 | ||
d930faee AK |
186 | enum mwifiex_iface_type { |
187 | MWIFIEX_SDIO, | |
188 | MWIFIEX_PCIE, | |
4daffe35 | 189 | MWIFIEX_USB |
d930faee AK |
190 | }; |
191 | ||
5e6e3a92 BZ |
192 | struct mwifiex_add_ba_param { |
193 | u32 tx_win_size; | |
194 | u32 rx_win_size; | |
195 | u32 timeout; | |
4c9f9fb2 AK |
196 | u8 tx_amsdu; |
197 | u8 rx_amsdu; | |
5e6e3a92 BZ |
198 | }; |
199 | ||
200 | struct mwifiex_tx_aggr { | |
201 | u8 ampdu_user; | |
202 | u8 ampdu_ap; | |
203 | u8 amsdu; | |
204 | }; | |
205 | ||
206 | struct mwifiex_ra_list_tbl { | |
207 | struct list_head list; | |
208 | struct sk_buff_head skb_head; | |
209 | u8 ra[ETH_ALEN]; | |
5e6e3a92 | 210 | u32 is_11n_enabled; |
5a009adf | 211 | u16 max_amsdu; |
f0cb84f8 | 212 | u16 ba_pkt_count; |
5a009adf | 213 | u8 ba_packet_thr; |
c7d9ed9e | 214 | u16 total_pkt_count; |
daeb5bb4 | 215 | bool tdls_link; |
5e6e3a92 BZ |
216 | }; |
217 | ||
218 | struct mwifiex_tid_tbl { | |
219 | struct list_head ra_list; | |
5e6e3a92 BZ |
220 | }; |
221 | ||
222 | #define WMM_HIGHEST_PRIORITY 7 | |
223 | #define HIGH_PRIO_TID 7 | |
224 | #define LOW_PRIO_TID 0 | |
225 | ||
226 | struct mwifiex_wmm_desc { | |
227 | struct mwifiex_tid_tbl tid_tbl_ptr[MAX_NUM_TID]; | |
228 | u32 packets_out[MAX_NUM_TID]; | |
229 | /* spin lock to protect ra_list */ | |
230 | spinlock_t ra_list_spinlock; | |
99fec5de JB |
231 | struct mwifiex_wmm_ac_status ac_status[IEEE80211_NUM_ACS]; |
232 | enum mwifiex_wmm_ac_e ac_down_graded_vals[IEEE80211_NUM_ACS]; | |
5e6e3a92 | 233 | u32 drv_pkt_delay_max; |
99fec5de | 234 | u8 queue_priority[IEEE80211_NUM_ACS]; |
5e6e3a92 | 235 | u32 user_pri_pkt_tx_ctrl[WMM_HIGHEST_PRIORITY + 1]; /* UP: 0 to 7 */ |
f699254c MY |
236 | /* Number of transmit packets queued */ |
237 | atomic_t tx_pkts_queued; | |
49729ff6 MY |
238 | /* Tracks highest priority with a packet queued */ |
239 | atomic_t highest_queued_prio; | |
5e6e3a92 BZ |
240 | }; |
241 | ||
242 | struct mwifiex_802_11_security { | |
243 | u8 wpa_enabled; | |
244 | u8 wpa2_enabled; | |
245 | u8 wapi_enabled; | |
246 | u8 wapi_key_on; | |
5eb02e44 | 247 | u8 wep_enabled; |
5e6e3a92 | 248 | u32 authentication_mode; |
a0f6d6ca | 249 | u8 is_authtype_auto; |
5e6e3a92 BZ |
250 | u32 encryption_mode; |
251 | }; | |
252 | ||
253 | struct ieee_types_header { | |
254 | u8 element_id; | |
255 | u8 len; | |
256 | } __packed; | |
257 | ||
5e6e3a92 BZ |
258 | struct ieee_types_vendor_specific { |
259 | struct ieee_types_vendor_header vend_hdr; | |
260 | u8 data[IEEE_MAX_IE_SIZE - sizeof(struct ieee_types_vendor_header)]; | |
261 | } __packed; | |
262 | ||
263 | struct ieee_types_generic { | |
264 | struct ieee_types_header ieee_hdr; | |
265 | u8 data[IEEE_MAX_IE_SIZE - sizeof(struct ieee_types_header)]; | |
266 | } __packed; | |
267 | ||
b23bce29 AP |
268 | struct ieee_types_bss_co_2040 { |
269 | struct ieee_types_header ieee_hdr; | |
270 | u8 bss_2040co; | |
271 | } __packed; | |
272 | ||
273 | struct ieee_types_extcap { | |
274 | struct ieee_types_header ieee_hdr; | |
275 | u8 ext_capab[8]; | |
276 | } __packed; | |
277 | ||
5f6d5983 AP |
278 | struct ieee_types_vht_cap { |
279 | struct ieee_types_header ieee_hdr; | |
280 | struct ieee80211_vht_cap vhtcap; | |
281 | } __packed; | |
282 | ||
283 | struct ieee_types_vht_oper { | |
284 | struct ieee_types_header ieee_hdr; | |
285 | struct ieee80211_vht_operation vhtoper; | |
286 | } __packed; | |
287 | ||
288 | struct ieee_types_aid { | |
289 | struct ieee_types_header ieee_hdr; | |
290 | u16 aid; | |
291 | } __packed; | |
292 | ||
5e6e3a92 BZ |
293 | struct mwifiex_bssdescriptor { |
294 | u8 mac_address[ETH_ALEN]; | |
b9be5f39 | 295 | struct cfg80211_ssid ssid; |
5e6e3a92 BZ |
296 | u32 privacy; |
297 | s32 rssi; | |
298 | u32 channel; | |
299 | u32 freq; | |
300 | u16 beacon_period; | |
301 | u8 erp_flags; | |
302 | u32 bss_mode; | |
303 | u8 supported_rates[MWIFIEX_SUPPORTED_RATES]; | |
304 | u8 data_rates[MWIFIEX_SUPPORTED_RATES]; | |
305 | /* Network band. | |
306 | * BAND_B(0x01): 'b' band | |
307 | * BAND_G(0x02): 'g' band | |
308 | * BAND_A(0X04): 'a' band | |
309 | */ | |
310 | u16 bss_band; | |
b5abcf02 AK |
311 | u64 fw_tsf; |
312 | u64 timestamp; | |
5e6e3a92 BZ |
313 | union ieee_types_phy_param_set phy_param_set; |
314 | union ieee_types_ss_param_set ss_param_set; | |
315 | u16 cap_info_bitmap; | |
316 | struct ieee_types_wmm_parameter wmm_ie; | |
317 | u8 disable_11n; | |
318 | struct ieee80211_ht_cap *bcn_ht_cap; | |
319 | u16 ht_cap_offset; | |
074d46d1 | 320 | struct ieee80211_ht_operation *bcn_ht_oper; |
5e6e3a92 BZ |
321 | u16 ht_info_offset; |
322 | u8 *bcn_bss_co_2040; | |
323 | u16 bss_co_2040_offset; | |
324 | u8 *bcn_ext_cap; | |
325 | u16 ext_cap_offset; | |
a5f39056 YAP |
326 | struct ieee80211_vht_cap *bcn_vht_cap; |
327 | u16 vht_cap_offset; | |
328 | struct ieee80211_vht_operation *bcn_vht_oper; | |
329 | u16 vht_info_offset; | |
330 | struct ieee_types_oper_mode_ntf *oper_mode; | |
331 | u16 oper_mode_offset; | |
332 | u8 disable_11ac; | |
5e6e3a92 BZ |
333 | struct ieee_types_vendor_specific *bcn_wpa_ie; |
334 | u16 wpa_offset; | |
335 | struct ieee_types_generic *bcn_rsn_ie; | |
336 | u16 rsn_offset; | |
337 | struct ieee_types_generic *bcn_wapi_ie; | |
338 | u16 wapi_offset; | |
339 | u8 *beacon_buf; | |
340 | u32 beacon_buf_size; | |
2a7305c8 AK |
341 | u8 sensed_11h; |
342 | u8 local_constraint; | |
343 | u8 chan_sw_ie_present; | |
5e6e3a92 BZ |
344 | }; |
345 | ||
346 | struct mwifiex_current_bss_params { | |
347 | struct mwifiex_bssdescriptor bss_descriptor; | |
348 | u8 wmm_enabled; | |
349 | u8 wmm_uapsd_enabled; | |
350 | u8 band; | |
351 | u32 num_of_rates; | |
352 | u8 data_rates[MWIFIEX_SUPPORTED_RATES]; | |
353 | }; | |
354 | ||
355 | struct mwifiex_sleep_params { | |
356 | u16 sp_error; | |
357 | u16 sp_offset; | |
358 | u16 sp_stable_time; | |
359 | u8 sp_cal_control; | |
360 | u8 sp_ext_sleep_clk; | |
361 | u16 sp_reserved; | |
362 | }; | |
363 | ||
364 | struct mwifiex_sleep_period { | |
365 | u16 period; | |
366 | u16 reserved; | |
367 | }; | |
368 | ||
369 | struct mwifiex_wep_key { | |
370 | u32 length; | |
371 | u32 key_index; | |
372 | u32 key_length; | |
373 | u8 key_material[MWIFIEX_KEY_BUFFER_SIZE]; | |
374 | }; | |
375 | ||
376 | #define MAX_REGION_CHANNEL_NUM 2 | |
377 | ||
378 | struct mwifiex_chan_freq_power { | |
379 | u16 channel; | |
380 | u32 freq; | |
381 | u16 max_tx_power; | |
382 | u8 unsupported; | |
383 | }; | |
384 | ||
385 | enum state_11d_t { | |
386 | DISABLE_11D = 0, | |
387 | ENABLE_11D = 1, | |
388 | }; | |
389 | ||
390 | #define MWIFIEX_MAX_TRIPLET_802_11D 83 | |
391 | ||
392 | struct mwifiex_802_11d_domain_reg { | |
393 | u8 country_code[IEEE80211_COUNTRY_STRING_LEN]; | |
394 | u8 no_of_triplet; | |
395 | struct ieee80211_country_ie_triplet | |
396 | triplet[MWIFIEX_MAX_TRIPLET_802_11D]; | |
397 | }; | |
398 | ||
399 | struct mwifiex_vendor_spec_cfg_ie { | |
400 | u16 mask; | |
401 | u16 flag; | |
402 | u8 ie[MWIFIEX_MAX_VSIE_LEN]; | |
403 | }; | |
404 | ||
405 | struct wps { | |
406 | u8 session_enable; | |
407 | }; | |
408 | ||
7feb4c48 SP |
409 | struct mwifiex_roc_cfg { |
410 | u64 cookie; | |
411 | struct ieee80211_channel chan; | |
7feb4c48 SP |
412 | }; |
413 | ||
92c2538f AK |
414 | #define MWIFIEX_FW_DUMP_IDX 0xff |
415 | #define FW_DUMP_MAX_NAME_LEN 8 | |
416 | #define FW_DUMP_HOST_READY 0xEE | |
417 | #define FW_DUMP_DONE 0xFF | |
418 | ||
419 | struct memory_type_mapping { | |
420 | u8 mem_name[FW_DUMP_MAX_NAME_LEN]; | |
421 | u8 *mem_ptr; | |
422 | u32 mem_size; | |
423 | u8 done_flag; | |
424 | }; | |
425 | ||
426 | enum rdwr_status { | |
427 | RDWR_STATUS_SUCCESS = 0, | |
428 | RDWR_STATUS_FAILURE = 1, | |
429 | RDWR_STATUS_DONE = 2 | |
430 | }; | |
431 | ||
432 | enum mwifiex_iface_work_flags { | |
433 | MWIFIEX_IFACE_WORK_FW_DUMP, | |
8915d738 | 434 | MWIFIEX_IFACE_WORK_CARD_RESET, |
92c2538f AK |
435 | }; |
436 | ||
5e6e3a92 BZ |
437 | struct mwifiex_adapter; |
438 | struct mwifiex_private; | |
439 | ||
440 | struct mwifiex_private { | |
441 | struct mwifiex_adapter *adapter; | |
5e6e3a92 BZ |
442 | u8 bss_type; |
443 | u8 bss_role; | |
444 | u8 bss_priority; | |
445 | u8 bss_num; | |
d6bffe8b | 446 | u8 bss_started; |
5e6e3a92 BZ |
447 | u8 frame_type; |
448 | u8 curr_addr[ETH_ALEN]; | |
449 | u8 media_connected; | |
450 | u32 num_tx_timeout; | |
8908c7d5 AN |
451 | /* track consecutive timeout */ |
452 | u8 tx_timeout_cnt; | |
5e6e3a92 BZ |
453 | struct net_device *netdev; |
454 | struct net_device_stats stats; | |
455 | u16 curr_pkt_filter; | |
456 | u32 bss_mode; | |
457 | u32 pkt_tx_ctrl; | |
458 | u16 tx_power_level; | |
459 | u8 max_tx_power_level; | |
460 | u8 min_tx_power_level; | |
461 | u8 tx_rate; | |
462 | u8 tx_htinfo; | |
463 | u8 rxpd_htinfo; | |
464 | u8 rxpd_rate; | |
465 | u16 rate_bitmap; | |
466 | u16 bitmap_rates[MAX_BITMAP_RATES_SIZE]; | |
467 | u32 data_rate; | |
468 | u8 is_data_rate_auto; | |
469 | u16 bcn_avg_factor; | |
470 | u16 data_avg_factor; | |
471 | s16 data_rssi_last; | |
472 | s16 data_nf_last; | |
473 | s16 data_rssi_avg; | |
474 | s16 data_nf_avg; | |
475 | s16 bcn_rssi_last; | |
476 | s16 bcn_nf_last; | |
477 | s16 bcn_rssi_avg; | |
478 | s16 bcn_nf_avg; | |
479 | struct mwifiex_bssdescriptor *attempted_bss_desc; | |
b9be5f39 | 480 | struct cfg80211_ssid prev_ssid; |
5e6e3a92 BZ |
481 | u8 prev_bssid[ETH_ALEN]; |
482 | struct mwifiex_current_bss_params curr_bss_params; | |
483 | u16 beacon_period; | |
caf60a6c | 484 | u8 dtim_period; |
5e6e3a92 BZ |
485 | u16 listen_interval; |
486 | u16 atim_window; | |
487 | u8 adhoc_channel; | |
488 | u8 adhoc_is_link_sensed; | |
489 | u8 adhoc_state; | |
490 | struct mwifiex_802_11_security sec_info; | |
491 | struct mwifiex_wep_key wep_key[NUM_WEP_KEYS]; | |
492 | u16 wep_key_curr_index; | |
493 | u8 wpa_ie[256]; | |
494 | u8 wpa_ie_len; | |
495 | u8 wpa_is_gtk_set; | |
496 | struct host_cmd_ds_802_11_key_material aes_key; | |
e57f1734 | 497 | struct host_cmd_ds_802_11_key_material_v2 aes_key_v2; |
5e6e3a92 BZ |
498 | u8 wapi_ie[256]; |
499 | u8 wapi_ie_len; | |
13d7ba78 AP |
500 | u8 *wps_ie; |
501 | u8 wps_ie_len; | |
5e6e3a92 BZ |
502 | u8 wmm_required; |
503 | u8 wmm_enabled; | |
504 | u8 wmm_qosinfo; | |
505 | struct mwifiex_wmm_desc wmm; | |
47411a06 | 506 | atomic_t wmm_tx_pending[IEEE80211_NUM_ACS]; |
017a92a1 AP |
507 | struct list_head sta_list; |
508 | /* spin lock for associated station list */ | |
509 | spinlock_t sta_list_spinlock; | |
5e6e3a92 BZ |
510 | struct list_head tx_ba_stream_tbl_ptr; |
511 | /* spin lock for tx_ba_stream_tbl_ptr queue */ | |
512 | spinlock_t tx_ba_stream_tbl_lock; | |
513 | struct mwifiex_tx_aggr aggr_prio_tbl[MAX_NUM_TID]; | |
514 | struct mwifiex_add_ba_param add_ba_param; | |
515 | u16 rx_seq[MAX_NUM_TID]; | |
41a24a29 | 516 | u8 tos_to_tid_inv[MAX_NUM_TID]; |
5e6e3a92 BZ |
517 | struct list_head rx_reorder_tbl_ptr; |
518 | /* spin lock for rx_reorder_tbl_ptr queue */ | |
519 | spinlock_t rx_reorder_tbl_lock; | |
520 | /* spin lock for Rx packets */ | |
521 | spinlock_t rx_pkt_lock; | |
522 | ||
523 | #define MWIFIEX_ASSOC_RSP_BUF_SIZE 500 | |
524 | u8 assoc_rsp_buf[MWIFIEX_ASSOC_RSP_BUF_SIZE]; | |
525 | u32 assoc_rsp_size; | |
526 | ||
527 | #define MWIFIEX_GENIE_BUF_SIZE 256 | |
528 | u8 gen_ie_buf[MWIFIEX_GENIE_BUF_SIZE]; | |
529 | u8 gen_ie_buf_len; | |
530 | ||
531 | struct mwifiex_vendor_spec_cfg_ie vs_ie[MWIFIEX_MAX_VSIE_NUM]; | |
532 | ||
533 | #define MWIFIEX_ASSOC_TLV_BUF_SIZE 256 | |
534 | u8 assoc_tlv_buf[MWIFIEX_ASSOC_TLV_BUF_SIZE]; | |
535 | u8 assoc_tlv_buf_len; | |
536 | ||
537 | u8 *curr_bcn_buf; | |
538 | u32 curr_bcn_size; | |
539 | /* spin lock for beacon buffer */ | |
540 | spinlock_t curr_bcn_buf_lock; | |
5e6e3a92 BZ |
541 | struct wireless_dev *wdev; |
542 | struct mwifiex_chan_freq_power cfp; | |
543 | char version_str[128]; | |
544 | #ifdef CONFIG_DEBUG_FS | |
545 | struct dentry *dfs_dev_dir; | |
546 | #endif | |
547 | u8 nick_name[16]; | |
5e6e3a92 BZ |
548 | u16 current_key_index; |
549 | struct semaphore async_sem; | |
5e6e3a92 BZ |
550 | u8 report_scan_result; |
551 | struct cfg80211_scan_request *scan_request; | |
5e6e3a92 | 552 | u8 cfg_bssid[6]; |
5e6e3a92 BZ |
553 | struct wps wps; |
554 | u8 scan_block; | |
fa444bf8 AK |
555 | s32 cqm_rssi_thold; |
556 | u32 cqm_rssi_hyst; | |
557 | u8 subsc_evt_rssi_state; | |
908fe113 | 558 | struct mwifiex_ds_misc_subsc_evt async_subsc_evt_storage; |
ede98bfa | 559 | struct mwifiex_ie mgmt_ie[MAX_MGMT_IE_INDEX]; |
f31acabe AP |
560 | u16 beacon_idx; |
561 | u16 proberesp_idx; | |
562 | u16 assocresp_idx; | |
563 | u16 rsn_idx; | |
3249ba73 | 564 | struct timer_list scan_delay_timer; |
c8258913 | 565 | u8 ap_11n_enabled; |
a5f39056 | 566 | u8 ap_11ac_enabled; |
3cec6870 | 567 | u32 mgmt_frame_mask; |
7feb4c48 | 568 | struct mwifiex_roc_cfg roc_cfg; |
75ab753d | 569 | bool scan_aborting; |
b887664d AK |
570 | u8 csa_chan; |
571 | unsigned long csa_expire_time; | |
61c87304 | 572 | u8 del_list_idx; |
587b36d3 | 573 | bool hs2_enabled; |
1f4dfd8a | 574 | struct station_parameters *sta_params; |
56bd24a1 | 575 | struct sk_buff_head tdls_txq; |
5e6e3a92 BZ |
576 | }; |
577 | ||
578 | enum mwifiex_ba_status { | |
3e822635 YAP |
579 | BA_SETUP_NONE = 0, |
580 | BA_SETUP_INPROGRESS, | |
581 | BA_SETUP_COMPLETE | |
5e6e3a92 BZ |
582 | }; |
583 | ||
584 | struct mwifiex_tx_ba_stream_tbl { | |
585 | struct list_head list; | |
586 | int tid; | |
587 | u8 ra[ETH_ALEN]; | |
588 | enum mwifiex_ba_status ba_status; | |
4c9f9fb2 | 589 | u8 amsdu; |
5e6e3a92 BZ |
590 | }; |
591 | ||
592 | struct mwifiex_rx_reorder_tbl; | |
593 | ||
594 | struct reorder_tmr_cnxt { | |
595 | struct timer_list timer; | |
596 | struct mwifiex_rx_reorder_tbl *ptr; | |
597 | struct mwifiex_private *priv; | |
598 | }; | |
599 | ||
600 | struct mwifiex_rx_reorder_tbl { | |
601 | struct list_head list; | |
602 | int tid; | |
603 | u8 ta[ETH_ALEN]; | |
8acbea61 | 604 | int init_win; |
5e6e3a92 BZ |
605 | int start_win; |
606 | int win_size; | |
607 | void **rx_reorder_ptr; | |
608 | struct reorder_tmr_cnxt timer_context; | |
4c9f9fb2 | 609 | u8 amsdu; |
2db96c3d | 610 | u8 flags; |
5e6e3a92 BZ |
611 | }; |
612 | ||
613 | struct mwifiex_bss_prio_node { | |
614 | struct list_head list; | |
615 | struct mwifiex_private *priv; | |
616 | }; | |
617 | ||
618 | struct mwifiex_bss_prio_tbl { | |
619 | struct list_head bss_prio_head; | |
620 | /* spin lock for bss priority */ | |
621 | spinlock_t bss_prio_lock; | |
622 | struct mwifiex_bss_prio_node *bss_prio_cur; | |
623 | }; | |
624 | ||
625 | struct cmd_ctrl_node { | |
626 | struct list_head list; | |
627 | struct mwifiex_private *priv; | |
628 | u32 cmd_oid; | |
629 | u32 cmd_flag; | |
630 | struct sk_buff *cmd_skb; | |
631 | struct sk_buff *resp_skb; | |
632 | void *data_buf; | |
600f5d90 | 633 | u32 wait_q_enabled; |
5e6e3a92 | 634 | struct sk_buff *skb; |
efaaa8b8 AK |
635 | u8 *condition; |
636 | u8 cmd_wait_q_woken; | |
5e6e3a92 BZ |
637 | }; |
638 | ||
b5abcf02 AK |
639 | struct mwifiex_bss_priv { |
640 | u8 band; | |
641 | u64 fw_tsf; | |
642 | }; | |
643 | ||
5f2caaf3 AP |
644 | struct mwifiex_tdls_capab { |
645 | __le16 capab; | |
646 | u8 rates[32]; | |
647 | u8 rates_len; | |
648 | u8 qos_info; | |
649 | u8 coex_2040; | |
5f6d5983 | 650 | u16 aid; |
5f2caaf3 AP |
651 | struct ieee80211_ht_cap ht_capb; |
652 | struct ieee80211_ht_operation ht_oper; | |
653 | struct ieee_types_extcap extcap; | |
654 | struct ieee_types_generic rsn_ie; | |
5f6d5983 AP |
655 | struct ieee80211_vht_cap vhtcap; |
656 | struct ieee80211_vht_operation vhtoper; | |
5f2caaf3 AP |
657 | }; |
658 | ||
659 | /* This is AP/TDLS specific structure which stores information | |
660 | * about associated/peer STA | |
017a92a1 AP |
661 | */ |
662 | struct mwifiex_sta_node { | |
663 | struct list_head list; | |
664 | u8 mac_addr[ETH_ALEN]; | |
665 | u8 is_wmm_enabled; | |
666 | u8 is_11n_enabled; | |
5f6d5983 | 667 | u8 is_11ac_enabled; |
017a92a1 AP |
668 | u8 ampdu_sta[MAX_NUM_TID]; |
669 | u16 rx_seq[MAX_NUM_TID]; | |
670 | u16 max_amsdu; | |
429d90d2 | 671 | u8 tdls_status; |
5f2caaf3 | 672 | struct mwifiex_tdls_capab tdls_cap; |
017a92a1 AP |
673 | }; |
674 | ||
5e6e3a92 BZ |
675 | struct mwifiex_if_ops { |
676 | int (*init_if) (struct mwifiex_adapter *); | |
677 | void (*cleanup_if) (struct mwifiex_adapter *); | |
d930faee | 678 | int (*check_fw_status) (struct mwifiex_adapter *, u32); |
5e6e3a92 BZ |
679 | int (*prog_fw) (struct mwifiex_adapter *, struct mwifiex_fw_image *); |
680 | int (*register_dev) (struct mwifiex_adapter *); | |
681 | void (*unregister_dev) (struct mwifiex_adapter *); | |
682 | int (*enable_int) (struct mwifiex_adapter *); | |
232fde06 | 683 | void (*disable_int) (struct mwifiex_adapter *); |
5e6e3a92 | 684 | int (*process_int_status) (struct mwifiex_adapter *); |
d930faee | 685 | int (*host_to_card) (struct mwifiex_adapter *, u8, struct sk_buff *, |
5e6e3a92 BZ |
686 | struct mwifiex_tx_param *); |
687 | int (*wakeup) (struct mwifiex_adapter *); | |
688 | int (*wakeup_complete) (struct mwifiex_adapter *); | |
689 | ||
d930faee | 690 | /* Interface specific functions */ |
5e6e3a92 BZ |
691 | void (*update_mp_end_port) (struct mwifiex_adapter *, u16); |
692 | void (*cleanup_mpa_buf) (struct mwifiex_adapter *); | |
d930faee AK |
693 | int (*cmdrsp_complete) (struct mwifiex_adapter *, struct sk_buff *); |
694 | int (*event_complete) (struct mwifiex_adapter *, struct sk_buff *); | |
ca8d6dfc | 695 | int (*data_complete) (struct mwifiex_adapter *); |
c6d1d87a | 696 | int (*init_fw_port) (struct mwifiex_adapter *); |
4daffe35 | 697 | int (*dnld_fw) (struct mwifiex_adapter *, struct mwifiex_fw_image *); |
d31ab357 | 698 | void (*card_reset) (struct mwifiex_adapter *); |
1c09bf68 | 699 | void (*fw_dump)(struct mwifiex_adapter *); |
fbd7e7ac | 700 | int (*clean_pcie_ring) (struct mwifiex_adapter *adapter); |
92c2538f | 701 | void (*iface_work)(struct work_struct *work); |
5e6e3a92 BZ |
702 | }; |
703 | ||
704 | struct mwifiex_adapter { | |
d930faee | 705 | u8 iface_type; |
5e6e3a92 BZ |
706 | struct mwifiex_private *priv[MWIFIEX_MAX_BSS_NUM]; |
707 | u8 priv_num; | |
5e6e3a92 | 708 | const struct firmware *firmware; |
4a7f5db1 | 709 | char fw_name[32]; |
d930faee | 710 | int winner; |
5e6e3a92 | 711 | struct device *dev; |
d6bffe8b | 712 | struct wiphy *wiphy; |
5e6e3a92 BZ |
713 | bool surprise_removed; |
714 | u32 fw_release_number; | |
5e6e3a92 BZ |
715 | u16 init_wait_q_woken; |
716 | wait_queue_head_t init_wait_q; | |
717 | void *card; | |
718 | struct mwifiex_if_ops if_ops; | |
719 | atomic_t rx_pending; | |
720 | atomic_t tx_pending; | |
600f5d90 | 721 | atomic_t cmd_pending; |
5e6e3a92 BZ |
722 | struct workqueue_struct *workqueue; |
723 | struct work_struct main_work; | |
724 | struct mwifiex_bss_prio_tbl bss_prio_tbl[MWIFIEX_MAX_BSS_NUM]; | |
725 | /* spin lock for init/shutdown */ | |
726 | spinlock_t mwifiex_lock; | |
727 | /* spin lock for main process */ | |
728 | spinlock_t main_proc_lock; | |
729 | u32 mwifiex_processing; | |
5e6e3a92 BZ |
730 | u16 tx_buf_size; |
731 | u16 curr_tx_buf_size; | |
732 | u32 ioport; | |
733 | enum MWIFIEX_HARDWARE_STATUS hw_status; | |
5e6e3a92 BZ |
734 | u16 number_of_antenna; |
735 | u32 fw_cap_info; | |
736 | /* spin lock for interrupt handling */ | |
737 | spinlock_t int_lock; | |
738 | u8 int_status; | |
739 | u32 event_cause; | |
740 | struct sk_buff *event_skb; | |
741 | u8 upld_buf[MWIFIEX_UPLD_SIZE]; | |
742 | u8 data_sent; | |
743 | u8 cmd_sent; | |
744 | u8 cmd_resp_received; | |
745 | u8 event_received; | |
746 | u8 data_received; | |
747 | u16 seq_num; | |
748 | struct cmd_ctrl_node *cmd_pool; | |
749 | struct cmd_ctrl_node *curr_cmd; | |
750 | /* spin lock for command */ | |
751 | spinlock_t mwifiex_cmd_lock; | |
0c9c4a09 | 752 | u8 is_cmd_timedout; |
5e6e3a92 BZ |
753 | u16 last_init_cmd; |
754 | struct timer_list cmd_timer; | |
755 | struct list_head cmd_free_q; | |
756 | /* spin lock for cmd_free_q */ | |
757 | spinlock_t cmd_free_q_lock; | |
758 | struct list_head cmd_pending_q; | |
759 | /* spin lock for cmd_pending_q */ | |
760 | spinlock_t cmd_pending_q_lock; | |
761 | struct list_head scan_pending_q; | |
762 | /* spin lock for scan_pending_q */ | |
763 | spinlock_t scan_pending_q_lock; | |
4daffe35 | 764 | struct sk_buff_head usb_rx_data_q; |
5e6e3a92 BZ |
765 | u32 scan_processing; |
766 | u16 region_code; | |
767 | struct mwifiex_802_11d_domain_reg domain_reg; | |
5e6e3a92 BZ |
768 | u16 scan_probes; |
769 | u32 scan_mode; | |
770 | u16 specific_scan_time; | |
771 | u16 active_scan_time; | |
772 | u16 passive_scan_time; | |
5e6e3a92 BZ |
773 | u8 fw_bands; |
774 | u8 adhoc_start_band; | |
775 | u8 config_bands; | |
776 | struct mwifiex_chan_scan_param_set *scan_channels; | |
777 | u8 tx_lock_flag; | |
778 | struct mwifiex_sleep_params sleep_params; | |
779 | struct mwifiex_sleep_period sleep_period; | |
780 | u16 ps_mode; | |
781 | u32 ps_state; | |
782 | u8 need_to_wakeup; | |
783 | u16 multiple_dtim; | |
784 | u16 local_listen_interval; | |
785 | u16 null_pkt_interval; | |
786 | struct sk_buff *sleep_cfm; | |
787 | u16 bcn_miss_time_out; | |
788 | u16 adhoc_awake_period; | |
789 | u8 is_deep_sleep; | |
790 | u8 delay_null_pkt; | |
791 | u16 delay_to_ps; | |
792 | u16 enhanced_ps_mode; | |
793 | u8 pm_wakeup_card_req; | |
794 | u16 gen_null_pkt; | |
795 | u16 pps_uapsd_mode; | |
796 | u32 pm_wakeup_fw_try; | |
797 | u8 is_hs_configured; | |
798 | struct mwifiex_hs_config_param hs_cfg; | |
799 | u8 hs_activated; | |
800 | u16 hs_activate_wait_q_woken; | |
801 | wait_queue_head_t hs_activate_wait_q; | |
802 | bool is_suspended; | |
c0dbba66 | 803 | bool hs_enabling; |
5e6e3a92 BZ |
804 | u8 event_body[MAX_EVENT_SIZE]; |
805 | u32 hw_dot_11n_dev_cap; | |
806 | u8 hw_dev_mcs_support; | |
a5333914 | 807 | u8 user_dev_mcs_support; |
5e6e3a92 | 808 | u8 adhoc_11n_enabled; |
21c3ba34 | 809 | u8 sec_chan_offset; |
5e6e3a92 BZ |
810 | struct mwifiex_dbg dbg; |
811 | u8 arp_filter[ARP_FILTER_MAX_BUF_SIZE]; | |
812 | u32 arp_filter_size; | |
600f5d90 | 813 | struct mwifiex_wait_queue cmd_wait_q; |
efaaa8b8 | 814 | u8 scan_wait_q_woken; |
bbea3bc4 | 815 | spinlock_t queue_lock; /* lock for tx queues */ |
67fdf39e | 816 | u8 country_code[IEEE80211_COUNTRY_STRING_LEN]; |
ede98bfa | 817 | u16 max_mgmt_ie_index; |
3249ba73 | 818 | u8 scan_delay_cnt; |
bdd37bed | 819 | u8 empty_tx_q_cnt; |
388ec385 | 820 | const struct firmware *cal_data; |
699b027b | 821 | struct device_node *dt_node; |
a5f39056 YAP |
822 | |
823 | /* 11AC */ | |
824 | u32 is_hw_11ac_capable; | |
825 | u32 hw_dot_11ac_dev_cap; | |
826 | u32 hw_dot_11ac_mcs_support; | |
827 | u32 usr_dot_11ac_dev_cap_bg; | |
828 | u32 usr_dot_11ac_dev_cap_a; | |
829 | u32 usr_dot_11ac_mcs_support; | |
830 | ||
bdd37bed | 831 | atomic_t is_tx_received; |
838e4f44 | 832 | atomic_t pending_bridged_pkts; |
6b41f941 | 833 | struct semaphore *card_sem; |
21f58d20 | 834 | bool ext_scan; |
8e17ea25 | 835 | u8 fw_api_ver; |
7f445d04 | 836 | u8 fw_key_api_major_ver, fw_key_api_minor_ver; |
92c2538f AK |
837 | struct work_struct iface_work; |
838 | unsigned long iface_work_flags; | |
839 | struct memory_type_mapping *mem_type_mapping_tbl; | |
840 | u8 num_mem_types; | |
841 | u8 curr_mem_idx; | |
5e6e3a92 BZ |
842 | }; |
843 | ||
844 | int mwifiex_init_lock_list(struct mwifiex_adapter *adapter); | |
5e6e3a92 | 845 | |
bbea3bc4 AP |
846 | void mwifiex_set_trans_start(struct net_device *dev); |
847 | ||
848 | void mwifiex_stop_net_dev_queue(struct net_device *netdev, | |
849 | struct mwifiex_adapter *adapter); | |
850 | ||
851 | void mwifiex_wake_up_net_dev_queue(struct net_device *netdev, | |
852 | struct mwifiex_adapter *adapter); | |
853 | ||
9197ab9e SP |
854 | int mwifiex_init_priv(struct mwifiex_private *priv); |
855 | void mwifiex_free_priv(struct mwifiex_private *priv); | |
856 | ||
5e6e3a92 BZ |
857 | int mwifiex_init_fw(struct mwifiex_adapter *adapter); |
858 | ||
859 | int mwifiex_init_fw_complete(struct mwifiex_adapter *adapter); | |
860 | ||
861 | int mwifiex_shutdown_drv(struct mwifiex_adapter *adapter); | |
862 | ||
863 | int mwifiex_shutdown_fw_complete(struct mwifiex_adapter *adapter); | |
864 | ||
865 | int mwifiex_dnld_fw(struct mwifiex_adapter *, struct mwifiex_fw_image *); | |
866 | ||
f3b369e4 | 867 | int mwifiex_recv_packet(struct mwifiex_private *priv, struct sk_buff *skb); |
5e6e3a92 | 868 | |
f3b369e4 | 869 | int mwifiex_process_mgmt_packet(struct mwifiex_private *priv, |
2dbaf751 SP |
870 | struct sk_buff *skb); |
871 | ||
5e6e3a92 BZ |
872 | int mwifiex_process_event(struct mwifiex_adapter *adapter); |
873 | ||
efaaa8b8 AK |
874 | int mwifiex_complete_cmd(struct mwifiex_adapter *adapter, |
875 | struct cmd_ctrl_node *cmd_node); | |
5e6e3a92 | 876 | |
fa0ecbb9 BZ |
877 | int mwifiex_send_cmd(struct mwifiex_private *priv, u16 cmd_no, |
878 | u16 cmd_action, u32 cmd_oid, void *data_buf, bool sync); | |
5e6e3a92 BZ |
879 | |
880 | void mwifiex_cmd_timeout_func(unsigned long function_context); | |
881 | ||
5e6e3a92 BZ |
882 | int mwifiex_get_debug_info(struct mwifiex_private *, |
883 | struct mwifiex_debug_info *); | |
884 | ||
885 | int mwifiex_alloc_cmd_buffer(struct mwifiex_adapter *adapter); | |
886 | int mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter); | |
887 | void mwifiex_cancel_all_pending_cmd(struct mwifiex_adapter *adapter); | |
600f5d90 | 888 | void mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter); |
5e6e3a92 BZ |
889 | |
890 | void mwifiex_insert_cmd_to_free_q(struct mwifiex_adapter *adapter, | |
891 | struct cmd_ctrl_node *cmd_node); | |
9908b074 BZ |
892 | void mwifiex_recycle_cmd_node(struct mwifiex_adapter *adapter, |
893 | struct cmd_ctrl_node *cmd_node); | |
5e6e3a92 BZ |
894 | |
895 | void mwifiex_insert_cmd_to_pending_q(struct mwifiex_adapter *adapter, | |
896 | struct cmd_ctrl_node *cmd_node, | |
897 | u32 addtail); | |
898 | ||
899 | int mwifiex_exec_next_cmd(struct mwifiex_adapter *adapter); | |
900 | int mwifiex_process_cmdresp(struct mwifiex_adapter *adapter); | |
901 | int mwifiex_handle_rx_packet(struct mwifiex_adapter *adapter, | |
902 | struct sk_buff *skb); | |
903 | int mwifiex_process_tx(struct mwifiex_private *priv, struct sk_buff *skb, | |
904 | struct mwifiex_tx_param *tx_param); | |
905 | int mwifiex_send_null_packet(struct mwifiex_private *priv, u8 flags); | |
906 | int mwifiex_write_data_complete(struct mwifiex_adapter *adapter, | |
47411a06 | 907 | struct sk_buff *skb, int aggr, int status); |
5e6e3a92 BZ |
908 | void mwifiex_clean_txrx(struct mwifiex_private *priv); |
909 | u8 mwifiex_check_last_packet_indication(struct mwifiex_private *priv); | |
910 | void mwifiex_check_ps_cond(struct mwifiex_adapter *adapter); | |
911 | void mwifiex_process_sleep_confirm_resp(struct mwifiex_adapter *, u8 *, | |
912 | u32); | |
913 | int mwifiex_cmd_enh_power_mode(struct mwifiex_private *priv, | |
914 | struct host_cmd_ds_command *cmd, | |
915 | u16 cmd_action, uint16_t ps_bitmap, | |
a5ffddb7 | 916 | struct mwifiex_ds_auto_ds *auto_ds); |
5e6e3a92 BZ |
917 | int mwifiex_ret_enh_power_mode(struct mwifiex_private *priv, |
918 | struct host_cmd_ds_command *resp, | |
a5ffddb7 | 919 | struct mwifiex_ds_pm_cfg *pm_cfg); |
5e6e3a92 BZ |
920 | void mwifiex_process_hs_config(struct mwifiex_adapter *adapter); |
921 | void mwifiex_hs_activated_event(struct mwifiex_private *priv, | |
922 | u8 activated); | |
923 | int mwifiex_ret_802_11_hs_cfg(struct mwifiex_private *priv, | |
924 | struct host_cmd_ds_command *resp); | |
f3b369e4 | 925 | int mwifiex_process_rx_packet(struct mwifiex_private *priv, |
5e6e3a92 BZ |
926 | struct sk_buff *skb); |
927 | int mwifiex_sta_prepare_cmd(struct mwifiex_private *, uint16_t cmd_no, | |
928 | u16 cmd_action, u32 cmd_oid, | |
929 | void *data_buf, void *cmd_buf); | |
40d07030 AP |
930 | int mwifiex_uap_prepare_cmd(struct mwifiex_private *priv, uint16_t cmd_no, |
931 | u16 cmd_action, u32 cmd_oid, | |
932 | void *data_buf, void *cmd_buf); | |
5e6e3a92 | 933 | int mwifiex_process_sta_cmdresp(struct mwifiex_private *, u16 cmdresp_no, |
a5ffddb7 | 934 | struct host_cmd_ds_command *resp); |
f3b369e4 | 935 | int mwifiex_process_sta_rx_packet(struct mwifiex_private *, |
5e6e3a92 | 936 | struct sk_buff *skb); |
f3b369e4 | 937 | int mwifiex_process_uap_rx_packet(struct mwifiex_private *priv, |
838e4f44 AP |
938 | struct sk_buff *skb); |
939 | int mwifiex_handle_uap_rx_forward(struct mwifiex_private *priv, | |
940 | struct sk_buff *skb); | |
5e6e3a92 | 941 | int mwifiex_process_sta_event(struct mwifiex_private *); |
3d99d987 | 942 | int mwifiex_process_uap_event(struct mwifiex_private *); |
017a92a1 | 943 | void mwifiex_delete_all_station_list(struct mwifiex_private *priv); |
5e6e3a92 | 944 | void *mwifiex_process_sta_txpd(struct mwifiex_private *, struct sk_buff *skb); |
4ac8764a | 945 | void *mwifiex_process_uap_txpd(struct mwifiex_private *, struct sk_buff *skb); |
5e6e3a92 | 946 | int mwifiex_sta_init_cmd(struct mwifiex_private *, u8 first_sta); |
572e8f3e | 947 | int mwifiex_cmd_802_11_scan(struct host_cmd_ds_command *cmd, |
a5ffddb7 | 948 | struct mwifiex_scan_cmd_config *scan_cfg); |
5e6e3a92 BZ |
949 | void mwifiex_queue_scan_cmd(struct mwifiex_private *priv, |
950 | struct cmd_ctrl_node *cmd_node); | |
951 | int mwifiex_ret_802_11_scan(struct mwifiex_private *priv, | |
600f5d90 | 952 | struct host_cmd_ds_command *resp); |
b9be5f39 | 953 | s32 mwifiex_ssid_cmp(struct cfg80211_ssid *ssid1, struct cfg80211_ssid *ssid2); |
600f5d90 | 954 | int mwifiex_associate(struct mwifiex_private *priv, |
5e6e3a92 BZ |
955 | struct mwifiex_bssdescriptor *bss_desc); |
956 | int mwifiex_cmd_802_11_associate(struct mwifiex_private *priv, | |
a5ffddb7 AK |
957 | struct host_cmd_ds_command *cmd, |
958 | struct mwifiex_bssdescriptor *bss_desc); | |
5e6e3a92 | 959 | int mwifiex_ret_802_11_associate(struct mwifiex_private *priv, |
600f5d90 | 960 | struct host_cmd_ds_command *resp); |
8cc1d523 | 961 | void mwifiex_reset_connect_state(struct mwifiex_private *priv, u16 reason); |
5e6e3a92 | 962 | u8 mwifiex_band_to_radio_type(u8 band); |
600f5d90 | 963 | int mwifiex_deauthenticate(struct mwifiex_private *priv, u8 *mac); |
848819f4 | 964 | void mwifiex_deauthenticate_all(struct mwifiex_adapter *adapter); |
600f5d90 | 965 | int mwifiex_adhoc_start(struct mwifiex_private *priv, |
b9be5f39 | 966 | struct cfg80211_ssid *adhoc_ssid); |
600f5d90 | 967 | int mwifiex_adhoc_join(struct mwifiex_private *priv, |
5e6e3a92 BZ |
968 | struct mwifiex_bssdescriptor *bss_desc); |
969 | int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, | |
970 | struct host_cmd_ds_command *cmd, | |
b9be5f39 | 971 | struct cfg80211_ssid *req_ssid); |
5e6e3a92 BZ |
972 | int mwifiex_cmd_802_11_ad_hoc_join(struct mwifiex_private *priv, |
973 | struct host_cmd_ds_command *cmd, | |
a5ffddb7 | 974 | struct mwifiex_bssdescriptor *bss_desc); |
5e6e3a92 | 975 | int mwifiex_ret_802_11_ad_hoc(struct mwifiex_private *priv, |
600f5d90 | 976 | struct host_cmd_ds_command *resp); |
572e8f3e | 977 | int mwifiex_cmd_802_11_bg_scan_query(struct host_cmd_ds_command *cmd); |
6685d109 YAP |
978 | struct mwifiex_chan_freq_power *mwifiex_get_cfp(struct mwifiex_private *priv, |
979 | u8 band, u16 channel, u32 freq); | |
a5f39056 YAP |
980 | u32 mwifiex_index_to_data_rate(struct mwifiex_private *priv, |
981 | u8 index, u8 ht_info); | |
982 | u32 mwifiex_index_to_acs_data_rate(struct mwifiex_private *priv, | |
983 | u8 index, u8 ht_info); | |
5e6e3a92 BZ |
984 | u32 mwifiex_find_freq_from_band_chan(u8, u8); |
985 | int mwifiex_cmd_append_vsie_tlv(struct mwifiex_private *priv, u16 vsie_mask, | |
986 | u8 **buffer); | |
5e6e3a92 BZ |
987 | u32 mwifiex_get_active_data_rates(struct mwifiex_private *priv, |
988 | u8 *rates); | |
989 | u32 mwifiex_get_supported_rates(struct mwifiex_private *priv, u8 *rates); | |
78dfca62 AP |
990 | u32 mwifiex_get_rates_from_cfg80211(struct mwifiex_private *priv, |
991 | u8 *rates, u8 radio_type); | |
5e6e3a92 | 992 | u8 mwifiex_is_rate_auto(struct mwifiex_private *priv); |
5e6e3a92 BZ |
993 | extern u16 region_code_index[MWIFIEX_MAX_REGION_CODE]; |
994 | void mwifiex_save_curr_bcn(struct mwifiex_private *priv); | |
995 | void mwifiex_free_curr_bcn(struct mwifiex_private *priv); | |
996 | int mwifiex_cmd_get_hw_spec(struct mwifiex_private *priv, | |
997 | struct host_cmd_ds_command *cmd); | |
998 | int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv, | |
999 | struct host_cmd_ds_command *resp); | |
1000 | int is_command_pending(struct mwifiex_adapter *adapter); | |
93a1df48 YAP |
1001 | void mwifiex_init_priv_params(struct mwifiex_private *priv, |
1002 | struct net_device *dev); | |
f752dcd5 AP |
1003 | int mwifiex_set_secure_params(struct mwifiex_private *priv, |
1004 | struct mwifiex_uap_bss_param *bss_config, | |
1005 | struct cfg80211_ap_settings *params); | |
22281256 AP |
1006 | void mwifiex_set_ht_params(struct mwifiex_private *priv, |
1007 | struct mwifiex_uap_bss_param *bss_cfg, | |
1008 | struct cfg80211_ap_settings *params); | |
83c78da9 YAP |
1009 | void mwifiex_set_vht_params(struct mwifiex_private *priv, |
1010 | struct mwifiex_uap_bss_param *bss_cfg, | |
1011 | struct cfg80211_ap_settings *params); | |
a3c2c4f6 AP |
1012 | void mwifiex_set_uap_rates(struct mwifiex_uap_bss_param *bss_cfg, |
1013 | struct cfg80211_ap_settings *params); | |
83c78da9 YAP |
1014 | void mwifiex_set_vht_width(struct mwifiex_private *priv, |
1015 | enum nl80211_chan_width width, | |
1016 | bool ap_11ac_disable); | |
54428c57 AP |
1017 | void |
1018 | mwifiex_set_wmm_params(struct mwifiex_private *priv, | |
1019 | struct mwifiex_uap_bss_param *bss_cfg, | |
1020 | struct cfg80211_ap_settings *params); | |
04abc0a3 | 1021 | void mwifiex_set_ba_params(struct mwifiex_private *priv); |
2b6254da | 1022 | void mwifiex_set_11ac_ba_params(struct mwifiex_private *priv); |
21f58d20 AK |
1023 | int mwifiex_cmd_802_11_scan_ext(struct mwifiex_private *priv, |
1024 | struct host_cmd_ds_command *cmd, | |
1025 | void *data_buf); | |
1026 | int mwifiex_ret_802_11_scan_ext(struct mwifiex_private *priv); | |
1027 | int mwifiex_handle_event_ext_scan_report(struct mwifiex_private *priv, | |
1028 | void *buf); | |
5e6e3a92 BZ |
1029 | |
1030 | /* | |
1031 | * This function checks if the queuing is RA based or not. | |
1032 | */ | |
1033 | static inline u8 | |
1034 | mwifiex_queuing_ra_based(struct mwifiex_private *priv) | |
1035 | { | |
1036 | /* | |
1037 | * Currently we assume if we are in Infra, then DA=RA. This might not be | |
1038 | * true in the future | |
1039 | */ | |
eecd8250 | 1040 | if ((priv->bss_mode == NL80211_IFTYPE_STATION) && |
5e6e3a92 BZ |
1041 | (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_STA)) |
1042 | return false; | |
1043 | ||
1044 | return true; | |
1045 | } | |
1046 | ||
1047 | /* | |
1048 | * This function copies rates. | |
1049 | */ | |
1050 | static inline u32 | |
1051 | mwifiex_copy_rates(u8 *dest, u32 pos, u8 *src, int len) | |
1052 | { | |
1053 | int i; | |
1054 | ||
1055 | for (i = 0; i < len && src[i]; i++, pos++) { | |
1056 | if (pos >= MWIFIEX_SUPPORTED_RATES) | |
1057 | break; | |
1058 | dest[pos] = src[i]; | |
1059 | } | |
1060 | ||
1061 | return pos; | |
1062 | } | |
1063 | ||
1064 | /* | |
1065 | * This function returns the correct private structure pointer based | |
1066 | * upon the BSS type and BSS number. | |
1067 | */ | |
1068 | static inline struct mwifiex_private * | |
1069 | mwifiex_get_priv_by_id(struct mwifiex_adapter *adapter, | |
2be7859f | 1070 | u8 bss_num, u8 bss_type) |
5e6e3a92 BZ |
1071 | { |
1072 | int i; | |
1073 | ||
1074 | for (i = 0; i < adapter->priv_num; i++) { | |
1075 | if (adapter->priv[i]) { | |
f57c1edc YAP |
1076 | if ((adapter->priv[i]->bss_num == bss_num) && |
1077 | (adapter->priv[i]->bss_type == bss_type)) | |
5e6e3a92 BZ |
1078 | break; |
1079 | } | |
1080 | } | |
1081 | return ((i < adapter->priv_num) ? adapter->priv[i] : NULL); | |
1082 | } | |
1083 | ||
1084 | /* | |
1085 | * This function returns the first available private structure pointer | |
1086 | * based upon the BSS role. | |
1087 | */ | |
1088 | static inline struct mwifiex_private * | |
1089 | mwifiex_get_priv(struct mwifiex_adapter *adapter, | |
1090 | enum mwifiex_bss_role bss_role) | |
1091 | { | |
1092 | int i; | |
1093 | ||
1094 | for (i = 0; i < adapter->priv_num; i++) { | |
1095 | if (adapter->priv[i]) { | |
1096 | if (bss_role == MWIFIEX_BSS_ROLE_ANY || | |
1097 | GET_BSS_ROLE(adapter->priv[i]) == bss_role) | |
1098 | break; | |
1099 | } | |
1100 | } | |
1101 | ||
1102 | return ((i < adapter->priv_num) ? adapter->priv[i] : NULL); | |
1103 | } | |
1104 | ||
1105 | /* | |
1106 | * This function returns the driver private structure of a network device. | |
1107 | */ | |
1108 | static inline struct mwifiex_private * | |
1109 | mwifiex_netdev_get_priv(struct net_device *dev) | |
1110 | { | |
1111 | return (struct mwifiex_private *) (*(unsigned long *) netdev_priv(dev)); | |
1112 | } | |
1113 | ||
e39faa73 SP |
1114 | /* |
1115 | * This function checks if a skb holds a management frame. | |
1116 | */ | |
1117 | static inline bool mwifiex_is_skb_mgmt_frame(struct sk_buff *skb) | |
1118 | { | |
cfcd926e | 1119 | return (le32_to_cpu(*(__le32 *)skb->data) == PKT_TYPE_MGMT); |
e39faa73 SP |
1120 | } |
1121 | ||
b887664d AK |
1122 | /* This function retrieves channel closed for operation by Channel |
1123 | * Switch Announcement. | |
1124 | */ | |
1125 | static inline u8 | |
1126 | mwifiex_11h_get_csa_closed_channel(struct mwifiex_private *priv) | |
1127 | { | |
1128 | if (!priv->csa_chan) | |
1129 | return 0; | |
1130 | ||
1131 | /* Clear csa channel, if DFS channel move time has passed */ | |
55fdb858 | 1132 | if (time_after(jiffies, priv->csa_expire_time)) { |
b887664d AK |
1133 | priv->csa_chan = 0; |
1134 | priv->csa_expire_time = 0; | |
1135 | } | |
1136 | ||
1137 | return priv->csa_chan; | |
1138 | } | |
1139 | ||
600f5d90 AK |
1140 | int mwifiex_init_shutdown_fw(struct mwifiex_private *priv, |
1141 | u32 func_init_shutdown); | |
d930faee | 1142 | int mwifiex_add_card(void *, struct semaphore *, struct mwifiex_if_ops *, u8); |
5e6e3a92 BZ |
1143 | int mwifiex_remove_card(struct mwifiex_adapter *, struct semaphore *); |
1144 | ||
1145 | void mwifiex_get_version(struct mwifiex_adapter *adapter, char *version, | |
1146 | int maxlen); | |
600f5d90 AK |
1147 | int mwifiex_request_set_multicast_list(struct mwifiex_private *priv, |
1148 | struct mwifiex_multicast_list *mcast_list); | |
1149 | int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist, | |
1150 | struct net_device *dev); | |
00d7ea11 AK |
1151 | int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter, |
1152 | struct cmd_ctrl_node *cmd_queued); | |
7c6fa2a8 | 1153 | int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss, |
b9be5f39 | 1154 | struct cfg80211_ssid *req_ssid); |
600f5d90 | 1155 | int mwifiex_cancel_hs(struct mwifiex_private *priv, int cmd_type); |
5e6e3a92 | 1156 | int mwifiex_enable_hs(struct mwifiex_adapter *adapter); |
a0490936 | 1157 | int mwifiex_disable_auto_ds(struct mwifiex_private *priv); |
006606c0 | 1158 | int mwifiex_drv_get_data_rate(struct mwifiex_private *priv, u32 *rate); |
5e6e3a92 | 1159 | int mwifiex_request_scan(struct mwifiex_private *priv, |
b9be5f39 | 1160 | struct cfg80211_ssid *req_ssid); |
1a1fb970 AK |
1161 | int mwifiex_scan_networks(struct mwifiex_private *priv, |
1162 | const struct mwifiex_user_scan_cfg *user_scan_in); | |
5e6e3a92 BZ |
1163 | int mwifiex_set_radio(struct mwifiex_private *priv, u8 option); |
1164 | ||
53b11231 YL |
1165 | int mwifiex_set_encode(struct mwifiex_private *priv, struct key_params *kp, |
1166 | const u8 *key, int key_len, u8 key_index, | |
1167 | const u8 *mac_addr, int disable); | |
5e6e3a92 | 1168 | |
4b5800fe | 1169 | int mwifiex_set_gen_ie(struct mwifiex_private *priv, const u8 *ie, int ie_len); |
5e6e3a92 BZ |
1170 | |
1171 | int mwifiex_get_ver_ext(struct mwifiex_private *priv); | |
1172 | ||
7feb4c48 SP |
1173 | int mwifiex_remain_on_chan_cfg(struct mwifiex_private *priv, u16 action, |
1174 | struct ieee80211_channel *chan, | |
7feb4c48 SP |
1175 | unsigned int duration); |
1176 | ||
9197ab9e SP |
1177 | int mwifiex_set_bss_role(struct mwifiex_private *priv, u8 bss_role); |
1178 | ||
5e6e3a92 BZ |
1179 | int mwifiex_get_stats_info(struct mwifiex_private *priv, |
1180 | struct mwifiex_ds_get_stats *log); | |
1181 | ||
1182 | int mwifiex_reg_write(struct mwifiex_private *priv, u32 reg_type, | |
1183 | u32 reg_offset, u32 reg_value); | |
1184 | ||
1185 | int mwifiex_reg_read(struct mwifiex_private *priv, u32 reg_type, | |
1186 | u32 reg_offset, u32 *value); | |
1187 | ||
1188 | int mwifiex_eeprom_read(struct mwifiex_private *priv, u16 offset, u16 bytes, | |
1189 | u8 *value); | |
1190 | ||
1191 | int mwifiex_set_11n_httx_cfg(struct mwifiex_private *priv, int data); | |
1192 | ||
1193 | int mwifiex_get_11n_httx_cfg(struct mwifiex_private *priv, int *data); | |
1194 | ||
1195 | int mwifiex_set_tx_rate_cfg(struct mwifiex_private *priv, int tx_rate_index); | |
1196 | ||
1197 | int mwifiex_get_tx_rate_cfg(struct mwifiex_private *priv, int *tx_rate_index); | |
1198 | ||
600f5d90 | 1199 | int mwifiex_drv_set_power(struct mwifiex_private *priv, u32 *ps_mode); |
5e6e3a92 BZ |
1200 | |
1201 | int mwifiex_drv_get_driver_version(struct mwifiex_adapter *adapter, | |
1202 | char *version, int max_len); | |
1203 | ||
600f5d90 AK |
1204 | int mwifiex_set_tx_power(struct mwifiex_private *priv, |
1205 | struct mwifiex_power_cfg *power_cfg); | |
5e6e3a92 BZ |
1206 | |
1207 | int mwifiex_main_process(struct mwifiex_adapter *); | |
1208 | ||
e39faa73 SP |
1209 | int mwifiex_queue_tx_pkt(struct mwifiex_private *priv, struct sk_buff *skb); |
1210 | ||
5e6e3a92 BZ |
1211 | int mwifiex_get_bss_info(struct mwifiex_private *, |
1212 | struct mwifiex_bss_info *); | |
7c6fa2a8 | 1213 | int mwifiex_fill_new_bss_desc(struct mwifiex_private *priv, |
9558a407 | 1214 | struct cfg80211_bss *bss, |
7c6fa2a8 AK |
1215 | struct mwifiex_bssdescriptor *bss_desc); |
1216 | int mwifiex_update_bss_desc_with_ie(struct mwifiex_adapter *adapter, | |
9558a407 | 1217 | struct mwifiex_bssdescriptor *bss_entry); |
7c6fa2a8 AK |
1218 | int mwifiex_check_network_compatibility(struct mwifiex_private *priv, |
1219 | struct mwifiex_bssdescriptor *bss_desc); | |
5e6e3a92 | 1220 | |
7feb4c48 SP |
1221 | u8 mwifiex_chan_type_to_sec_chan_offset(enum nl80211_channel_type chan_type); |
1222 | ||
84efbb84 | 1223 | struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy, |
552bff0c | 1224 | const char *name, |
84efbb84 JB |
1225 | enum nl80211_iftype type, |
1226 | u32 *flags, | |
1227 | struct vif_params *params); | |
1228 | int mwifiex_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev); | |
93a1df48 | 1229 | |
9b930eae AP |
1230 | void mwifiex_set_sys_config_invalid_data(struct mwifiex_uap_bss_param *config); |
1231 | ||
7da060c1 AK |
1232 | int mwifiex_add_wowlan_magic_pkt_filter(struct mwifiex_adapter *adapter); |
1233 | ||
f31acabe | 1234 | int mwifiex_set_mgmt_ies(struct mwifiex_private *priv, |
adb6ed0c | 1235 | struct cfg80211_beacon_data *data); |
40bbc21a | 1236 | int mwifiex_del_mgmt_ies(struct mwifiex_private *priv); |
9e04a7c6 | 1237 | u8 *mwifiex_11d_code_2_region(u8 code); |
0f9e9b8b AP |
1238 | void mwifiex_uap_del_sta_data(struct mwifiex_private *priv, |
1239 | struct mwifiex_sta_node *node); | |
93a1df48 | 1240 | |
2a7305c8 AK |
1241 | void mwifiex_11h_process_join(struct mwifiex_private *priv, u8 **buffer, |
1242 | struct mwifiex_bssdescriptor *bss_desc); | |
1243 | int mwifiex_11h_handle_event_chanswann(struct mwifiex_private *priv); | |
82efa16a BZ |
1244 | int mwifiex_dnld_dt_cfgdata(struct mwifiex_private *priv, |
1245 | struct device_node *node, const char *prefix); | |
b58df446 | 1246 | void mwifiex_dnld_txpwr_table(struct mwifiex_private *priv); |
2a7305c8 | 1247 | |
0d7f53e3 AK |
1248 | extern const struct ethtool_ops mwifiex_ethtool_ops; |
1249 | ||
4bcf93d3 | 1250 | void mwifiex_del_all_sta_list(struct mwifiex_private *priv); |
3b3a0162 | 1251 | void mwifiex_del_sta_entry(struct mwifiex_private *priv, const u8 *mac); |
4bcf93d3 AP |
1252 | void |
1253 | mwifiex_set_sta_ht_cap(struct mwifiex_private *priv, const u8 *ies, | |
1254 | int ies_len, struct mwifiex_sta_node *node); | |
1255 | struct mwifiex_sta_node * | |
3b3a0162 | 1256 | mwifiex_add_sta_entry(struct mwifiex_private *priv, const u8 *mac); |
4bcf93d3 | 1257 | struct mwifiex_sta_node * |
3b3a0162 JB |
1258 | mwifiex_get_sta_entry(struct mwifiex_private *priv, const u8 *mac); |
1259 | int mwifiex_send_tdls_data_frame(struct mwifiex_private *priv, const u8 *peer, | |
b23bce29 AP |
1260 | u8 action_code, u8 dialog_token, |
1261 | u16 status_code, const u8 *extra_ies, | |
1262 | size_t extra_ies_len); | |
3b3a0162 JB |
1263 | int mwifiex_send_tdls_action_frame(struct mwifiex_private *priv, const u8 *peer, |
1264 | u8 action_code, u8 dialog_token, | |
1265 | u16 status_code, const u8 *extra_ies, | |
1266 | size_t extra_ies_len); | |
5f2caaf3 AP |
1267 | void mwifiex_process_tdls_action_frame(struct mwifiex_private *priv, |
1268 | u8 *buf, int len); | |
3b3a0162 JB |
1269 | int mwifiex_tdls_oper(struct mwifiex_private *priv, const u8 *peer, u8 action); |
1270 | int mwifiex_get_tdls_link_status(struct mwifiex_private *priv, const u8 *mac); | |
be104b91 | 1271 | void mwifiex_disable_all_tdls_links(struct mwifiex_private *priv); |
5f6d5983 AP |
1272 | bool mwifiex_is_bss_in_11ac_mode(struct mwifiex_private *priv); |
1273 | u8 mwifiex_get_center_freq_index(struct mwifiex_private *priv, u8 band, | |
1274 | u32 pri_chan, u8 chan_bw); | |
4bcf93d3 | 1275 | |
5e6e3a92 BZ |
1276 | #ifdef CONFIG_DEBUG_FS |
1277 | void mwifiex_debugfs_init(void); | |
1278 | void mwifiex_debugfs_remove(void); | |
1279 | ||
1280 | void mwifiex_dev_debugfs_init(struct mwifiex_private *priv); | |
1281 | void mwifiex_dev_debugfs_remove(struct mwifiex_private *priv); | |
1282 | #endif | |
1283 | #endif /* !_MWIFIEX_MAIN_H_ */ |