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

staging: vt6655: channel/wcmd/wctl/wmgr use struct vnt_private *

Replacing PSDevice.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d052270b
...@@ -416,7 +416,7 @@ bool channel_get_list(unsigned int uCountryCodeIdx, unsigned char *pbyChannelTab ...@@ -416,7 +416,7 @@ bool channel_get_list(unsigned int uCountryCodeIdx, unsigned char *pbyChannelTab
void init_channel_table(void *pDeviceHandler) void init_channel_table(void *pDeviceHandler)
{ {
PSDevice pDevice = (PSDevice) pDeviceHandler; struct vnt_private *pDevice = pDeviceHandler;
bool bMultiBand = false; bool bMultiBand = false;
unsigned int ii; unsigned int ii;
...@@ -521,7 +521,7 @@ unsigned char get_channel_number(void *pDeviceHandler, unsigned char byChannelIn ...@@ -521,7 +521,7 @@ unsigned char get_channel_number(void *pDeviceHandler, unsigned char byChannelIn
*/ */
bool set_channel(void *pDeviceHandler, unsigned int uConnectionChannel) bool set_channel(void *pDeviceHandler, unsigned int uConnectionChannel)
{ {
PSDevice pDevice = (PSDevice) pDeviceHandler; struct vnt_private *pDevice = pDeviceHandler;
bool bResult = true; bool bResult = true;
if (pDevice->byCurrentCh == uConnectionChannel) if (pDevice->byCurrentCh == uConnectionChannel)
...@@ -583,7 +583,7 @@ bool set_channel(void *pDeviceHandler, unsigned int uConnectionChannel) ...@@ -583,7 +583,7 @@ bool set_channel(void *pDeviceHandler, unsigned int uConnectionChannel)
void set_country_info(void *pDeviceHandler, CARD_PHY_TYPE ePHYType, void *pIE) void set_country_info(void *pDeviceHandler, CARD_PHY_TYPE ePHYType, void *pIE)
{ {
PSDevice pDevice = (PSDevice) pDeviceHandler; struct vnt_private *pDevice = pDeviceHandler;
unsigned int ii = 0; unsigned int ii = 0;
unsigned int uu = 0; unsigned int uu = 0;
unsigned int step = 0; unsigned int step = 0;
...@@ -632,7 +632,7 @@ void set_country_info(void *pDeviceHandler, CARD_PHY_TYPE ePHYType, void *pIE) ...@@ -632,7 +632,7 @@ void set_country_info(void *pDeviceHandler, CARD_PHY_TYPE ePHYType, void *pIE)
unsigned char set_support_channels(void *pDeviceHandler, unsigned char *pbyIEs) unsigned char set_support_channels(void *pDeviceHandler, unsigned char *pbyIEs)
{ {
PSDevice pDevice = (PSDevice) pDeviceHandler; struct vnt_private *pDevice = pDeviceHandler;
unsigned int ii; unsigned int ii;
unsigned char byCount; unsigned char byCount;
PWLAN_IE_SUPP_CH pIE = (PWLAN_IE_SUPP_CH) pbyIEs; PWLAN_IE_SUPP_CH pIE = (PWLAN_IE_SUPP_CH) pbyIEs;
...@@ -703,7 +703,7 @@ unsigned char set_support_channels(void *pDeviceHandler, unsigned char *pbyIEs) ...@@ -703,7 +703,7 @@ unsigned char set_support_channels(void *pDeviceHandler, unsigned char *pbyIEs)
void set_country_IE(void *pDeviceHandler, void *pIE) void set_country_IE(void *pDeviceHandler, void *pIE)
{ {
PSDevice pDevice = (PSDevice) pDeviceHandler; struct vnt_private *pDevice = pDeviceHandler;
unsigned int ii; unsigned int ii;
PWLAN_IE_COUNTRY pIECountry = (PWLAN_IE_COUNTRY) pIE; PWLAN_IE_COUNTRY pIECountry = (PWLAN_IE_COUNTRY) pIE;
......
...@@ -65,13 +65,13 @@ static int msglevel = MSG_LEVEL_INFO; ...@@ -65,13 +65,13 @@ static int msglevel = MSG_LEVEL_INFO;
static static
void void
s_vProbeChannel( s_vProbeChannel(
PSDevice pDevice struct vnt_private *pDevice
); );
static static
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeProbeRequest( s_MgrMakeProbeRequest(
PSDevice pDevice, struct vnt_private *pDevice,
PSMgmtObject pMgmt, PSMgmtObject pMgmt,
unsigned char *pScanBSSID, unsigned char *pScanBSSID,
PWLAN_IE_SSID pSSID, PWLAN_IE_SSID pSSID,
...@@ -82,7 +82,7 @@ s_MgrMakeProbeRequest( ...@@ -82,7 +82,7 @@ s_MgrMakeProbeRequest(
static static
bool bool
s_bCommandComplete( s_bCommandComplete(
PSDevice pDevice struct vnt_private *pDevice
); );
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
...@@ -104,7 +104,7 @@ s_bCommandComplete( ...@@ -104,7 +104,7 @@ s_bCommandComplete(
*/ */
static static
void void
vAdHocBeaconStop(PSDevice pDevice) vAdHocBeaconStop(struct vnt_private *pDevice)
{ {
PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
bool bStop; bool bStop;
...@@ -151,7 +151,7 @@ vAdHocBeaconStop(PSDevice pDevice) ...@@ -151,7 +151,7 @@ vAdHocBeaconStop(PSDevice pDevice)
*/ */
static static
void void
vAdHocBeaconRestart(PSDevice pDevice) vAdHocBeaconRestart(struct vnt_private *pDevice)
{ {
PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
...@@ -181,7 +181,7 @@ vAdHocBeaconRestart(PSDevice pDevice) ...@@ -181,7 +181,7 @@ vAdHocBeaconRestart(PSDevice pDevice)
static static
void void
s_vProbeChannel( s_vProbeChannel(
PSDevice pDevice struct vnt_private *pDevice
) )
{ {
//1M, 2M, 5M, 11M, 18M, 24M, 36M, 54M //1M, 2M, 5M, 11M, 18M, 24M, 36M, 54M
...@@ -236,7 +236,7 @@ s_vProbeChannel( ...@@ -236,7 +236,7 @@ s_vProbeChannel(
static PSTxMgmtPacket static PSTxMgmtPacket
s_MgrMakeProbeRequest( s_MgrMakeProbeRequest(
PSDevice pDevice, struct vnt_private *pDevice,
PSMgmtObject pMgmt, PSMgmtObject pMgmt,
unsigned char *pScanBSSID, unsigned char *pScanBSSID,
PWLAN_IE_SSID pSSID, PWLAN_IE_SSID pSSID,
...@@ -287,7 +287,7 @@ vCommandTimerWait( ...@@ -287,7 +287,7 @@ vCommandTimerWait(
unsigned int MSecond unsigned int MSecond
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; struct vnt_private *pDevice = hDeviceContext;
init_timer(&pDevice->sTimerCommand); init_timer(&pDevice->sTimerCommand);
pDevice->sTimerCommand.data = (unsigned long) pDevice; pDevice->sTimerCommand.data = (unsigned long) pDevice;
...@@ -302,7 +302,7 @@ vCommandTimer( ...@@ -302,7 +302,7 @@ vCommandTimer(
void *hDeviceContext void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; struct vnt_private *pDevice = hDeviceContext;
PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt;
PWLAN_IE_SSID pItemSSID; PWLAN_IE_SSID pItemSSID;
PWLAN_IE_SSID pItemSSIDCurr; PWLAN_IE_SSID pItemSSIDCurr;
...@@ -801,7 +801,7 @@ vCommandTimer( ...@@ -801,7 +801,7 @@ vCommandTimer(
static static
bool bool
s_bCommandComplete( s_bCommandComplete(
PSDevice pDevice struct vnt_private *pDevice
) )
{ {
PWLAN_IE_SSID pSSID; PWLAN_IE_SSID pSSID;
...@@ -875,7 +875,7 @@ bool bScheduleCommand( ...@@ -875,7 +875,7 @@ bool bScheduleCommand(
unsigned char *pbyItem0 unsigned char *pbyItem0
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; struct vnt_private *pDevice = hDeviceContext;
if (pDevice->cbFreeCmdQueue == 0) if (pDevice->cbFreeCmdQueue == 0)
return false; return false;
...@@ -944,7 +944,7 @@ bool bClearBSSID_SCAN( ...@@ -944,7 +944,7 @@ bool bClearBSSID_SCAN(
void *hDeviceContext void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; struct vnt_private *pDevice = hDeviceContext;
unsigned int uCmdDequeueIdx = pDevice->uCmdDequeueIdx; unsigned int uCmdDequeueIdx = pDevice->uCmdDequeueIdx;
unsigned int ii; unsigned int ii;
...@@ -966,7 +966,7 @@ vResetCommandTimer( ...@@ -966,7 +966,7 @@ vResetCommandTimer(
void *hDeviceContext void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; struct vnt_private *pDevice = hDeviceContext;
//delete timer //delete timer
del_timer(&pDevice->sTimerCommand); del_timer(&pDevice->sTimerCommand);
...@@ -988,7 +988,7 @@ BSSvSecondTxData( ...@@ -988,7 +988,7 @@ BSSvSecondTxData(
void *hDeviceContext void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; struct vnt_private *pDevice = hDeviceContext;
PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
pDevice->nTxDataTimeCout++; pDevice->nTxDataTimeCout++;
......
...@@ -105,7 +105,8 @@ bool WCTLbIsDuplicate(PSCache pCache, PS802_11Header pMACHeader) ...@@ -105,7 +105,8 @@ bool WCTLbIsDuplicate(PSCache pCache, PS802_11Header pMACHeader)
* Return Value: index number in Defragment Database * Return Value: index number in Defragment Database
* *
*/ */
unsigned int WCTLuSearchDFCB(PSDevice pDevice, PS802_11Header pMACHeader) unsigned int WCTLuSearchDFCB(struct vnt_private *pDevice,
PS802_11Header pMACHeader)
{ {
unsigned int ii; unsigned int ii;
...@@ -133,7 +134,7 @@ unsigned int WCTLuSearchDFCB(PSDevice pDevice, PS802_11Header pMACHeader) ...@@ -133,7 +134,7 @@ unsigned int WCTLuSearchDFCB(PSDevice pDevice, PS802_11Header pMACHeader)
* Return Value: index number in Defragment Database * Return Value: index number in Defragment Database
* *
*/ */
unsigned int WCTLuInsertDFCB(PSDevice pDevice, PS802_11Header pMACHeader) unsigned int WCTLuInsertDFCB(struct vnt_private *pDevice, PS802_11Header pMACHeader)
{ {
unsigned int ii; unsigned int ii;
...@@ -169,7 +170,8 @@ unsigned int WCTLuInsertDFCB(PSDevice pDevice, PS802_11Header pMACHeader) ...@@ -169,7 +170,8 @@ unsigned int WCTLuInsertDFCB(PSDevice pDevice, PS802_11Header pMACHeader)
* Return Value: true if it is valid fragment packet and we have resource to defragment; otherwise false * Return Value: true if it is valid fragment packet and we have resource to defragment; otherwise false
* *
*/ */
bool WCTLbHandleFragment(PSDevice pDevice, PS802_11Header pMACHeader, unsigned int cbFrameLength, bool bWEP, bool bExtIV) bool WCTLbHandleFragment(struct vnt_private *pDevice, PS802_11Header pMACHeader,
unsigned int cbFrameLength, bool bWEP, bool bExtIV)
{ {
unsigned int uHeaderSize; unsigned int uHeaderSize;
......
...@@ -97,9 +97,9 @@ do { \ ...@@ -97,9 +97,9 @@ do { \
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
bool WCTLbIsDuplicate(PSCache pCache, PS802_11Header pMACHeader); bool WCTLbIsDuplicate(PSCache pCache, PS802_11Header pMACHeader);
bool WCTLbHandleFragment(PSDevice pDevice, PS802_11Header pMACHeader, bool WCTLbHandleFragment(struct vnt_private *, PS802_11Header pMACHeader,
unsigned int cbFrameLength, bool bWEP, bool bExtIV); unsigned int cbFrameLength, bool bWEP, bool bExtIV);
unsigned int WCTLuSearchDFCB(PSDevice pDevice, PS802_11Header pMACHeader); unsigned int WCTLuSearchDFCB(struct vnt_private *, PS802_11Header pMACHeader);
unsigned int WCTLuInsertDFCB(PSDevice pDevice, PS802_11Header pMACHeader); unsigned int WCTLuInsertDFCB(struct vnt_private *, PS802_11Header pMACHeader);
#endif // __WCTL_H__ #endif // __WCTL_H__
This diff is collapsed.
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