diff options
author | Chun-Yeow Yeoh <yeohchunyeow@gmail.com> | 2013-01-10 10:31:54 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-01-16 09:25:27 -0500 |
commit | ee1f668136b2fb6640ee2d54c2a525ea41f98211 (patch) | |
tree | 31a25b27cf15b5fcb98775c87a25ce159e1654c3 /net/mac80211/cfg.c | |
parent | 8f21b0adfe95907926da1bb0bcd3382b13d0143d (diff) |
mac80211: allow disable power save in mesh
Allow mesh interface to disable the power save which is by default
turn on in certain chipset. Testing with 2 units of ZCN-1523H-5-16
featuring AR9280 chipset which have power save enabled by default.
Constant reset if the average signal of the peer mesh STA is below
-80 dBm and power save is enabled.
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 7d290bce0927..817992b51fe7 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -2232,7 +2232,8 @@ static int ieee80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, | |||
2232 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); | 2232 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
2233 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | 2233 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); |
2234 | 2234 | ||
2235 | if (sdata->vif.type != NL80211_IFTYPE_STATION) | 2235 | if (sdata->vif.type != NL80211_IFTYPE_STATION && |
2236 | sdata->vif.type != NL80211_IFTYPE_MESH_POINT) | ||
2236 | return -EOPNOTSUPP; | 2237 | return -EOPNOTSUPP; |
2237 | 2238 | ||
2238 | if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_PS)) | 2239 | if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_PS)) |