Skip to content

Commit

Permalink
Staging: vt6656: Clean up switching to power saving mode.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Philip Worrall authored and Greg Kroah-Hartman committed Mar 2, 2011
1 parent b898cf2 commit 8c81161
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/staging/vt6656/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8c81161

Please sign in to comment.