Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236284
b: refs/heads/master
c: 31d664e
h: refs/heads/master
v: v3
  • Loading branch information
Mike McCormack authored and Greg Kroah-Hartman committed Mar 7, 2011
1 parent c35633c commit 4669137
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 774dee1c1af9dd4994d5055bf2507c9ad72991e3
refs/heads/master: 31d664e56bb508aaa00de3952f0746dcd9d18a01
2 changes: 1 addition & 1 deletion trunk/drivers/staging/rtl8192e/ieee80211/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -2243,7 +2243,7 @@ struct ieee80211_device {
//added by amy for AP roaming
RT_LINK_DETECT_T LinkDetectInfo;
//added by amy for ps
RT_POWER_SAVE_CONTROL PowerSaveControl;
//RT_POWER_SAVE_CONTROL PowerSaveControl;
//}
/* used if IEEE_SOFTMAC_TX_QUEUE is set */
struct tx_pending_t tx_pending;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/rtl8192e/r8190_rtl8256.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static bool
SetRFPowerState8190(struct net_device *dev, RT_RF_POWER_STATE eRFPowerState)
{
struct r8192_priv *priv = ieee80211_priv(dev);
PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->ieee80211->PowerSaveControl));
PRT_POWER_SAVE_CONTROL pPSC = &priv->PowerSaveControl;
bool bResult = true;

if (eRFPowerState == priv->eRFPowerState &&
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/staging/rtl8192e/r8192E.h
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ typedef struct r8192_priv
// Use to calculate PWBD.
RT_RF_POWER_STATE eRFPowerState;
RT_RF_CHANGE_SOURCE RfOffReason;
RT_POWER_SAVE_CONTROL PowerSaveControl;
u8 bCckHighPower;
long undecorated_smoothed_pwdb;
long undecorated_smoothed_cck_adc_pwdb[4];
Expand Down
24 changes: 12 additions & 12 deletions trunk/drivers/staging/rtl8192e/r8192E_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,7 @@ static void rtl8192_init_priv_variable(struct net_device* dev)
{
struct r8192_priv *priv = ieee80211_priv(dev);
u8 i;
PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->ieee80211->PowerSaveControl));
PRT_POWER_SAVE_CONTROL pPSC = &priv->PowerSaveControl;

// Default Halt the NIC if RF is OFF.
pPSC->RegRfPsLevel |= RT_RF_OFF_LEVL_HALT_NIC;
Expand Down Expand Up @@ -1948,8 +1948,8 @@ static void rtl8192_init_priv_variable(struct net_device* dev)
//added by amy for power save
priv->RfOffReason = 0;
priv->bHwRfOffAction = 0;
priv->ieee80211->PowerSaveControl.bInactivePs = true;
priv->ieee80211->PowerSaveControl.bIPSModeBackup = false;
priv->PowerSaveControl.bInactivePs = true;
priv->PowerSaveControl.bIPSModeBackup = false;

priv->ieee80211->current_network.beacon_interval = DEFAULT_BEACONINTERVAL;
priv->ieee80211->iw_mode = IW_MODE_INFRA;
Expand Down Expand Up @@ -3090,7 +3090,7 @@ rtl819x_ifcheck_resetornot(struct net_device *dev)
void InactivePsWorkItemCallback(struct net_device *dev)
{
struct r8192_priv *priv = ieee80211_priv(dev);
PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->ieee80211->PowerSaveControl));
PRT_POWER_SAVE_CONTROL pPSC = &priv->PowerSaveControl;

RT_TRACE(COMP_POWER, "InactivePsWorkItemCallback() --------->\n");
//
Expand Down Expand Up @@ -3163,7 +3163,7 @@ bool MgntActSet_802_11_PowerSaveMode(struct net_device *dev, u8 rtPsMode)
void LeisurePSEnter(struct net_device *dev)
{
struct r8192_priv *priv = ieee80211_priv(dev);
PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->ieee80211->PowerSaveControl));
PRT_POWER_SAVE_CONTROL pPSC = &priv->PowerSaveControl;

if(!((priv->ieee80211->iw_mode == IW_MODE_INFRA) &&
(priv->ieee80211->state == IEEE80211_LINKED)) ||
Expand Down Expand Up @@ -3193,7 +3193,7 @@ void LeisurePSEnter(struct net_device *dev)
void LeisurePSLeave(struct net_device *dev)
{
struct r8192_priv *priv = ieee80211_priv(dev);
PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->ieee80211->PowerSaveControl));
PRT_POWER_SAVE_CONTROL pPSC = &priv->PowerSaveControl;

if (pPSC->bLeisurePs)
{
Expand All @@ -3213,7 +3213,7 @@ void
IPSEnter(struct net_device *dev)
{
struct r8192_priv *priv = ieee80211_priv(dev);
PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->ieee80211->PowerSaveControl));
PRT_POWER_SAVE_CONTROL pPSC = &priv->PowerSaveControl;
RT_RF_POWER_STATE rtState;

if (pPSC->bInactivePs)
Expand Down Expand Up @@ -3248,7 +3248,7 @@ void
IPSLeave(struct net_device *dev)
{
struct r8192_priv *priv = ieee80211_priv(dev);
PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->ieee80211->PowerSaveControl));
PRT_POWER_SAVE_CONTROL pPSC = &priv->PowerSaveControl;
RT_RF_POWER_STATE rtState;

if (pPSC->bInactivePs)
Expand Down Expand Up @@ -3280,7 +3280,7 @@ void ieee80211_ips_leave_wq(struct net_device *dev)
RT_RF_POWER_STATE rtState;
rtState = priv->eRFPowerState;

if(priv->ieee80211->PowerSaveControl.bInactivePs){
if (priv->PowerSaveControl.bInactivePs){
if(rtState == eRfOff){
if(priv->RfOffReason > RF_CHANGE_BY_IPS)
{
Expand Down Expand Up @@ -3347,7 +3347,7 @@ static void rtl819x_watchdog_wqcallback(struct work_struct *work)
if((ieee->iw_mode == IW_MODE_INFRA) && (ieee->state == IEEE80211_NOLINK) &&
(priv->eRFPowerState == eRfOn) && !ieee->is_set_key &&
(!ieee->proto_stoppping) && !ieee->wx_set_enc){
if(ieee->PowerSaveControl.ReturnPoint == IPS_CALLBACK_NONE){
if (priv->PowerSaveControl.ReturnPoint == IPS_CALLBACK_NONE){
IPSEnter(dev);
}
}
Expand Down Expand Up @@ -5046,7 +5046,7 @@ void setKey( struct net_device *dev,
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
RT_RF_POWER_STATE rtState;
rtState = priv->eRFPowerState;
if(priv->ieee80211->PowerSaveControl.bInactivePs){
if (priv->PowerSaveControl.bInactivePs){
if(rtState == eRfOff){
if(priv->RfOffReason > RF_CHANGE_BY_IPS)
{
Expand Down Expand Up @@ -5110,7 +5110,7 @@ bool NicIFEnableNIC(struct net_device* dev)
{
RT_STATUS init_status = RT_STATUS_SUCCESS;
struct r8192_priv* priv = ieee80211_priv(dev);
PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->ieee80211->PowerSaveControl));
PRT_POWER_SAVE_CONTROL pPSC = &priv->PowerSaveControl;

//YJ,add,091109
if (priv->up == 0){
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/rtl8192e/r8192E_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static int r8192_wx_set_mode(struct net_device *dev, struct iw_request_info *a,
#ifdef ENABLE_IPS
if(wrqu->mode == IW_MODE_ADHOC){

if(priv->ieee80211->PowerSaveControl.bInactivePs){
if (priv->PowerSaveControl.bInactivePs) {
if(rtState == eRfOff){
if(priv->RfOffReason > RF_CHANGE_BY_IPS)
{
Expand Down Expand Up @@ -406,7 +406,7 @@ static int r8192_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
#ifdef ENABLE_IPS
priv->ieee80211->actscanning = true;
if(priv->ieee80211->state != IEEE80211_LINKED){
if(priv->ieee80211->PowerSaveControl.bInactivePs){
if (priv->PowerSaveControl.bInactivePs) {
if(rtState == eRfOff){
if(priv->RfOffReason > RF_CHANGE_BY_IPS)
{
Expand Down Expand Up @@ -1017,7 +1017,7 @@ static int r8192_wx_adapter_power_status(struct net_device *dev,
{
struct r8192_priv *priv = ieee80211_priv(dev);
#ifdef ENABLE_LPS
PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->ieee80211->PowerSaveControl));
PRT_POWER_SAVE_CONTROL pPSC = &priv->PowerSaveControl;
struct ieee80211_device* ieee = priv->ieee80211;
#endif
down(&priv->wx_sem);
Expand Down

0 comments on commit 4669137

Please sign in to comment.