Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4500251ybl; Mon, 9 Dec 2019 11:50:35 -0800 (PST) X-Google-Smtp-Source: APXvYqyfClJNm6AYsp1lxoTyF/4sOL3n0Ci4lCYplu/Fx2/eco305c2zJjwit/674moxzo/TqrKG X-Received: by 2002:aca:190b:: with SMTP id l11mr736065oii.65.1575921035621; Mon, 09 Dec 2019 11:50:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575921035; cv=none; d=google.com; s=arc-20160816; b=U/snEZ7h84ZfloUdI6bZhsqWkTOMfqYR/+JJDtZ7qmQHpJIJgEYH8yU3Z1yLM4ljHc 8F9co+YmO8j2uezhYk3HDz47XCAKnSYVweMNFUgtVvaB20+agw9zQFJLedxt9eRMNXmP 2/iH1OZe/v7eoZ/BF5sTndCIH4YaBvXXT/bqzgnKz7f172jNIQMk1HwDlJnhAHdkD3Rx A6TvWQAHWIgYLsVdj1Vvv1MFkF7aANKkTvBIKLrMOmtG5I8L6v/7owf4whfsc3pkpW0u XKyF2QVda+KEC0uH+bJrd907XHGqwfg84LhBKpb9dkmjWl1o7EFtZO2VTEDjmPlCBOQn zPdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=p6/mcnWangHGHGAGLsrzVL2S8qGSr6gDTSQAkPtDfaY=; b=AazSX2iMp6pQmt8px5o96GlqxJ2/MKGi3mABCDxaD6HZF5hH5KO922oxtn8eFkMnV2 5ucj4BKaS4VWvtCKczCVeajCvhines9CAAl9dQStVF30RYXNsHP7hAdVMeSggWW3r0E2 AmUv01YjZfPkkfFRYnxKem3wyspCWl6KxX9mJZD+iE6JLkSY+dJJcSX/LVGAoKSuAlxz NbG3qPIGXzogG7QQaEkEtAI5zkVYluqfy1brRjehczqFpURYZlI1D5clOUbqFuYc0eEP soBJu0Ohy0eyWQAHwZuu2Q4j6JCkkyHXfdoQw0fTCPY3SPC+j8CUuoyTdG4kFYgxP5S8 T1+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21si534394otv.227.2019.12.09.11.50.23; Mon, 09 Dec 2019 11:50:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726605AbfLITtK (ORCPT + 99 others); Mon, 9 Dec 2019 14:49:10 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:37236 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbfLITtK (ORCPT ); Mon, 9 Dec 2019 14:49:10 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.3) (envelope-from ) id 1ieP1o-00GSqj-G5; Mon, 09 Dec 2019 20:49:08 +0100 Message-ID: <283f52f854eb895b7da9d68a665b9679ba006d47.camel@sipsolutions.net> Subject: Re: iw - set freq regression From: Johannes Berg To: Janusz Dziedzic , linux-wireless Date: Mon, 09 Dec 2019 20:49:07 +0100 In-Reply-To: (sfid-20191209_204325_000067_F9F15227) References: (sfid-20191209_204325_000067_F9F15227) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 set freq [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] > dev set freq [5|10|20|40|80|80+80|160] [ []] > 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