Search Linux Wireless

Re: [PATCH] cfg80211: enter psm when working as p2p_cli

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2011-07-19 at 12:57 +0300, Eliad Peller wrote:
> 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.

Good catch!

Reviewed-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

> Signed-off-by: Eliad Peller <eliad@xxxxxxxxxx>
> ---
>  net/wireless/core.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/net/wireless/core.c b/net/wireless/core.c
> index f6b359f..41f1598 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,
>  		 * Configure power management to the driver here so that its
>  		 * correctly set also after interface type changes etc.
>  		 */
> -		if (wdev->iftype == NL80211_IFTYPE_STATION &&
> +		if ((wdev->iftype == NL80211_IFTYPE_STATION ||
> +		     wdev->iftype == NL80211_IFTYPE_P2P_CLIENT) &&
>  		    rdev->ops->set_power_mgmt)
>  			if (rdev->ops->set_power_mgmt(wdev->wiphy, dev,
>  						      wdev->ps,


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux