|
@@ -1446,7 +1446,6 @@ static int ieee80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
|
|
|
{
|
|
|
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
|
|
|
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
|
|
|
- struct ieee80211_conf *conf = &local->hw.conf;
|
|
|
|
|
|
if (sdata->vif.type != NL80211_IFTYPE_STATION)
|
|
|
return -EOPNOTSUPP;
|
|
@@ -1455,11 +1454,11 @@ static int ieee80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
|
|
|
return -EOPNOTSUPP;
|
|
|
|
|
|
if (enabled == sdata->u.mgd.powersave &&
|
|
|
- timeout == conf->dynamic_ps_forced_timeout)
|
|
|
+ timeout == local->dynamic_ps_forced_timeout)
|
|
|
return 0;
|
|
|
|
|
|
sdata->u.mgd.powersave = enabled;
|
|
|
- conf->dynamic_ps_forced_timeout = timeout;
|
|
|
+ local->dynamic_ps_forced_timeout = timeout;
|
|
|
|
|
|
/* no change, but if automatic follow powersave */
|
|
|
mutex_lock(&sdata->u.mgd.mtx);
|