Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197379
b: refs/heads/master
c: 0cbd8d9
h: refs/heads/master
i:
  197377: 7657144
  197375: 69a481c
v: v3
  • Loading branch information
Andres More authored and Greg Kroah-Hartman committed May 11, 2010
1 parent a51c32f commit becbea6
Show file tree
Hide file tree
Showing 19 changed files with 507 additions and 782 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3afc7cc38c75d645855d680f0fad7d342f8e7fb2
refs/heads/master: 0cbd8d9854284d3ff38d04aaa3ae726fb1c4a958
22 changes: 10 additions & 12 deletions trunk/drivers/staging/vt6656/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,9 @@ BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3)
if ( pDevice->byTMax == 0 )
return;

bScheduleCommand((HANDLE) pDevice, WLAN_CMD_CHANGE_ANTENNA, NULL);
bScheduleCommand((void *) pDevice,
WLAN_CMD_CHANGE_ANTENNA,
NULL);

pDevice->byAntennaState = 1;

Expand Down Expand Up @@ -1543,7 +1545,9 @@ BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3)
((pDevice->ulSQ3_State1 != 0) && (pDevice->ulSQ3_State0 != 0) && (pDevice->ulSQ3_State0 < pDevice->ulSQ3_State1))
) {

bScheduleCommand((HANDLE) pDevice, WLAN_CMD_CHANGE_ANTENNA, NULL);
bScheduleCommand((void *) pDevice,
WLAN_CMD_CHANGE_ANTENNA,
NULL);

pDevice->TimerSQ3Tmax3.expires = RUN_AT(pDevice->byTMax3 * HZ);
pDevice->TimerSQ3Tmax2.expires = RUN_AT(pDevice->byTMax2 * HZ);
Expand Down Expand Up @@ -1576,17 +1580,14 @@ BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3)
*
-*/

void
TimerSQ3CallBack (
HANDLE hDeviceContext
)
void TimerSQ3CallBack(void *hDeviceContext)
{
PSDevice pDevice = (PSDevice)hDeviceContext;

DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"TimerSQ3CallBack...");
spin_lock_irq(&pDevice->lock);

bScheduleCommand((HANDLE) pDevice, WLAN_CMD_CHANGE_ANTENNA, NULL);
bScheduleCommand((void *) pDevice, WLAN_CMD_CHANGE_ANTENNA, NULL);
pDevice->byAntennaState = 0;
s_vClearSQ3Value(pDevice);
pDevice->TimerSQ3Tmax3.expires = RUN_AT(pDevice->byTMax3 * HZ);
Expand Down Expand Up @@ -1618,10 +1619,7 @@ TimerSQ3CallBack (
*
-*/

void
TimerSQ3Tmax3CallBack (
HANDLE hDeviceContext
)
void TimerSQ3Tmax3CallBack(void *hDeviceContext)
{
PSDevice pDevice = (PSDevice)hDeviceContext;

Expand All @@ -1639,7 +1637,7 @@ TimerSQ3Tmax3CallBack (
return;
}

bScheduleCommand((HANDLE) pDevice, WLAN_CMD_CHANGE_ANTENNA, NULL);
bScheduleCommand((void *) pDevice, WLAN_CMD_CHANGE_ANTENNA, NULL);
pDevice->byAntennaState = 1;
del_timer(&pDevice->TimerSQ3Tmax3);
del_timer(&pDevice->TimerSQ3Tmax2);
Expand Down
11 changes: 2 additions & 9 deletions trunk/drivers/staging/vt6656/baseband.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,8 @@ BBvCaculateParameter (

// timer for antenna diversity

void
TimerSQ3CallBack (
HANDLE hDeviceContext
);

void
TimerSQ3Tmax3CallBack (
HANDLE hDeviceContext
);
void TimerSQ3CallBack(void *hDeviceContext);
void TimerSQ3Tmax3CallBack(void *hDeviceContext);

void BBvAntennaDiversity(PSDevice pDevice, BYTE byRxRate, BYTE bySQ3);
void BBvLoopbackOn(PSDevice pDevice);
Expand Down
Loading

0 comments on commit becbea6

Please sign in to comment.