Commit 78f41c91 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: change wmgr to new structures

This patch cleans up function declarations, definitions and local variables
were appropriate replacing types defined in "ttype.h" with linux/types.h.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 98583c09
This diff is collapsed.
...@@ -220,32 +220,26 @@ typedef enum tagWMAC_POWER_MODE { ...@@ -220,32 +220,26 @@ typedef enum tagWMAC_POWER_MODE {
/* Tx Management Packet descriptor */ /* Tx Management Packet descriptor */
typedef struct vnt_tx_mgmt { typedef struct vnt_tx_mgmt {
PUWLAN_80211HDR p80211Header; PUWLAN_80211HDR p80211Header;
unsigned int cbMPDULen; u32 cbMPDULen;
unsigned int cbPayloadLen; u32 cbPayloadLen;
} STxMgmtPacket, *PSTxMgmtPacket; } STxMgmtPacket, *PSTxMgmtPacket;
/* Rx Management Packet descriptor */ /* Rx Management Packet descriptor */
typedef struct vnt_rx_mgmt { typedef struct vnt_rx_mgmt {
PUWLAN_80211HDR p80211Header; PUWLAN_80211HDR p80211Header;
u64 qwLocalTSF; u64 qwLocalTSF;
unsigned int cbMPDULen; u32 cbMPDULen;
unsigned int cbPayloadLen; u32 cbPayloadLen;
unsigned int uRSSI; u32 uRSSI;
BYTE bySQ; u8 bySQ;
BYTE byRxRate; u8 byRxRate;
BYTE byRxChannel; u8 byRxChannel;
} SRxMgmtPacket, *PSRxMgmtPacket; } SRxMgmtPacket, *PSRxMgmtPacket;
typedef struct vnt_manager {
typedef struct vnt_manager
{
void *pAdapter; void *pAdapter;
// MAC address // MAC address
BYTE abyMACAddr[WLAN_ADDR_LEN]; BYTE abyMACAddr[WLAN_ADDR_LEN];
...@@ -334,7 +328,8 @@ typedef struct vnt_manager ...@@ -334,7 +328,8 @@ typedef struct vnt_manager
WORD wCountToWakeUp; WORD wCountToWakeUp;
BOOL bInTIMWake; BOOL bInTIMWake;
PBYTE pbyPSPacketPool; PBYTE pbyPSPacketPool;
BYTE byPSPacketPool[sizeof(STxMgmtPacket) + WLAN_NULLDATA_FR_MAXLEN]; u8 byPSPacketPool[sizeof(struct vnt_tx_mgmt)
+ WLAN_NULLDATA_FR_MAXLEN];
BOOL bRxBeaconInTBTTWake; BOOL bRxBeaconInTBTTWake;
BYTE abyPSTxMap[MAX_NODE_NUM + 1]; BYTE abyPSTxMap[MAX_NODE_NUM + 1];
...@@ -344,14 +339,15 @@ typedef struct vnt_manager ...@@ -344,14 +339,15 @@ typedef struct vnt_manager
// management packet pool // management packet pool
PBYTE pbyMgmtPacketPool; PBYTE pbyMgmtPacketPool;
BYTE byMgmtPacketPool[sizeof(STxMgmtPacket) + WLAN_A3FR_MAXLEN]; u8 byMgmtPacketPool[sizeof(struct vnt_tx_mgmt)
+ WLAN_A3FR_MAXLEN];
// One second callback timer // One second callback timer
struct timer_list sTimerSecondCallback; struct timer_list sTimerSecondCallback;
// Temporarily Rx Mgmt Packet Descriptor /* Temporarily Rx Mgmt Packet Descriptor */
SRxMgmtPacket sRxPacket; struct vnt_rx_mgmt sRxPacket;
// link list of known bss's (scan results) // link list of known bss's (scan results)
KnownBSS sBSSList[MAX_BSS_NUM]; KnownBSS sBSSList[MAX_BSS_NUM];
...@@ -385,8 +381,10 @@ typedef struct vnt_manager ...@@ -385,8 +381,10 @@ typedef struct vnt_manager
BYTE byNewChannel; BYTE byNewChannel;
PWLAN_IE_MEASURE_REP pCurrMeasureEIDRep; PWLAN_IE_MEASURE_REP pCurrMeasureEIDRep;
unsigned int uLengthOfRepEIDs; unsigned int uLengthOfRepEIDs;
BYTE abyCurrentMSRReq[sizeof(STxMgmtPacket) + WLAN_A3FR_MAXLEN]; u8 abyCurrentMSRReq[sizeof(struct vnt_tx_mgmt)
BYTE abyCurrentMSRRep[sizeof(STxMgmtPacket) + WLAN_A3FR_MAXLEN]; + WLAN_A3FR_MAXLEN];
u8 abyCurrentMSRRep[sizeof(struct vnt_tx_mgmt)
+ WLAN_A3FR_MAXLEN];
BYTE abyIECountry[WLAN_A3FR_MAXLEN]; BYTE abyIECountry[WLAN_A3FR_MAXLEN];
BYTE abyIBSSDFSOwner[6]; BYTE abyIBSSDFSOwner[6];
BYTE byIBSSDFSRecovery; BYTE byIBSSDFSRecovery;
...@@ -399,35 +397,29 @@ typedef struct vnt_manager ...@@ -399,35 +397,29 @@ typedef struct vnt_manager
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
void vMgrObjectInit(void *hDeviceContext); void vMgrObjectInit(struct vnt_private *pDevice);
void vMgrAssocBeginSta(void *hDeviceContext, void vMgrAssocBeginSta(struct vnt_private *pDevice,
PSMgmtObject pMgmt, struct vnt_manager *, PCMD_STATUS pStatus);
PCMD_STATUS pStatus);
void vMgrReAssocBeginSta(void *hDeviceContext, void vMgrReAssocBeginSta(struct vnt_private *pDevice,
PSMgmtObject pMgmt, struct vnt_manager *, PCMD_STATUS pStatus);
PCMD_STATUS pStatus);
void vMgrDisassocBeginSta(void *hDeviceContext, void vMgrDisassocBeginSta(struct vnt_private *pDevice,
PSMgmtObject pMgmt, struct vnt_manager *, u8 *abyDestAddress, u16 wReason,
PBYTE abyDestAddress,
WORD wReason,
PCMD_STATUS pStatus); PCMD_STATUS pStatus);
void vMgrAuthenBeginSta(void *hDeviceContext, void vMgrAuthenBeginSta(struct vnt_private *pDevice,
PSMgmtObject pMgmt, struct vnt_manager *, PCMD_STATUS pStatus);
PCMD_STATUS pStatus);
void vMgrCreateOwnIBSS(void *hDeviceContext, void vMgrCreateOwnIBSS(struct vnt_private *pDevice,
PCMD_STATUS pStatus); PCMD_STATUS pStatus);
void vMgrJoinBSSBegin(void *hDeviceContext, void vMgrJoinBSSBegin(struct vnt_private *pDevice,
PCMD_STATUS pStatus); PCMD_STATUS pStatus);
void vMgrRxManagePacket(void *hDeviceContext, void vMgrRxManagePacket(struct vnt_private *pDevice,
PSMgmtObject pMgmt, struct vnt_manager *, struct vnt_rx_mgmt *);
PSRxMgmtPacket pRxPacket);
/* /*
void void
...@@ -437,19 +429,16 @@ vMgrScanBegin( ...@@ -437,19 +429,16 @@ vMgrScanBegin(
); );
*/ */
void vMgrDeAuthenBeginSta(void *hDeviceContext, void vMgrDeAuthenBeginSta(struct vnt_private *pDevice,
PSMgmtObject pMgmt, struct vnt_manager *, u8 *abyDestAddress, u16 wReason,
PBYTE abyDestAddress,
WORD wReason,
PCMD_STATUS pStatus); PCMD_STATUS pStatus);
BOOL bMgrPrepareBeaconToSend(void *hDeviceContext, int bMgrPrepareBeaconToSend(struct vnt_private *pDevice,
PSMgmtObject pMgmt); struct vnt_manager *);
BOOL bAdd_PMKID_Candidate(void *hDeviceContext, int bAdd_PMKID_Candidate(struct vnt_private *pDevice,
PBYTE pbyBSSID, u8 *pbyBSSID, PSRSNCapObject psRSNCapObj);
PSRSNCapObject psRSNCapObj);
void vFlush_PMKID_Candidate(void *hDeviceContext); void vFlush_PMKID_Candidate(struct vnt_private *pDevice);
#endif /* __WMGR_H__ */ #endif /* __WMGR_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment