From: Harvey Harrison <harvey.harrison@gmail.com>
To: Reinette Chatre <reinette.chatre@intel.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
ipw3945-devel@lists.sourceforge.net, "Kolekar,
Abhijeet" <abhijeet.kolekar@intel.com>
Subject: Re: [PATCH 11/13] iwl3945 : Simplify iwl3945_send_beacon_cmd
Date: Fri, 07 Nov 2008 10:09:20 -0800 [thread overview]
Message-ID: <1226081360.11596.25.camel@brick> (raw)
In-Reply-To: <1226080726-24860-12-git-send-email-reinette.chatre@intel.com>
On Fri, 2008-11-07 at 09:58 -0800, Reinette Chatre wrote:
> From: Kolekar, Abhijeet <abhijeet.kolekar@intel.com>
>
> Moved rate_msk calculation to iwl3945_rate_get_lowest_plcp.
>
> Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
> ---
> drivers/net/wireless/iwlwifi/iwl3945-base.c | 26 ++++++++++++++------------
> 1 files changed, 14 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
> index 51f1c81..dec9e04 100644
> --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
> +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
> @@ -1420,9 +1420,16 @@ unsigned int iwl3945_fill_beacon_frame(struct iwl3945_priv *priv,
> return priv->ibss_beacon->len;
> }
>
> -static u8 iwl3945_rate_get_lowest_plcp(int rate_mask)
> +static u8 iwl3945_rate_get_lowest_plcp(struct iwl3945_priv *priv)
> {
> u8 i;
> + int rate_mask;
> +
> + /* Set rate mask*/
> + if (priv->staging_rxon.flags & RXON_FLG_BAND_24G_MSK)
> + rate_mask = priv->active_rate_basic & 0xF;
> + else
> + rate_mask = priv->active_rate_basic & 0xFF0;
Perhaps a helpful define for these two magic mask values is called for.
Cheers,
Harvey
next prev parent reply other threads:[~2008-11-07 18:09 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-07 17:58 [PATCH 0/13] iwlwifi driver updates Reinette Chatre
2008-11-07 17:58 ` [PATCH 01/13] iwlagn: fix resume for ADHOC network Reinette Chatre
2008-11-07 17:58 ` [PATCH 02/13] iwl3945: " Reinette Chatre
2008-11-07 17:58 ` [PATCH 03/13] iwlwifi: trivial fix in includes Reinette Chatre
2008-11-07 17:58 ` [PATCH 04/13] iwlwifi: don't fail power set when calibration is not done yet Reinette Chatre
2008-11-07 17:58 ` [PATCH 05/13] iwlwifi: update iwl-commands.h for 3 stream support Reinette Chatre
2008-11-07 17:58 ` [PATCH 06/13] iwlwifi: move rx queue read pointer into rxq Reinette Chatre
2008-11-07 17:58 ` [PATCH 07/13] iwlwifi: revamp tx scheduler byte count tables handling Reinette Chatre
2008-11-07 17:58 ` [PATCH 08/13] iwlwifi: move spectrum measurement code to iwl-spectrum.c file Reinette Chatre
2008-11-07 17:58 ` [PATCH 09/13] iwl3945 : Fix Sparse Warnings Reinette Chatre
2008-11-07 17:58 ` [PATCH 10/13] iwlwifi: move iwl_print_hex_dump to iwl-debug.h Reinette Chatre
2008-11-07 17:58 ` [PATCH 11/13] iwl3945 : Simplify iwl3945_send_beacon_cmd Reinette Chatre
2008-11-07 17:58 ` [PATCH 12/13] iwlwifi: get some more information about command failure Reinette Chatre
2008-11-07 17:58 ` [PATCH 13/13] iwlwifi: use Rx single frame mode (one Rx frame per RB) Reinette Chatre
2008-11-07 18:09 ` Harvey Harrison [this message]
2008-11-07 20:10 ` [PATCH 11/13] iwl3945 : Simplify iwl3945_send_beacon_cmd reinette chatre
2008-11-07 18:03 ` [PATCH 10/13] iwlwifi: move iwl_print_hex_dump to iwl-debug.h Harvey Harrison
2008-11-08 19:11 ` Tomas Winkler
2008-11-07 18:07 ` [PATCH 09/13] iwl3945 : Fix Sparse Warnings Harvey Harrison
2008-11-07 18:18 ` reinette chatre
2008-11-08 5:51 ` [PATCH 05/13] iwlwifi: update iwl-commands.h for 3 stream support Marcel Holtmann
2008-11-11 16:54 ` reinette chatre
2008-11-07 20:58 ` [PATCH 01/13] iwlagn: fix resume for ADHOC network Johannes Berg
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=1226081360.11596.25.camel@brick \
--to=harvey.harrison@gmail.com \
--cc=abhijeet.kolekar@intel.com \
--cc=ipw3945-devel@lists.sourceforge.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=reinette.chatre@intel.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).