From: Malcolm Priestley <tvboxspy@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-wireless@vger.kernel.org, Malcolm Priestley <tvboxspy@gmail.com>
Subject: [PATCH 4/8] staging: vt6656: vnt_tx_packet don't change power when off channel.
Date: Sat, 5 Jul 2014 19:24:23 +0100 [thread overview]
Message-ID: <1404584667-3582-4-git-send-email-tvboxspy@gmail.com> (raw)
In-Reply-To: <1404584667-3582-1-git-send-email-tvboxspy@gmail.com>
The changing channel is so fast when off channel that changing power is pointless.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
drivers/staging/vt6656/rxtx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c
index e896dfe5d..95b6cf3 100644
--- a/drivers/staging/vt6656/rxtx.c
+++ b/drivers/staging/vt6656/rxtx.c
@@ -900,7 +900,8 @@ int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb)
rate = ieee80211_get_tx_rate(priv->hw, info);
current_rate = rate->hw_value;
- if (priv->wCurrentRate != current_rate) {
+ if (priv->wCurrentRate != current_rate &&
+ !(priv->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)) {
priv->wCurrentRate = current_rate;
bScheduleCommand(priv, WLAN_CMD_SETPOWER, NULL);
}
--
1.9.1
next prev parent reply other threads:[~2014-07-05 18:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-05 18:24 [PATCH 1/8] staging: vt6656: turn radio off after mac registered Malcolm Priestley
2014-07-05 18:24 ` [PATCH 2/8] staging: vt6656: vnt_rf_set_txpower use power for priv->byCurPwr Malcolm Priestley
2014-07-05 18:24 ` [PATCH 3/8] staging: vt6656: vnt_rf_setpower rate <= RATE_11M check array bound Malcolm Priestley
2014-07-05 18:24 ` Malcolm Priestley [this message]
2014-07-05 18:24 ` [PATCH 5/8] staging: vt6656: vnt_rx_data add track rsr and new_rsr errors Malcolm Priestley
2014-07-05 18:24 ` [PATCH 6/8] staging: vt6656: vnt_set_channel remove power setting functions Malcolm Priestley
2014-07-05 18:24 ` [PATCH 7/8] staging: vt6656: Include re_alloc_skb within lock Malcolm Priestley
2014-07-05 18:24 ` [PATCH 8/8] stagingL vt6656: implement fall back rates reporting Malcolm Priestley
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=1404584667-3582-4-git-send-email-tvboxspy@gmail.com \
--to=tvboxspy@gmail.com \
--cc=gregkh@linuxfoundation.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;
as well as URLs for NNTP newsgroup(s).