// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. * All rights reserved. * * Purpose: Handles 802.11 power management functions * * Author: Lyndon Chen * * Date: July 17, 2002 * * Functions: * PSvEnablePowerSaving - Enable Power Saving Mode * PSvDiasblePowerSaving - Disable Power Saving Mode * PSbConsiderPowerDown - Decide if we can Power Down * PSvSendPSPOLL - Send PS-POLL packet * PSbSendNullPacket - Send Null packet * PSbIsNextTBTTWakeUp - Decide if we need to wake up at next Beacon * * Revision History: * */ #include "mac.h" #include "device.h" #include "power.h" #include "card.h" /*--------------------- Static Definitions -------------------------*/ /*--------------------- Static Classes ----------------------------*/ /*--------------------- Static Functions --------------------------*/ /*--------------------- Export Variables --------------------------*/ /*--------------------- Export Functions --------------------------*/ /* * * Routine Description: * Enable hw power saving functions * * Return Value: * None. * */ void PSvEnablePowerSaving(struct vnt_private *priv, unsigned short wListenInterval) { … } /* * * Routine Description: * Disable hw power saving functions * * Return Value: * None. * */ void PSvDisablePowerSaving(struct vnt_private *priv) { … } /* * * Routine Description: * Check if Next TBTT must wake up * * Return Value: * None. * */ bool PSbIsNextTBTTWakeUp(struct vnt_private *priv) { … }