Search Linux Wireless

Re: [RFC v2 2/5] mac80211: inform devices when we are suspending on the stop callback

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

 



On Wed, May 13, 2009 at 2:53 AM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
> On Wed, 2009-05-13 at 05:20 -0400, Luis R. Rodriguez wrote:
>> We inform the drivers so they can take appropriate actions during
>> suspend for WoW support.
>
>> -static void ar9170_op_stop(struct ieee80211_hw *hw)
>> +static void ar9170_op_stop(struct ieee80211_hw *hw, bool suspend)
>
> Why just a 'suspend' bool? Why not pass the WoW information in here,
> instead of adding a new config and stuff for it? WoW information is only
> relevant during suspend.
>
> The way you have it, a driver needs to
>  * keep track of the wow config
>  * check whether a stop is due to suspend
>  * apply wow config during stop
>
> If you passed the wow config in some struct to _stop() [and NULL if not
> for wow] then the driver would only need to
>
>  * check if for wow and apply config during stop

Reason for not passing it is its accessible through the wiphy. All we
really need from mac80211 is if it changed (some devices may need
this, and will be more useful for the user pattern handling) and if we
are stopping due to suspend.

What advantage do we have if we stuff a wow struct instead of having
the driver read the wiphy wow info?

  Luis
--
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