From: Dan Williams <dcbw@redhat.com>
To: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com
Subject: Re: [PATCH 2/4] rndis_wlan: explain bits used in key setup code.
Date: Sun, 24 May 2009 09:18:57 -0400 [thread overview]
Message-ID: <1243171137.24236.0.camel@localhost.localdomain> (raw)
In-Reply-To: <20090523095659.148960arcvdbb20w@hayate.sektori.org>
On Sat, 2009-05-23 at 09:56 +0300, Jussi Kivilinna wrote:
> Quoting "Dan Williams" <dcbw@redhat.com>:
>
> > On Fri, 2009-05-22 at 17:40 +0300, Jussi Kivilinna wrote:
> >> Driver uses some unnamed bits to control encryption setup. Move these to
> >> enumerations with proper names explaining their meaning.
> >>
> >> Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
> >> ---
> >>
> >> drivers/net/wireless/rndis_wlan.c | 23 ++++++++++++++++++-----
> >> 1 files changed, 18 insertions(+), 5 deletions(-)
> >>
> >> diff --git a/drivers/net/wireless/rndis_wlan.c
> >> b/drivers/net/wireless/rndis_wlan.c
> >> index f9b0a35..8609d28 100644
> >> --- a/drivers/net/wireless/rndis_wlan.c
> >> +++ b/drivers/net/wireless/rndis_wlan.c
> >> @@ -196,6 +196,18 @@ enum ndis_80211_priv_filter {
> >> ndis_80211_priv_8021x_wep
> >> };
> >>
> >> +enum ndis_80211_addkey_bits {
> >> + ndis_80211_addkey_8021x_auth = cpu_to_le32(1 << 28),
> >> + ndis_80211_addkey_set_init_recv_seq = cpu_to_le32(1 << 29),
> >> + ndis_80211_addkey_pairwise_key = cpu_to_le32(1 << 30),
> >> + ndis_80211_addkey_transmit_key = cpu_to_le32(1 << 31),
> >> +};
> >
> > Enums and defines are usually capitalized in Linux, ie
> > NDIS_80211_ADDKEY_8021X_AUTH, so that they can be separated from
> > non-constant stuff and from function names. Makes the code more
> > readable. Any chance you'd mind doing that in this patch since you're
> > touching these bits?
> >
> > Dan
>
> All the ndis_80211_* enums in rndis_wlan.c are lower case now, so I'd
> keep it consistent here and change all the enums upper case in
> separate patch.
Ok, sounds fine.
Dan
next prev parent reply other threads:[~2009-05-24 13:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-22 14:40 [PATCH 1/4] rndis_wlan: remove CAP_SUPPORT_TXPOWER/OID_802_11_TX_POWER_LEVEL code Jussi Kivilinna
2009-05-22 14:40 ` [PATCH 2/4] rndis_wlan: explain bits used in key setup code Jussi Kivilinna
2009-05-22 15:05 ` Dan Williams
2009-05-23 6:56 ` Jussi Kivilinna
2009-05-24 13:18 ` Dan Williams [this message]
2009-05-22 14:40 ` [PATCH 3/4] rndis_wlan: split add_wpa_key from rndis_iw_set_encode_ext Jussi Kivilinna
2009-05-22 14:40 ` [PATCH 4/4] rndis_wlan: do not try to restore wpa keys using add_wep_key() Jussi Kivilinna
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=1243171137.24236.0.camel@localhost.localdomain \
--to=dcbw@redhat.com \
--cc=jussi.kivilinna@mbnet.fi \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).