Linux wireless drivers development
 help / color / mirror / Atom feed
From: Thomas Pedersen <thomas@cozybit.com>
To: linux-wireless@vger.kernel.org
Cc: buytenh@wantstofly.org
Subject: [PATCH 2/2] mwl8k: Tell mac80211 we have rate adaptation in AP FW
Date: Fri, 11 Feb 2011 16:03:51 -0800	[thread overview]
Message-ID: <1297469031-21004-2-git-send-email-thomas@cozybit.com> (raw)
In-Reply-To: <1297469031-21004-1-git-send-email-thomas@cozybit.com>

From: Nishant Sarmukadam <nishants@marvell.com>

Minstrel rate control algorithm is enabled by default by mac80211.
This is not needed since the firmware does the rate control in our case.

Signed-off-by: Nishant Sarmukadam <nishants@marvell.com>
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
---
 drivers/net/wireless/mwl8k.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index f79da1b..840b9e4 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -4765,6 +4765,9 @@ static int mwl8k_firmware_load_success(struct mwl8k_priv *priv)
 
 	/* Set rssi values to dBm */
 	hw->flags |= IEEE80211_HW_SIGNAL_DBM;
+	/* AP FW has rate control */
+	if (priv->ap_fw)
+		hw->flags |= IEEE80211_HW_HAS_RATE_CONTROL;
 	hw->vif_data_size = sizeof(struct mwl8k_vif);
 	hw->sta_data_size = sizeof(struct mwl8k_sta);
 
-- 
1.7.0.4


  reply	other threads:[~2011-02-12  0:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-12  0:03 [PATCH 1/2] mwl8k: fix rf_antenna rx argument for AP Thomas Pedersen
2011-02-12  0:03 ` Thomas Pedersen [this message]
2011-02-12  0:34   ` [PATCH 2/2] mwl8k: Tell mac80211 we have rate adaptation in AP FW Lennert Buytenhek
2011-02-12  1:03     ` Thomas Pedersen
2011-02-14 10:18     ` Johannes Berg
2011-02-14 10:57       ` Lennert Buytenhek

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=1297469031-21004-2-git-send-email-thomas@cozybit.com \
    --to=thomas@cozybit.com \
    --cc=buytenh@wantstofly.org \
    --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