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

staging: vt6656: change bssdb/rxtx/wpa2 to new structures

Use
struct vnt_private
struct vnt_manager

Move vnt_manager from sMgmtObj to vnt_mgmt.

This patch cleans up function declarations, definitions and local variables
where appropriate replacing types defined in "type.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 532572b9
This diff is collapsed.
...@@ -226,80 +226,70 @@ typedef struct tagKnownNodeDB { ...@@ -226,80 +226,70 @@ typedef struct tagKnownNodeDB {
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
PKnownBSS BSSpSearchBSSList(void *hDeviceContext, PKnownBSS BSSpSearchBSSList(struct vnt_private *, u8 *pbyDesireBSSID,
PBYTE pbyDesireBSSID, u8 *pbyDesireSSID, CARD_PHY_TYPE ePhyType);
PBYTE pbyDesireSSID,
CARD_PHY_TYPE ePhyType);
PKnownBSS BSSpAddrIsInBSSList(void *hDeviceContext, PKnownBSS BSSpAddrIsInBSSList(struct vnt_private *, u8 *abyBSSID,
PBYTE abyBSSID, PWLAN_IE_SSID pSSID);
PWLAN_IE_SSID pSSID);
void BSSvClearBSSList(void *hDeviceContext, BOOL bKeepCurrBSSID); void BSSvClearBSSList(struct vnt_private *, int bKeepCurrBSSID);
BOOL BSSbInsertToBSSList(void *hDeviceContext, int BSSbInsertToBSSList(struct vnt_private *,
PBYTE abyBSSIDAddr, u8 *abyBSSIDAddr,
u64 qwTimestamp, u64 qwTimestamp,
WORD wBeaconInterval, u16 wBeaconInterval,
WORD wCapInfo, u16 wCapInfo,
BYTE byCurrChannel, u8 byCurrChannel,
PWLAN_IE_SSID pSSID, PWLAN_IE_SSID pSSID,
PWLAN_IE_SUPP_RATES pSuppRates, PWLAN_IE_SUPP_RATES pSuppRates,
PWLAN_IE_SUPP_RATES pExtSuppRates, PWLAN_IE_SUPP_RATES pExtSuppRates,
PERPObject psERP, PERPObject psERP,
PWLAN_IE_RSN pRSN, PWLAN_IE_RSN pRSN,
PWLAN_IE_RSN_EXT pRSNWPA, PWLAN_IE_RSN_EXT pRSNWPA,
PWLAN_IE_COUNTRY pIE_Country, PWLAN_IE_COUNTRY pIE_Country,
PWLAN_IE_QUIET pIE_Quiet, PWLAN_IE_QUIET pIE_Quiet,
unsigned int uIELength, u32 uIELength,
PBYTE pbyIEs, u8 *pbyIEs,
void *pRxPacketContext); void *pRxPacketContext);
BOOL BSSbUpdateToBSSList(void *hDeviceContext, int BSSbUpdateToBSSList(struct vnt_private *,
u64 qwTimestamp, u64 qwTimestamp,
WORD wBeaconInterval, u16 wBeaconInterval,
WORD wCapInfo, u16 wCapInfo,
BYTE byCurrChannel, u8 byCurrChannel,
BOOL bChannelHit, int bChannelHit,
PWLAN_IE_SSID pSSID, PWLAN_IE_SSID pSSID,
PWLAN_IE_SUPP_RATES pSuppRates, PWLAN_IE_SUPP_RATES pSuppRates,
PWLAN_IE_SUPP_RATES pExtSuppRates, PWLAN_IE_SUPP_RATES pExtSuppRates,
PERPObject psERP, PERPObject psERP,
PWLAN_IE_RSN pRSN, PWLAN_IE_RSN pRSN,
PWLAN_IE_RSN_EXT pRSNWPA, PWLAN_IE_RSN_EXT pRSNWPA,
PWLAN_IE_COUNTRY pIE_Country, PWLAN_IE_COUNTRY pIE_Country,
PWLAN_IE_QUIET pIE_Quiet, PWLAN_IE_QUIET pIE_Quiet,
PKnownBSS pBSSList, PKnownBSS pBSSList,
unsigned int uIELength, u32 uIELength,
PBYTE pbyIEs, u8 *pbyIEs,
void *pRxPacketContext); void *pRxPacketContext);
BOOL BSSbIsSTAInNodeDB(void *hDeviceContext, int BSSbIsSTAInNodeDB(struct vnt_private *, PBYTE abyDstAddr,
PBYTE abyDstAddr, u32 *puNodeIndex);
unsigned int *puNodeIndex);
void BSSvCreateOneNode(struct vnt_private *, u32 *puNodeIndex);
void BSSvCreateOneNode(void *hDeviceContext, unsigned int *puNodeIndex);
void BSSvUpdateAPNode(struct vnt_private *, u16 *pwCapInfo,
void BSSvUpdateAPNode(void *hDeviceContext, PWLAN_IE_SUPP_RATES pItemRates, PWLAN_IE_SUPP_RATES pExtSuppRates);
PWORD pwCapInfo,
PWLAN_IE_SUPP_RATES pItemRates, void BSSvSecondCallBack(struct vnt_private *);
PWLAN_IE_SUPP_RATES pExtSuppRates);
void BSSvUpdateNodeTxCounter(struct vnt_private *, PSStatCounter pStatistic,
void BSSvSecondCallBack(void *hDeviceContext); u8 byTSR, u8 byPktNO);
void BSSvUpdateNodeTxCounter(void *hDeviceContext, void BSSvRemoveOneNode(struct vnt_private *, u32 uNodeIndex);
PSStatCounter pStatistic,
BYTE byTSR, void BSSvAddMulticastNode(struct vnt_private *);
BYTE byPktNO);
void BSSvClearNodeDBTable(struct vnt_private *, u32 uStartIndex);
void BSSvRemoveOneNode(void *hDeviceContext,
unsigned int uNodeIndex); void BSSvClearAnyBSSJoinRecord(struct vnt_private *);
void BSSvAddMulticastNode(void *hDeviceContext);
void BSSvClearNodeDBTable(void *hDeviceContext,
unsigned int uStartIndex);
void BSSvClearAnyBSSJoinRecord(void *hDeviceContext);
#endif /* __BSSDB_H__ */ #endif /* __BSSDB_H__ */
This diff is collapsed.
...@@ -665,30 +665,11 @@ typedef struct tagSBEACON_BUFFER ...@@ -665,30 +665,11 @@ typedef struct tagSBEACON_BUFFER
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
BOOL void vDMA0_tx_80211(struct vnt_private *, struct sk_buff *skb);
bPacketToWirelessUsb( int nsDMA_tx_packet(struct vnt_private *, u32 uDMAIdx, struct sk_buff *skb);
PSDevice pDevice, CMD_STATUS csMgmt_xmit(struct vnt_private *, struct vnt_tx_mgmt *);
BYTE byPktType, CMD_STATUS csBeacon_xmit(struct vnt_private *, struct vnt_tx_mgmt *);
PBYTE usbPacketBuf, int bRelayPacketSend(struct vnt_private *, u8 *pbySkbData, u32 uDataLen,
BOOL bNeedEncrypt, u32 uNodeIndex);
unsigned int cbPayloadSize,
unsigned int uDMAIdx,
PSEthernetHeader psEthHeader,
PBYTE pPacket,
PSKeyItem pTransmitKey,
unsigned int uNodeIndex,
WORD wCurrentRate,
unsigned int *pcbHeaderLen,
unsigned int *pcbTotalLen
);
void vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb);
int nsDMA_tx_packet(PSDevice pDevice,
unsigned int uDMAIdx,
struct sk_buff *skb);
CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
BOOL bRelayPacketSend(PSDevice pDevice, PBYTE pbySkbData,
unsigned int uDataLen, unsigned int uNodeIndex);
#endif /* __RXTX_H__ */ #endif /* __RXTX_H__ */
...@@ -260,19 +260,16 @@ WPA2vParseRSN ( ...@@ -260,19 +260,16 @@ WPA2vParseRSN (
* Return Value: length of IEs. * Return Value: length of IEs.
* *
-*/ -*/
unsigned int unsigned int WPA2uSetIEs(void *pMgmtHandle, PWLAN_IE_RSN pRSNIEs)
WPA2uSetIEs(void *pMgmtHandle,
PWLAN_IE_RSN pRSNIEs
)
{ {
PSMgmtObject pMgmt = (PSMgmtObject) pMgmtHandle; struct vnt_manager *pMgmt = (struct vnt_manager *)pMgmtHandle;
PBYTE pbyBuffer = NULL; u8 *pbyBuffer = NULL;
unsigned int ii = 0; int ii = 0;
PWORD pwPMKID = NULL; u16 *pwPMKID = NULL;
if (pRSNIEs == NULL)
return 0;
if (pRSNIEs == NULL) {
return(0);
}
if (((pMgmt->eAuthenMode == WMAC_AUTH_WPA2) || if (((pMgmt->eAuthenMode == WMAC_AUTH_WPA2) ||
(pMgmt->eAuthenMode == WMAC_AUTH_WPA2PSK)) && (pMgmt->eAuthenMode == WMAC_AUTH_WPA2PSK)) &&
(pMgmt->pCurrBSS != NULL)) { (pMgmt->pCurrBSS != NULL)) {
......
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