]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mac80211: allow disable power save in mesh
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Thu, 10 Jan 2013 15:31:54 +0000 (23:31 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 16 Jan 2013 14:25:27 +0000 (15:25 +0100)
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>
net/mac80211/cfg.c

index 7d290bce092777561b27553bb1d4d39e697fd60d..817992b51fe7c89353c5610269380cae07e83051 100644 (file)
@@ -2232,7 +2232,8 @@ 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);
 
-       if (sdata->vif.type != NL80211_IFTYPE_STATION)
+       if (sdata->vif.type != NL80211_IFTYPE_STATION &&
+           sdata->vif.type != NL80211_IFTYPE_MESH_POINT)
                return -EOPNOTSUPP;
 
        if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_PS))