// 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: * vnt_enable_power_saving - Enable Power Saving Mode * PSvDiasblePowerSaving - Disable Power Saving Mode * vnt_next_tbtt_wakeup - Decide if we need to wake up at next Beacon * * Revision History: * */ #include "mac.h" #include "device.h" #include "power.h" #include "wcmd.h" #include "rxtx.h" #include "card.h" #include "usbpipe.h" /* * * Routine Description: * Enable hw power saving functions * * Return Value: * None. * */ void vnt_enable_power_saving(struct vnt_private *priv, u16 listen_interval) { … } int vnt_disable_power_saving(struct vnt_private *priv) { … } /* * * Routine Description: * Check if Next TBTT must wake up * * Return Value: * None. * */ int vnt_next_tbtt_wakeup(struct vnt_private *priv) { … }