From: Kalle Valo <kalle.valo@iki.fi>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 2/3] mac80211: fix dynamic power save for devices which have nullfunc support
Date: Wed, 12 Aug 2009 21:57:53 +0300 [thread overview]
Message-ID: <87fxbwkgge.fsf@litku.valot.fi> (raw)
In-Reply-To: <1250089389.26464.1.camel@johannes.local> (Johannes Berg's message of "Wed\, 12 Aug 2009 17\:03\:09 +0200")
Johannes Berg <johannes@sipsolutions.net> writes:
> On Wed, 2009-08-12 at 17:52 +0300, Kalle Valo wrote:
>
>> static bool is_dynamic_ps_enabled(struct ieee80211_local *local)
>> {
>> - if (!(local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK))
>> +
>> + if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_PS))
>> /* driver doesn't support power save */
>> return false;
>
> Why the blank line?
A mistake, will remove.
>> + if (local->hw.flags & IEEE80211_HW_SUPPORTS_DYNAMIC_PS)
>> + /* hardware does dynamic power save */
>> + return false;
>
> FWIW, also applies to patch 1, I think I prefer
>
> /* check if hardware does dynamic power save */
> if (local->hw.flags & ...)
> return false;
>
> (wrt. comment location)
I'll change that.
> and you should probably rename the function to do_software_dynamic_ps()
> or something like that?
I had problems coming up with a good name. "do" in a sense is confusing
because the function only checks the state, it doesn't have any code to
change the timer or anything like that. I'll think of this a bit more.
Suggestions are welcome.
I'll send v2 later this week. John, please drop these three patches.
--
Kalle Valo
next prev parent reply other threads:[~2009-08-12 19:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-12 14:52 [PATCH 1/3] mac80211: refactor dynamic power save check Kalle Valo
2009-08-12 14:52 ` [PATCH 2/3] mac80211: fix dynamic power save for devices which have nullfunc support Kalle Valo
2009-08-12 15:03 ` Johannes Berg
2009-08-12 18:57 ` Kalle Valo [this message]
2009-08-12 14:52 ` [PATCH 3/3] wl1251: enable power save Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fxbwkgge.fsf@litku.valot.fi \
--to=kalle.valo@iki.fi \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.