Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp360583ybl; Fri, 30 Aug 2019 00:34:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzoKI+OEKde2fGqqCeBBPj79Kzh+WLdVz5m6dxPr6r5/tTo9f54T4aBTbYMUcFcDFrkKKn X-Received: by 2002:a63:2364:: with SMTP id u36mr11466118pgm.449.1567150458526; Fri, 30 Aug 2019 00:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567150458; cv=none; d=google.com; s=arc-20160816; b=m77wEsE1WtXY9Hvd6T38f8xBV7Rp/aQyKuGXvXdNn1VZ+O0t7Y54xoD5gsrObVgmMj yBoVAYT8+eE2qUcD59s1YiM88yxk0NRcm2okj8ucoOskDmljmH2ofc2qx82nbe5gB5Qp yQQiR97fwKrPQylu4Ngt+Oe8B15CAuhVsN8mDP48WMEAI8INlCRYNrYYeoDDIePf2QoS I+kmkm5wR07JrBHANNxZ+SWZov8xJwp88DExRkAhldwqtvq1TeJ9N1EGLhdD6KS7UaV8 qwA586A58Td5r61nvzvJ+1y1LURnoxivewsKa/Y6CrAXfirCjhnm6l974CKS6Qv3SH3z N8Iw== 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:cc:to:from:subject :message-id; bh=Z0xbJn9nxSLrmakCkiQSpqEEY5negSbcCSGX5jz8Xyg=; b=TNnyjeXA20OhwdAatxpvXGmjsYPx+8FLOjf7MuQ1aMRTg0V43LIlQ4f7ThX80Hgld+ evPep/XCay7ZUTmzRXTQE3+UNzAoQOV+V197KwdCyWwKFN7ttcrUQ7AXlJPfeV7VjOz5 rR6OfZZsC6Dv6q8T91LOFk+Y4V3cDdVTHeAJvlnN29PKivdyYtEml8gYZOHVGawJjuNJ jTlOmLiSyzia3S5qYi6bH+q1DpVPAM+prdrPpcukxpHD8BkglnZad843txLFOzWyJfVT T3YdY/f7qo6mnd0FCRzvLC0Njn/95g1c6m6qkIVkrmcPkdOxE7c7JcjZDefuAShKhxFa CptA== 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 t17si4168898pjw.104.2019.08.30.00.33.58; Fri, 30 Aug 2019 00:34:18 -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; 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 S1728152AbfH3HcN (ORCPT + 99 others); Fri, 30 Aug 2019 03:32:13 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:59810 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727958AbfH3HcN (ORCPT ); Fri, 30 Aug 2019 03:32:13 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.1) (envelope-from ) id 1i3bOF-00007y-3r; Fri, 30 Aug 2019 09:32:11 +0200 Message-ID: <39d646206446159a2b0a67ee7d8667483ade0733.camel@sipsolutions.net> Subject: Re: mac80211_hwsim (kernel 4.18+): wmediumd + 2.4Ghz From: Johannes Berg To: Krishna Chaitanya Cc: Ramon Fontes , linux-wireless Date: Fri, 30 Aug 2019 09:32:10 +0200 In-Reply-To: (sfid-20190829_210601_376380_DF9028CF) References: <80d9c12986ec0a13c34672ca1c16f37cae0cc096.camel@sipsolutions.net> (sfid-20190829_210601_376380_DF9028CF) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) 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 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. I guess we should fix that in hwsim, anyone esle want to? :-) johannes