[PATCH 7/7] Staging: vt6656: Clean up switching to power saving mode.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When switching to power saving mode we only need to notify
the receiver when in infrastructure mode.

Signed-off-by: Philip Worrall <philip.worrall@xxxxxxxxxxxxxx>
---
 drivers/staging/vt6656/power.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/vt6656/power.c b/drivers/staging/vt6656/power.c
index fbc3702..bef43e9 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");
-- 
1.7.1

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux