Linux wireless drivers development
 help / color / mirror / Atom feed
From: Balakrishna Bandi <b.balakrishna@globaledgesoft.com>
To: lorenzo.bianconi83@gmail.com
Cc: linux-wireless@vger.kernel.org,
	Balakrishna Bandi <b.balakrishna@globaledgesoft.com>
Subject: [PATCH 1/1] [PATCH] Mt76 enabling data pkt transmission.
Date: Wed, 21 Aug 2019 02:41:38 +0530	[thread overview]
Message-ID: <1566335498-10977-1-git-send-email-b.balakrishna@globaledgesoft.com> (raw)

Data Packet transmission was disabled during scanning in mt76 driver.

Fix to be, enabling data packet transmission during scanning.

Note:
Mac80211 will handle channel switching. During scanning, it handles
stopping the data transmission on off channel and enabling data
transmission on operating channel also. It does not require to stop data
transmission in mt76 driver during scanning. Verified with other driver
ath9k and rt2x00 driver, data transmission was not stopped during
scanning

Signed-off-by: Balakrishna Bandi <b.balakrishna@globaledgesoft.com>
---
 drivers/net/wireless/mediatek/mt76/tx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/wireless/mediatek/mt76/tx.c b/drivers/net/wireless/mediatek/mt76/tx.c
index 5397827..376720d 100644
--- a/drivers/net/wireless/mediatek/mt76/tx.c
+++ b/drivers/net/wireless/mediatek/mt76/tx.c
@@ -438,8 +438,7 @@ void mt76_tx_complete_skb(struct mt76_dev *dev, struct sk_buff *skb)
 		if (probe)
 			break;
 
-		if (test_bit(MT76_OFFCHANNEL, &dev->state) ||
-		    test_bit(MT76_RESET, &dev->state))
+		if (test_bit(MT76_RESET, &dev->state))
 			return -EBUSY;
 
 		skb = mt76_txq_dequeue(dev, mtxq, false);
-- 
1.9.1

Disclaimer:- The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. The views expressed in this E-mail message (including the enclosure/(s) or attachment/(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of GlobalEdge. Before opening any mail and attachments please check them for viruses .GlobalEdge does not accept any liability for virus infected mails.


             reply	other threads:[~2019-08-20 21:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-20 21:11 Balakrishna Bandi [this message]
2019-08-22  7:45 ` [PATCH 1/1] [PATCH] Mt76 enabling data pkt transmission Felix Fietkau

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=1566335498-10977-1-git-send-email-b.balakrishna@globaledgesoft.com \
    --to=b.balakrishna@globaledgesoft.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo.bianconi83@gmail.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