From: Luciano Coelho <luciano.coelho@nokia.com>
To: "juuso.oikarinen@nokia.com" <juuso.oikarinen@nokia.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCHv2] wl1271: Add extended radio parameter initialization
Date: Tue, 05 Oct 2010 14:47:54 +0300 [thread overview]
Message-ID: <1286279274.15401.21.camel@chilepepper> (raw)
In-Reply-To: <1286277116-22486-1-git-send-email-juuso.oikarinen@nokia.com>
On Tue, 2010-10-05 at 13:11 +0200, juuso.oikarinen@nokia.com wrote:
> From: Juuso Oikarinen <juuso.oikarinen@nokia.com>
>
> Currently a command to initialize extended radio parameter tables in the
> hardware is missing.
>
> Add the initialization
>
> Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
> ---
> v2: change the name of the length macro for the TX power compensation table
Thanks for fixing it, it looks clearer now.
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
A couple of comments below.
[...]
> diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.h b/drivers/net/wireless/wl12xx/wl1271_cmd.h
> index 33b946b..4e8b464 100644
> --- a/drivers/net/wireless/wl12xx/wl1271_cmd.h
> +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.h
[...]
> @@ -363,6 +365,16 @@ struct wl1271_radio_parms_cmd {
> u8 padding3[2];
> } __packed;
>
> +struct wl1271_ext_radio_parms_cmd {
> + struct wl1271_cmd_header header;
> +
> + struct wl1271_cmd_test_header test;
> +
> + u8 tx_per_channel_power_compensation_2[CONF_TX_PWR_COMPENSATION_LEN_2];
> + u8 tx_per_channel_power_compensation_5[CONF_TX_PWR_COMPENSATION_LEN_5];
> + u8 padding[3];
> +} __attribute__ ((packed));
> +
This should be __packed nowadays. But I'll change that before applying
the patch, so no need to resend.
[...]
> diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
> index cb18f22..8d33a2b 100644
> --- a/drivers/net/wireless/wl12xx/wl1271_main.c
> +++ b/drivers/net/wireless/wl12xx/wl1271_main.c
> @@ -242,6 +242,16 @@ static struct conf_drv_settings default_conf = {
> .max_dwell_time_passive = 60000,
> .num_probe_reqs = 2,
> },
> + .rf = {
> + .tx_per_channel_power_compensation_2 = {
> + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> + },
> + .tx_per_channel_power_compensation_5 = {
> + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> + },
> + },
> };
I guess we should not hardcode this in the driver, but add it to the NVS
file. But let's think about that later, because we need to agree on
changing the NVS structure first.
--
Cheers,
Luca.
next prev parent reply other threads:[~2010-10-05 11:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-05 11:11 [PATCHv2] wl1271: Add extended radio parameter initialization juuso.oikarinen
2010-10-05 11:47 ` Luciano Coelho [this message]
2010-10-05 11:56 ` Juuso Oikarinen
2010-10-05 12:08 ` Luciano Coelho
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=1286279274.15401.21.camel@chilepepper \
--to=luciano.coelho@nokia.com \
--cc=juuso.oikarinen@nokia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox