All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Janusz Dziedzic <janusz.dziedzic@gmail.com>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: iw - set freq regression
Date: Mon, 09 Dec 2019 20:49:07 +0100	[thread overview]
Message-ID: <283f52f854eb895b7da9d68a665b9679ba006d47.camel@sipsolutions.net> (raw)
In-Reply-To: <CAFED-jmt5BjTNQ=oQsSpTZRY115BsukCdhXTz-f-bBtin1PP7Q@mail.gmail.com> (sfid-20191209_204325_000067_F9F15227)

On Mon, 2019-12-09 at 20:43 +0100, Janusz Dziedzic wrote:
> Hello,
> 
> For v4.9 this command works correctly:
> ./iw wlp1s0 set freq 5220 20 5220 0
> ./iw wlp1s0 set freq 5180 40 5190 0
> 
> With latest master this fail with err msg:
> Usage:    ./iw [options] dev <devname> set freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
>     dev <devname> set freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
> Options:
>     --debug        enable netlink debugging
> 
> After bisection and revert this one, works as before:
> 4871fcf iw: parse_freqs: check how many center frequencies to expect
> 
> I know we don't need to set this all arguments and finally I can change my script (don't set cf1/cf2).
> Anyway report this.

Thanks. Hmm. So ... dunno. It seems a bit more user-friendly to not have
the center_freq2, but OTOH having it as 0 at least won't really matter?

I think we needed this for e.g. handle_start_ap() to not be (quite as)
ambiguous since the chandef is followed by the beacon interval. If the
center2_freq is _always_ consumed by the chandef, then a beacon interval
of 200 would be like 200 MHz, and the result would fail here ...

So not really sure. I guess we could add another argument or check if
the last arg ('parsed') is non-NULL to change the behaviour, but is it
worth it?

johannes


       reply	other threads:[~2019-12-09 19:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFED-jmt5BjTNQ=oQsSpTZRY115BsukCdhXTz-f-bBtin1PP7Q@mail.gmail.com>
2019-12-09 19:49 ` Johannes Berg [this message]
2019-12-10 17:19   ` iw - set freq regression Janusz Dziedzic

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=283f52f854eb895b7da9d68a665b9679ba006d47.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=janusz.dziedzic@gmail.com \
    --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 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.