summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/power.c
diff options
context:
space:
mode:
authorPhilip Worrall2011-03-02 15:34:45 +0100
committerGreg Kroah-Hartman2011-03-02 21:52:30 +0100
commit8c81161615feb8c666c675ec7a660dc9b011683f (patch)
tree29a6fc460b387899441fabbf7c0c6b82463894a2 /drivers/staging/vt6656/power.c
parentStaging: vt6656: Ensure power.c uses proper tabbing. (diff)
downloadkernel-qcow2-linux-8c81161615feb8c666c675ec7a660dc9b011683f.tar.gz
kernel-qcow2-linux-8c81161615feb8c666c675ec7a660dc9b011683f.tar.xz
kernel-qcow2-linux-8c81161615feb8c666c675ec7a660dc9b011683f.zip
Staging: vt6656: Clean up switching to power saving mode.
When switching to power saving mode we only need to notify the receiver when in infrastructure mode. Signed-off-by: Philip Worrall <philip.worrall@googlemail.com> Reviewed-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656/power.c')
-rw-r--r--drivers/staging/vt6656/power.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/staging/vt6656/power.c b/drivers/staging/vt6656/power.c
index bd9c55c8ef96..b3136773b5da 100644
--- 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");