Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c811616 authored by Philip Worrall's avatar Philip Worrall Committed by Greg Kroah-Hartman
Browse files

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: default avatarPhilip Worrall <philip.worrall@googlemail.com>
Reviewed-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b898cf21
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -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");