2008-10-02 18:29:28 +00:00
|
|
|
/* prism2mgmt.h
|
|
|
|
*
|
|
|
|
* Declares the mgmt command handler functions
|
|
|
|
*
|
|
|
|
* Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved.
|
|
|
|
* --------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* linux-wlan
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the
|
|
|
|
* terms of the GNU Public License version 2 (the "GPL"), in which
|
|
|
|
* case the provisions of the GPL are applicable instead of the
|
|
|
|
* above. If you wish to allow the use of your version of this file
|
|
|
|
* only under the terms of the GPL and not to allow others to use
|
|
|
|
* your version of this file under the MPL, indicate your decision
|
|
|
|
* by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this
|
|
|
|
* file under either the MPL or the GPL.
|
|
|
|
*
|
|
|
|
* --------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* Inquiries regarding the linux-wlan Open Source project can be
|
|
|
|
* made directly to:
|
|
|
|
*
|
|
|
|
* AbsoluteValue Systems Inc.
|
|
|
|
* info@linux-wlan.com
|
|
|
|
* http://www.linux-wlan.com
|
|
|
|
*
|
|
|
|
* --------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* Portions of the development of this software were funded by
|
|
|
|
* Intersil Corporation as part of PRISM(R) chipset product development.
|
|
|
|
*
|
|
|
|
* --------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* This file contains the constants and data structures for interaction
|
2014-11-30 15:29:00 +00:00
|
|
|
* with the hfa384x Wireless LAN (WLAN) Media Access Controller (MAC).
|
2008-10-02 18:29:28 +00:00
|
|
|
* The hfa384x is a portion of the Harris PRISM(tm) WLAN chipset.
|
|
|
|
*
|
|
|
|
* [Implementation and usage notes]
|
|
|
|
*
|
|
|
|
* [References]
|
|
|
|
* CW10 Programmer's Manual v1.5
|
|
|
|
* IEEE 802.11 D10.0
|
|
|
|
*
|
|
|
|
* --------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PRISM2MGMT_H
|
|
|
|
#define _PRISM2MGMT_H
|
|
|
|
|
2009-02-08 01:20:47 +00:00
|
|
|
extern int prism2_reset_holdtime;
|
|
|
|
extern int prism2_reset_settletime;
|
2008-10-02 18:29:28 +00:00
|
|
|
|
2010-02-14 17:59:00 +00:00
|
|
|
u32 prism2sta_ifstate(wlandevice_t *wlandev, u32 ifstate);
|
2008-10-02 18:29:28 +00:00
|
|
|
|
2010-02-14 17:59:00 +00:00
|
|
|
void prism2sta_ev_info(wlandevice_t *wlandev, hfa384x_InfFrame_t *inf);
|
|
|
|
void prism2sta_ev_txexc(wlandevice_t *wlandev, u16 status);
|
|
|
|
void prism2sta_ev_tx(wlandevice_t *wlandev, u16 status);
|
|
|
|
void prism2sta_ev_alloc(wlandevice_t *wlandev);
|
2008-10-02 18:29:28 +00:00
|
|
|
|
2010-02-14 17:59:00 +00:00
|
|
|
int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp);
|
|
|
|
int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp);
|
|
|
|
int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp);
|
|
|
|
int prism2mgmt_start(wlandevice_t *wlandev, void *msgp);
|
|
|
|
int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp);
|
|
|
|
int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp);
|
|
|
|
int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp);
|
|
|
|
int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp);
|
|
|
|
int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp);
|
|
|
|
int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp);
|
|
|
|
int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp);
|
2008-10-02 18:29:28 +00:00
|
|
|
|
|
|
|
/*---------------------------------------------------------------
|
|
|
|
* conversion functions going between wlan message data types and
|
|
|
|
* Prism2 data types
|
|
|
|
---------------------------------------------------------------*/
|
|
|
|
/* byte area conversion functions*/
|
2010-02-14 17:59:00 +00:00
|
|
|
void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len);
|
2008-10-02 18:29:28 +00:00
|
|
|
|
|
|
|
/* byte string conversion functions*/
|
2013-11-02 12:41:44 +00:00
|
|
|
void prism2mgmt_pstr2bytestr(struct hfa384x_bytestr *bytestr,
|
|
|
|
p80211pstrd_t *pstr);
|
|
|
|
void prism2mgmt_bytestr2pstr(struct hfa384x_bytestr *bytestr,
|
|
|
|
p80211pstrd_t *pstr);
|
2008-10-02 18:29:28 +00:00
|
|
|
|
|
|
|
/* functions to convert Group Addresses */
|
2010-02-14 17:59:00 +00:00
|
|
|
void prism2mgmt_get_grpaddr(u32 did, p80211pstrd_t *pstr, hfa384x_t *priv);
|
2008-10-29 14:42:53 +00:00
|
|
|
int prism2mgmt_set_grpaddr(u32 did,
|
2010-02-14 17:59:00 +00:00
|
|
|
u8 *prism2buf, p80211pstrd_t *pstr,
|
|
|
|
hfa384x_t *priv);
|
2009-02-08 01:20:47 +00:00
|
|
|
int prism2mgmt_get_grpaddr_index(u32 did);
|
2008-10-02 18:29:28 +00:00
|
|
|
|
|
|
|
void prism2sta_processing_defer(struct work_struct *data);
|
|
|
|
|
|
|
|
void prism2sta_commsqual_defer(struct work_struct *data);
|
|
|
|
void prism2sta_commsqual_timer(unsigned long data);
|
|
|
|
|
2014-04-11 13:00:49 +00:00
|
|
|
/* Interface callback functions, passing data back up to the cfg80211 layer */
|
|
|
|
void prism2_connect_result(wlandevice_t *wlandev, u8 failed);
|
|
|
|
void prism2_disconnected(wlandevice_t *wlandev);
|
|
|
|
void prism2_roamed(wlandevice_t *wlandev);
|
|
|
|
|
2008-10-02 18:29:28 +00:00
|
|
|
#endif
|