From: Johannes Berg <johannes@sipsolutions.net>
To: Ilan Peer <ilan.peer@intel.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/2 v2] cfg80211: Add a function to get the number of supported channels
Date: Thu, 09 Jan 2014 10:18:46 +0100 [thread overview]
Message-ID: <1389259126.4348.1.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1389259051-18072-1-git-send-email-ilan.peer@intel.com> (sfid-20140109_101612_081487_E0BEE015)
On Thu, 2014-01-09 at 11:17 +0200, Ilan Peer wrote:
> +unsigned int ieee80211_get_num_supported_channels(struct wiphy *wiphy)
> +{
> + enum ieee80211_band band;
> + unsigned int n_channels;
Seems nicer to do the = 0 here rather than in the loop?
> + for (band = 0, n_channels = 0; band < IEEE80211_NUM_BANDS; band++)
johannes
next prev parent reply other threads:[~2014-01-09 9:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-31 15:32 [PATCH 0/2] modify the inclusion of supported channels IE Ilan Peer
2013-12-31 15:32 ` [PATCH 1/2] cfg80211: Add a function to get the number of enabled channels Ilan Peer
2014-01-09 9:17 ` [PATCH 1/2 v2] cfg80211: Add a function to get the number of supported channels Ilan Peer
2014-01-09 9:18 ` Johannes Berg
2014-01-09 9:18 ` Johannes Berg [this message]
2014-01-09 9:37 ` [PATCH 1/2 v3] " Ilan Peer
2014-01-09 12:57 ` Johannes Berg
2013-12-31 15:32 ` [PATCH 2/2] [RFC] mac80211: Add all enabled channels to the supported channels element Ilan Peer
2013-12-31 15:33 ` Peer, Ilan
2014-01-07 15:30 ` Johannes Berg
2014-01-09 7:42 ` Peer, Ilan
2014-01-09 9:18 ` [PATCH 2/2 v2] [RFC]mac80211: " Ilan Peer
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=1389259126.4348.1.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=ilan.peer@intel.com \
--cc=linux-wireless@vger.kernel.org \
/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.