Skip to content

Commit

Permalink
Edit: WIFI PM=FAST in standby
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeDrOiD committed May 15, 2011
1 parent a4d5081 commit 0b9454d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions drivers/net/wireless/bcm4329_204/dhd_cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1347,10 +1347,7 @@ int dhdhtc_update_wifi_power_mode(int is_screen_off)
pm_type = PM_OFF;
dhdcdc_set_ioctl(dhd, 0, WLC_SET_PM, &pm_type, sizeof(pm_type));
} else {
if (is_screen_off && !dhdcdc_wifiLock)
pm_type = PM_MAX;
else
pm_type = PM_FAST;
pm_type = PM_FAST;
myprintf("update pm: %s, wifiLock: %d\n", pm_type==1?"PM_MAX":"PM_FAST", dhdcdc_wifiLock);
dhdcdc_set_ioctl(dhd, 0, WLC_SET_PM, &pm_type, sizeof(pm_type));
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/bcm4329_204/wl_iw.c
Original file line number Diff line number Diff line change
Expand Up @@ -5394,7 +5394,7 @@ wl_iw_set_power(

WL_TRACE(("%s: SIOCSIWPOWER\n", dev->name));

pm = vwrq->disabled ? PM_OFF : PM_MAX;
pm = vwrq->disabled ? PM_OFF : PM_FAST;

pm = htod32(pm);
if ((error = dev_wlc_ioctl(dev, WLC_SET_PM, &pm, sizeof(pm))))
Expand Down

0 comments on commit 0b9454d

Please sign in to comment.