aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2011-07-19 05:57:13 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-20 15:04:35 -0400
commit5966f2ddcda452455f8ab518b7cba221b5234a94 (patch)
tree2ae8c4f0e65f3af3c8f526738b06c9e24a925681 /net
parentb2abb6e2bcb91ae384c5857dffd0bb97b76c7a68 (diff)
cfg80211: enter psm when working as p2p_cli
cfg80211_netdev_notifier_call() is configuring psm in case of NL80211_IFTYPE_STATION interface type (on NETDEV_UP). do the same for NL80211_IFTYPE_P2P_CLIENT interface type. Signed-off-by: Eliad Peller <eliad@wizery.com> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index 112959d5256a..645437cfc464 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -922,7 +922,8 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
922 * Configure power management to the driver here so that its 922 * Configure power management to the driver here so that its
923 * correctly set also after interface type changes etc. 923 * correctly set also after interface type changes etc.
924 */ 924 */
925 if (wdev->iftype == NL80211_IFTYPE_STATION && 925 if ((wdev->iftype == NL80211_IFTYPE_STATION ||
926 wdev->iftype == NL80211_IFTYPE_P2P_CLIENT) &&
926 rdev->ops->set_power_mgmt) 927 rdev->ops->set_power_mgmt)
927 if (rdev->ops->set_power_mgmt(wdev->wiphy, dev, 928 if (rdev->ops->set_power_mgmt(wdev->wiphy, dev,
928 wdev->ps, 929 wdev->ps,