linux-mediatek.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo.bianconi-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Sid Hayn <sidhayn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: sgruszka-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
	linux-wireless
	<linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Felix Fietkau <nbd-Vt+b4OUoWG0@public.gmane.org>,
	linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: mt76x0 bug report
Date: Fri, 7 Sep 2018 10:24:13 +0200	[thread overview]
Message-ID: <20180907082413.GC2725@localhost.localdomain> (raw)
In-Reply-To: <CAM0KTbAF_ztZzFk_iECyPbiWY69xrcdT_93ypnuTzocjX_fRuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

> Actions like that have caused great problems in the past, as the
> kernel won't allow channel control of a monitor interface at all when
> there is a managed interface on the same phy (afaik).
> 
> But just for fun and codepath testing here are two test scenarios:
> 
> Test 1: "iwconfig t2u mode monitor"
> Sees nothing on any channel, no packets reported
> 
> Test 2(requested test): "iw phy phy11 interface add t2uhmon type monitor"
> Sees nothing on any channel, no packets reported.
> Despite having a monitor and managed interface on the same phy,
> iwconfig is reporting that the channel is changing as requested.  So
> perhaps my above "afaik" comment is partially outdated.
> 
> For both tests the interface was not used to connect to any ap prior
> to or during testing.
> 

Could you please try following patch?
Regards,

Lorenzo

--- a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c
@@ -756,11 +756,10 @@ __mt76x0_phy_set_channel(struct mt76x0_dev *dev,
 
 	/* Vendor driver don't do it */
 	/* mt76x0_phy_set_tx_power(dev, channel, rf_bw_band); */
+	mt76x0_vco_cal(dev, channel);
 
 	if (scan)
-		mt76x0_vco_cal(dev, channel);

  parent reply	other threads:[~2018-09-07  8:24 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-04 17:33 mt76x0 bug report Sid Hayn
     [not found] ` <CAM0KTbBJuhuEyuZB_z_BcDSeXa-CJ+NwupssS2jLx0pJ0KXQGQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-04 21:04   ` Lorenzo Bianconi
     [not found]     ` <CAJ0CqmWAqdB8Og7fabLDeZnzFO5Aw5Qd0cYGaLrs7Ls-zM_yQw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-05 20:52       ` Sid Hayn
     [not found]         ` <CAM0KTbAbjDYNOzivxMdLmYrV9QHgwkLp7zXpdCvn1Kf1uEcQTQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-06  9:32           ` Stanislaw Gruszka
     [not found]             ` <20180906093213.GB16539-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-09-06 15:39               ` Sid Hayn
     [not found]                 ` <CAM0KTbBRGqNAu1H0myVoWg6Qu1aMXMneSJ7bXQUKbJGZUFkC_A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-06 15:42                   ` Lorenzo Bianconi
     [not found]                     ` <CAJ0CqmXHHE2J5O4irPogrypL_H95EDm2y+1_6rpWG1v3ZHxzXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-06 15:53                       ` Sid Hayn
     [not found]                         ` <CAM0KTbAF_ztZzFk_iECyPbiWY69xrcdT_93ypnuTzocjX_fRuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-07  8:24                           ` Lorenzo Bianconi [this message]
     [not found]                             ` <20180907082413.GC2725-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2018-09-07 19:55                               ` Sid Hayn
     [not found]                                 ` <CAM0KTbAputKNN3seOfN-1zhz5XmT6yg_pbKBnapOsR6Vigv1XQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-14 15:32                                   ` Sid Hayn
     [not found]                                     ` <CAM0KTbAu-LJ2ThAHbmbrggMw_ttpQ8fXr0+HTjGBZF6PBPiD8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-14 15:42                                       ` Davide Caratti
2018-09-14 15:47                                       ` Lorenzo Bianconi
     [not found]                                         ` <CAJ0CqmUDT44W7sb4qpmt6mPDZ5LwUDPgKCrhor_8POWpx_RaQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-14 15:51                                           ` Sid Hayn
     [not found]                                             ` <CAM0KTbDb4X7JZgYZa6-NmjD72_UHOqQ43Czv=HwWS3D0WcWrgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-18  3:18                                               ` Sid Hayn
     [not found]                                                 ` <CAM0KTbA0QE-5oTz-aeU9zmnCS-LrYZmHwmEv0afjR0yFWvTevA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-18 11:56                                                   ` Stanislaw Gruszka
     [not found]                                                     ` <20180918115616.GC15285-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-09-18 17:36                                                       ` Sid Hayn
     [not found]                                                         ` <CAM0KTbDq7v6phbr72LXEoYzu9iQ9L-MN85Zzn5Oz9kGsuVCV_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-19 11:15                                                           ` Stanislaw Gruszka
     [not found]                                                             ` <20180919111525.GD22689-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-09-19 18:01                                                               ` Sid Hayn
2018-09-06 16:51               ` Sid Hayn
     [not found]                 ` <CAM0KTbAPh5J+cguhE0Qh9c8n_UVK9UyqsHtWUydrXzLTz9sXgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-06 17:13                   ` Lorenzo Bianconi
     [not found]                     ` <CAJ0CqmU0TBc42k=RX3T1DJd2dfGFHu4WuhbATYoe-7poUk3Ekw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-06 22:37                       ` Lorenzo Bianconi

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=20180907082413.GC2725@localhost.localdomain \
    --to=lorenzo.bianconi-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=nbd-Vt+b4OUoWG0@public.gmane.org \
    --cc=sgruszka-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=sidhayn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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).