From: Maharaja Kennadyrajan <mkenna@codeaurora.org>
To: ath11k@lists.infradead.org
Cc: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Subject: [PATCH] ath11k: Fix the rate mask value for legacy and peer fixed rate
Date: Tue, 4 Jun 2019 17:07:19 +0530 [thread overview]
Message-ID: <1559648239-16220-1-git-send-email-mkenna@codeaurora.org> (raw)
The rate mask value is changed from 0xff to oxffff (u8 to u32)
in the firmware for the legacy fixed rate and peer fixed rate
setting in the set bitrate command.
Hence this patch is fixing the same in the driver.
Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/mac.c | 6 +++---
drivers/net/wireless/ath/ath11k/wmi.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index cb0de8e2aa60..f490d7ccc2e2 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -4454,7 +4454,7 @@ static int
ath11k_mac_get_single_legacy_rate(struct ath11k *ar,
enum nl80211_band band,
const struct cfg80211_bitrate_mask *mask,
- u8 *rate, u8 *nss)
+ u32 *rate, u8 *nss)
{
int rate_idx;
u16 bitrate;
@@ -4484,7 +4484,7 @@ ath11k_mac_get_single_legacy_rate(struct ath11k *ar,
}
static int ath11k_mac_set_fixed_rate_params(struct ath11k_vif *arvif,
- u8 rate, u8 nss, u8 sgi, u8 ldpc)
+ u32 rate, u8 nss, u8 sgi, u8 ldpc)
{
struct ath11k *ar = arvif->ar;
u32 vdev_param;
@@ -4584,7 +4584,7 @@ ath11k_mac_op_set_bitrate_mask(struct ieee80211_hw *hw,
enum nl80211_band band;
const u8 *ht_mcs_mask;
const u16 *vht_mcs_mask;
- u8 rate;
+ u32 rate;
u8 nss;
u8 sgi;
u8 ldpc;
diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h
index 366a136e53ac..fe89f761ccc3 100644
--- a/drivers/net/wireless/ath/ath11k/wmi.h
+++ b/drivers/net/wireless/ath/ath11k/wmi.h
@@ -4926,7 +4926,7 @@ enum wmi_ap_ps_peer_param {
#define WMI_CIPHER_AES_GMAC 0xa
/* Value to disable fixed rate setting */
-#define WMI_FIXED_RATE_NONE (0xff)
+#define WMI_FIXED_RATE_NONE (0xffff)
#define ATH11K_RC_VERSION_OFFSET 28
#define ATH11K_RC_PREAMBLE_OFFSET 8
--
2.21.0
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
next reply other threads:[~2019-06-04 11:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-04 11:37 Maharaja Kennadyrajan [this message]
2019-06-06 16:54 ` [PATCH] ath11k: Fix the rate mask value for legacy and peer fixed rate Kalle Valo
[not found] ` <20190606165407.65AC460DAB@smtp.codeaurora.org>
2019-06-07 5:01 ` Maharaja Kennadyrajan
2019-06-07 5:05 ` Kalle Valo
2019-06-07 7:48 ` Maharaja Kennadyrajan
2019-06-12 8:13 ` Kalle Valo
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=1559648239-16220-1-git-send-email-mkenna@codeaurora.org \
--to=mkenna@codeaurora.org \
--cc=ath11k@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.