staging: vt6655: rf.c/h Replace DeviceContext with vnt_private
Removing void and including device.h for power.h Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
16d56de650
Коммит
c30ab9303f
|
@ -64,11 +64,10 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
PSvEnablePowerSaving(
|
PSvEnablePowerSaving(
|
||||||
void *hDeviceContext,
|
struct vnt_private *priv,
|
||||||
unsigned short wListenInterval
|
unsigned short wListenInterval
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct vnt_private *priv = hDeviceContext;
|
|
||||||
u16 wAID = priv->current_aid | BIT(14) | BIT(15);
|
u16 wAID = priv->current_aid | BIT(14) | BIT(15);
|
||||||
|
|
||||||
/* set period of power up before TBTT */
|
/* set period of power up before TBTT */
|
||||||
|
@ -117,11 +116,9 @@ PSvEnablePowerSaving(
|
||||||
|
|
||||||
void
|
void
|
||||||
PSvDisablePowerSaving(
|
PSvDisablePowerSaving(
|
||||||
void *hDeviceContext
|
struct vnt_private *priv
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct vnt_private *priv = hDeviceContext;
|
|
||||||
|
|
||||||
/* disable power saving hw function */
|
/* disable power saving hw function */
|
||||||
MACbPSWakeup(priv->PortOffset);
|
MACbPSWakeup(priv->PortOffset);
|
||||||
/* clear AutoSleep */
|
/* clear AutoSleep */
|
||||||
|
@ -149,10 +146,9 @@ PSvDisablePowerSaving(
|
||||||
|
|
||||||
bool
|
bool
|
||||||
PSbIsNextTBTTWakeUp(
|
PSbIsNextTBTTWakeUp(
|
||||||
void *hDeviceContext
|
struct vnt_private *priv
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct vnt_private *priv = hDeviceContext;
|
|
||||||
struct ieee80211_hw *hw = priv->hw;
|
struct ieee80211_hw *hw = priv->hw;
|
||||||
struct ieee80211_conf *conf = &hw->conf;
|
struct ieee80211_conf *conf = &hw->conf;
|
||||||
bool bWakeUp = false;
|
bool bWakeUp = false;
|
||||||
|
|
|
@ -29,25 +29,27 @@
|
||||||
#ifndef __POWER_H__
|
#ifndef __POWER_H__
|
||||||
#define __POWER_H__
|
#define __POWER_H__
|
||||||
|
|
||||||
|
#include "device.h"
|
||||||
|
|
||||||
#define C_PWBT 1000 /* micro sec. power up before TBTT */
|
#define C_PWBT 1000 /* micro sec. power up before TBTT */
|
||||||
#define PS_FAST_INTERVAL 1 /* Fast power saving listen interval */
|
#define PS_FAST_INTERVAL 1 /* Fast power saving listen interval */
|
||||||
#define PS_MAX_INTERVAL 4 /* MAX power saving listen interval */
|
#define PS_MAX_INTERVAL 4 /* MAX power saving listen interval */
|
||||||
|
|
||||||
void
|
void
|
||||||
PSvDisablePowerSaving(
|
PSvDisablePowerSaving(
|
||||||
void *hDeviceContext
|
struct vnt_private *
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
PSvEnablePowerSaving(
|
PSvEnablePowerSaving(
|
||||||
void *hDeviceContext,
|
struct vnt_private *,
|
||||||
unsigned short wListenInterval
|
unsigned short wListenInterval
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
PSbIsNextTBTTWakeUp(
|
PSbIsNextTBTTWakeUp(
|
||||||
void *hDeviceContext
|
struct vnt_private *
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif /* __POWER_H__ */
|
#endif /* __POWER_H__ */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче