Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6010533ybn; Sun, 29 Sep 2019 10:21:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqytc7Y358Dam2pFzIz3JmX/BbxACF/+jksUUbYu/u6TDCKOl9Q4rt+4DTryhTr3tdKD908o X-Received: by 2002:a50:a557:: with SMTP id z23mr15166432edb.99.1569777695665; Sun, 29 Sep 2019 10:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569777695; cv=none; d=google.com; s=arc-20160816; b=MaRlS2uHeFlm4INdprwYA+L2EKG95h46qHdu4nmcBFuH+KumXeKZ5Uuk+qfwxDPc2S DteH57IdzDTsxexxJtDU+rJGLDhkAkgtGjyL/+rww8fpM81iMebvgODkvE9VyeMa1328 +QMvTKi/CF97AN9GE7xoou6ku40DJ5QxWLTIJLtG6CFeKp5bXn8LorZJSKwYMe1DoI0/ oJMnxHgDCWeqEnu4HLR85lSvhNX05ZNjDCctRxpxMQXLtiXOp6LtmcDkdXbRdur0lxCS 67eutVzHjuuHzY+L4nxMbfYeisTmtp5wboi9/OSEs2VkBp8Qo0pOg/tuef7WqtzJaT1o z2vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XuZfwRpj0slj2H0CJEZsO0qlG9bzSRsoYyMiZVOwgew=; b=KGHZFG1jwbKMLVSHGm9eGi86HDjnLQXz6ipEsg1YwjaQxDPCqwLtZe/BNwne1ZXKUI 3w1HOyzeD3t5Vr7WNnpsTIYMr84ID5lnImqjy6lW3g+cmrRM9CICM6CQkr4OYTvLx25y p9QanE3QSb6N0x0+6Mh68VKWx2INHnOlly9/2RbaHT1yFogLSgMEDe6e6rJptZCgoKSu nhrGMfjv2W+fMB9SG27DJvAu0sFXDCmtC8rVDFumDlyxpmjCQk5KGKqdRBCEtgZ1iogE ecFBR2+7IGO0C/la6aN0/97M3Z6+96JjqWrSzhYo40xf9OOC4rzSQO/elhnLxIKArAbY lCAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M2fznb7Q; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pw28si5847431ejb.43.2019.09.29.10.20.53; Sun, 29 Sep 2019 10:21:35 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M2fznb7Q; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726198AbfI2RUl (ORCPT + 99 others); Sun, 29 Sep 2019 13:20:41 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:34864 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbfI2RUl (ORCPT ); Sun, 29 Sep 2019 13:20:41 -0400 Received: by mail-lf1-f67.google.com with SMTP id w6so5295457lfl.2 for ; Sun, 29 Sep 2019 10:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XuZfwRpj0slj2H0CJEZsO0qlG9bzSRsoYyMiZVOwgew=; b=M2fznb7Q+VqAaO83zrkR0zi9jNndHMkIB0lg5mMlNCKbY2Uq/RtU/5dh9gGyF1eq2e NSpLJXoeKUH7RpFZ/Z1nR3a1mGWeRVRZ/DhUeaCznyDmvPqPeE7PxMhzcHLR3PnckH2j FksVVfKbvjqSr6vncGbxZAjl0C0z1xccJ7axW6BQOdjhC0XLz5E6eFwA9DS61X+dLZUP rKm7dV9jjISwL1fW8p8GEEWg8xiDKr2AEemNz49zoltUeB7TNbSY/5WHrX4FzoB2DTYy 8peLSG3IsEVDoAA4jcidkcNB1Pd7f/xL3p9YMgUcfe9lP1XLZz8GWTEAtSpxZqNc5MqI U+BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XuZfwRpj0slj2H0CJEZsO0qlG9bzSRsoYyMiZVOwgew=; b=QXvRr43UmnvVK5zgveXp8rlJnuDzSwxncyclK0OCCf8icfDAct8CifxuMu9IO1FCJw PxFtQIXkxh0kSltSpWhxhaCfA/BjU2JaSMbKCp15Af7arn1mRhF7/RF4BjpfKt+00ntU 6YLM1ZSAa7hnXpoLO1t+WycjMh+Jn9fWFIYjlHhH+s24649+8RJlrylB0SlPyJhLF325 5Z5QSt8LwuMuC/np+UHwjWpsBCmzz8HGCgJdYSqSiQGV+MQYk6r/nuZ1YXxOxZ26cBth VZq3wggNitImZVvcYLDswg+yypwvHSKaqd4+Nv5B95cbzbJgHtIju5odoCc4P9nSbom5 eWZQ== X-Gm-Message-State: APjAAAUOL6StbHs8Mm5z8Gzg2nltOA/iDwRv8JkHN6wbIAoC/o37CMbe cCNDJSQS/K0gBNZT3dyBgHwxu15fVphtVPpvn2g= X-Received: by 2002:ac2:551d:: with SMTP id j29mr8495456lfk.7.1569777637514; Sun, 29 Sep 2019 10:20:37 -0700 (PDT) MIME-Version: 1.0 References: <80d9c12986ec0a13c34672ca1c16f37cae0cc096.camel@sipsolutions.net> <39d646206446159a2b0a67ee7d8667483ade0733.camel@sipsolutions.net> In-Reply-To: From: Ramon Fontes Date: Sun, 29 Sep 2019 14:20:25 -0300 Message-ID: Subject: Re: mac80211_hwsim (kernel 4.18+): wmediumd + 2.4Ghz To: Krishna Chaitanya Cc: Johannes Berg , linux-wireless Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > Still doesn't explain why it should work in 4.17 and not in 4.18, there > aren't a lot of wifi changes there at all. I just tested it with 4.15 and it didn't work. However, It works in 4.15 in other PC. At first these 2 PCs have the same packages with apparently the same version. The only thing I can highlight about the difference between them is that: (i) Ubuntu has been upgraded from 16.04 to 18.04 (it works fine up to 4.17) and (ii) Ubuntu 18.04 has been installed from scratch (it doesn't work at all - tested from 4.15). On Fri, Aug 30, 2019 at 5:22 AM Krishna Chaitanya wrote: > > On Fri, Aug 30, 2019 at 1:02 PM Johannes Berg wrote: > > > > On Fri, 2019-08-30 at 00:35 +0530, Krishna Chaitanya wrote: > > > > > > Is this supposed to work at all? AFAICS, in hwsim channel matching > > > checks are only done in non-mediumd path (no_nl), and wmediumd also > > > doesn't have any checks? So, hostapd responds to all probe requests in all > > > channels. Am I missing something? > > > > Hmm. Interesting observation, I wasn't aware of that. > > > > That certainly explains the situation though - on 2.4 GHz we'd prefer > > using the DS Element, and thus not use the scan result, while on 5 GHz > > we assume that the reported RX frequency is correct (there's no channel > > overlap). > > > > Still doesn't explain why it should work in 4.17 and not in 4.18, there > > aren't a lot of wifi changes there at all. > Yes the git log also doesn't show any changes in this area. > > > > I guess we should fix that in hwsim, anyone esle want to? :-) > I can give it a try to move the channel matching logic to common > code for both nl and no_nl.