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>
This commit is contained in:
Philip Worrall 2011-03-02 14:34:45 +00:00 коммит произвёл Greg Kroah-Hartman
Родитель b898cf21ad
Коммит 8c81161615
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -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");