projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b898cf2
)
Staging: vt6656: Clean up switching to power saving mode.
author
Philip Worrall
<
[email protected]
>
Wed, 2 Mar 2011 14:34:45 +0000
(14:34 +0000)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 2 Mar 2011 20:52:30 +0000
(15:52 -0500)
When switching to power saving mode we only need to notify
the receiver when in infrastructure mode.
Signed-off-by: Philip Worrall <
[email protected]
>
Reviewed-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/vt6656/power.c
patch
|
blob
|
history
diff --git
a/drivers/staging/vt6656/power.c
b/drivers/staging/vt6656/power.c
index bd9c55c8ef96312938c3e8ef10e122091c2ce3ec..b3136773b5da694693d022c154d4a82164d73730 100644
(file)
--- a/
drivers/staging/vt6656/power.c
+++ b/
drivers/staging/vt6656/power.c
@@
-118,15
+118,9
@@
void PSvEnablePowerSaving(void *hDeviceContext,
pDevice->bEnablePSMode = TRUE;
- if (pDevice->eOPMode == OP_MODE_ADHOC) {
-
- /* bMgrPrepareBeaconToSend((void *) pDevice, pMgmt); */
-
- }
/* We don't send null pkt in ad hoc mode since beacon will handle this. */
- else if (pDevice->eOPMode == OP_MODE_INFRASTRUCTURE) {
+ if (pDevice->eOPMode == OP_MODE_INFRASTRUCTURE)
PSbSendNullPacket(pDevice);
- }
pDevice->bPWBitOn = TRUE;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "PS:Power Saving Mode Enable...\n");