From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CED5C3A5A3 for ; Fri, 30 Aug 2019 07:32:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA64422CE3 for ; Fri, 30 Aug 2019 07:32:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728201AbfH3HcN (ORCPT ); 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