1 /* SPDX-License-Identifier: (GPL-2.0 OR MPL-1.1) */
4 * Declares the mgmt command handler functions
6 * Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved.
7 * --------------------------------------------------------------------
11 * --------------------------------------------------------------------
13 * Inquiries regarding the linux-wlan Open Source project can be
16 * AbsoluteValue Systems Inc.
18 * http://www.linux-wlan.com
20 * --------------------------------------------------------------------
22 * Portions of the development of this software were funded by
23 * Intersil Corporation as part of PRISM(R) chipset product development.
25 * --------------------------------------------------------------------
27 * This file contains the constants and data structures for interaction
28 * with the hfa384x Wireless LAN (WLAN) Media Access Controller (MAC).
29 * The hfa384x is a portion of the Harris PRISM(tm) WLAN chipset.
31 * [Implementation and usage notes]
34 * CW10 Programmer's Manual v1.5
37 * --------------------------------------------------------------------
43 extern int prism2_reset_holdtime;
44 extern int prism2_reset_settletime;
46 u32 prism2sta_ifstate(struct wlandevice *wlandev, u32 ifstate);
48 void prism2sta_ev_info(struct wlandevice *wlandev, struct hfa384x_inf_frame *inf);
49 void prism2sta_ev_tx(struct wlandevice *wlandev, u16 status);
50 void prism2sta_ev_alloc(struct wlandevice *wlandev);
52 int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp);
53 int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp);
54 int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp);
55 int prism2mgmt_start(struct wlandevice *wlandev, void *msgp);
56 int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp);
57 int prism2mgmt_readpda(struct wlandevice *wlandev, void *msgp);
58 int prism2mgmt_ramdl_state(struct wlandevice *wlandev, void *msgp);
59 int prism2mgmt_ramdl_write(struct wlandevice *wlandev, void *msgp);
60 int prism2mgmt_flashdl_state(struct wlandevice *wlandev, void *msgp);
61 int prism2mgmt_flashdl_write(struct wlandevice *wlandev, void *msgp);
62 int prism2mgmt_autojoin(struct wlandevice *wlandev, void *msgp);
64 /*---------------------------------------------------------------
65 * conversion functions going between wlan message data types and
67 *---------------------------------------------------------------
70 /* byte area conversion functions*/
71 void prism2mgmt_bytearea2pstr(u8 *bytearea, struct p80211pstrd *pstr, int len);
73 /* byte string conversion functions*/
74 void prism2mgmt_pstr2bytestr(struct hfa384x_bytestr *bytestr,
75 struct p80211pstrd *pstr);
76 void prism2mgmt_bytestr2pstr(struct hfa384x_bytestr *bytestr,
77 struct p80211pstrd *pstr);
79 void prism2sta_processing_defer(struct work_struct *data);
81 void prism2sta_commsqual_defer(struct work_struct *data);
82 void prism2sta_commsqual_timer(struct timer_list *t);
84 /* Interface callback functions, passing data back up to the cfg80211 layer */
85 void prism2_connect_result(struct wlandevice *wlandev, u8 failed);
86 void prism2_disconnected(struct wlandevice *wlandev);
87 void prism2_roamed(struct wlandevice *wlandev);