All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: iw - set freq regression
       [not found] <CAFED-jmt5BjTNQ=oQsSpTZRY115BsukCdhXTz-f-bBtin1PP7Q@mail.gmail.com>
@ 2019-12-09 19:49 ` Johannes Berg
  2019-12-10 17:19   ` Janusz Dziedzic
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2019-12-09 19:49 UTC (permalink / raw)
  To: Janusz Dziedzic, linux-wireless

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: iw - set freq regression
  2019-12-09 19:49 ` iw - set freq regression Johannes Berg
@ 2019-12-10 17:19   ` Janusz Dziedzic
  0 siblings, 0 replies; 2+ messages in thread
From: Janusz Dziedzic @ 2019-12-10 17:19 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

pon., 9 gru 2019 o 20:49 Johannes Berg <johannes@sipsolutions.net> napisał(a):
>
> 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?
>
I think, no. Lets leave this as is.

BR
Janusz
> johannes
>


-- 
Janusz Dziedzic

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-10 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAFED-jmt5BjTNQ=oQsSpTZRY115BsukCdhXTz-f-bBtin1PP7Q@mail.gmail.com>
2019-12-09 19:49 ` iw - set freq regression Johannes Berg
2019-12-10 17:19   ` Janusz Dziedzic

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.