linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luciano Coelho <luciano.coelho@nokia.com>
To: ext Shahar Levi <shahar_levi@ti.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 04/04] wl1271: 11n Support, 11n Kconfig Configurable
Date: Wed, 15 Sep 2010 22:21:08 +0300	[thread overview]
Message-ID: <1284578468.1569.29.camel@powerslave> (raw)
In-Reply-To: <1284575472-19888-5-git-send-email-shahar_levi@ti.com>

On Wed, 2010-09-15 at 20:31 +0200, ext Shahar Levi wrote:
> Add support to configurable 11n

Please rephrase and make it more descriptive.  Explain that this is
temporary because the code is incomplete and not tested enough.


> diff --git a/drivers/net/wireless/wl12xx/Kconfig b/drivers/net/wireless/wl12xx/Kconfig
> index 4a8bb25..1d5e5fd 100644
> --- a/drivers/net/wireless/wl12xx/Kconfig
> +++ b/drivers/net/wireless/wl12xx/Kconfig
> @@ -52,6 +52,13 @@ config WL1271
>  	  If you choose to build a module, it'll be called wl1271. Say N if
>  	  unsure.
>  
> +config WL1271_80211_HT
> +        bool "TI wl1271 802.11 HT support (EXPERIMENTAL)"
> +        depends on WL1271 && EXPERIMENTAL
> +        default y

For now, I'd prefer to have this as default n.


> +        ---help---
> +          This will enable 802.11 HT support for TI wl1271 chipset.
> +

This needs to be much more descriptive in order to avoid comments like
Johannes's. ;)

Please make it clear why the option exist, that it is temporary because
the code is not complete and not thoroughly tested etc.


> diff --git a/drivers/net/wireless/wl12xx/Makefile b/drivers/net/wireless/wl12xx/Makefile
> index 078b439..e0db9db 100644
> --- a/drivers/net/wireless/wl12xx/Makefile
> +++ b/drivers/net/wireless/wl12xx/Makefile
> @@ -16,3 +16,7 @@ wl1271-$(CONFIG_NL80211_TESTMODE)	+= wl1271_testmode.o
>  obj-$(CONFIG_WL1271)	+= wl1271.o
>  obj-$(CONFIG_WL1271_SPI)	+= wl1271_spi.o
>  obj-$(CONFIG_WL1271_SDIO)	+= wl1271_sdio.o
> +
> +ifeq ($(CONFIG_WL1271_80211_HT),y)
> +EXTRA_CFLAGS += -DCONFIG_WL1271_HT
> +endif

Please don't do this.  Just use the CONFIG_WL1271_80211_HT flag directly
in the code (see below).


> diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
> index e89e574..8f2cea9 100644
> --- a/drivers/net/wireless/wl12xx/wl1271_main.c
> +++ b/drivers/net/wireless/wl12xx/wl1271_main.c
> @@ -2087,7 +2087,9 @@ static struct ieee80211_supported_band wl1271_band_2ghz = {
>  	.n_channels = ARRAY_SIZE(wl1271_channels),
>  	.bitrates = wl1271_rates,
>  	.n_bitrates = ARRAY_SIZE(wl1271_rates),
> +#ifdef CONFIG_WL1271_HT
>  	.ht_cap	= WL12xx_HT_CAP,
> +#endif

Here you can use #ifdef CONFIG_WL1271_80211_HT directly, no need to
duplicate it into a new flag.


-- 
Cheers,
Luca.


  parent reply	other threads:[~2010-09-15 19:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-15 18:31 [PATCH 00/04] wl1271: 11n Support, add support to 80211n spec Shahar Levi
2010-09-15 18:31 ` [PATCH 01/04] wl1271: 11n Support, Add Definitions Shahar Levi
2010-09-15 19:15   ` Luciano Coelho
2010-09-15 18:31 ` [PATCH 02/04] wl1271: 11n Support, ACX Commands Shahar Levi
2010-09-15 18:31 ` [PATCH 03/04] wl1271: 11n Support, Scan, Connection, MCS rates Shahar Levi
2010-09-15 18:31 ` [PATCH 04/04] wl1271: 11n Support, 11n Kconfig Configurable Shahar Levi
2010-09-15 18:53   ` Johannes Berg
2010-09-15 18:56     ` Luciano Coelho
2010-09-15 19:21   ` Luciano Coelho [this message]
2010-09-16  0:39     ` Julian Calaby
2010-09-16 15:54       ` Levi, Shahar
2010-09-16 17:16         ` Julian Calaby
2010-09-18 17:56           ` Levi, Shahar
2010-09-19  1:19             ` Julian Calaby
2010-09-19 12:23               ` Levi, Shahar
2010-09-15 18:58 ` [PATCH 00/04] wl1271: 11n Support, add support to 80211n spec Luciano Coelho
2010-09-15 19:25   ` Luciano Coelho
2010-09-15 19:34     ` Levi, Shahar
2010-09-15 20:20       ` Luis R. Rodriguez
2010-09-15 20:40         ` Luciano Coelho
2010-09-16 15:24           ` Levi, Shahar

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=1284578468.1569.29.camel@powerslave \
    --to=luciano.coelho@nokia.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=shahar_levi@ti.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).