Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2736252ybl; Thu, 29 Aug 2019 12:08:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKuzbit+/6euSpo5UqNW0c3F62D94vaGAM8d/3JKWbFPZiiTvG7Fhirqtcsbnnv0jUmNjB X-Received: by 2002:a17:902:2f05:: with SMTP id s5mr11662057plb.170.1567105711581; Thu, 29 Aug 2019 12:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567105711; cv=none; d=google.com; s=arc-20160816; b=qiIVvUW5reb1XedSgrt6UCZt/YsfSJtCRBxhsqghtAp1/us7YjUfO89y2GT6aTt5k1 kUXTLEUNqda1txjTRsR8AyIPgd7IQwDQGBTNO+vEGznLUTAbV/M718xb40iWNWR5L2tY PgdVXnPhX0z3z8zI/c0e43Bi8maiHlotGUqB8X4RTIcOMRQj3sMjVqODv5Vpetatqwgh iAx8U4hyJYpybQdirIthbFlvMVeaIXLAWW9qbGtKkAga6NJJ+l8TJG/aTi2UzXxOvbrt bComleVDkTGnQBm+JLgqFM3SPW61eauXSavuKrzesczpcxISD9+3DZ833Me+iT7ttS7U CNxA== 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=c6ODR4liUJUcLKxYPurm7ggAPp8kN1h7mndbudDzdgE=; b=cUQjeXDpQH7KBeW97gb6olTKyUmfnaxcwbunaAAh0vIGtNnj+28FwMwvjwAvxcnK5z ihwULGnR/gjnT8Z7YPUq0SzoKMQZkQTy2CnZMfsJkXc/DifdZImZeA29342po7bKeEsd jW4qckRUAOQLSrwR7dcwyE24uxLOJtp77ocMhMhf1yWqHsh/YvhqDBqw8gq3uA4xJzv0 zcuDcn2lFdRdR6ZANLSn4yhHrLQJBv5Vh7lFeFAy2FXp5Sqznv2AqJktV6EbPiySuJX5 h1QFmmFZB6O3dk1ckHdAndx1Je8sJ2Oz/EWyX3Ll2LGkR2sXvQIV74CEkskjHQrUCpd9 LDzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dLd6n1cu; 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 j190si3665059pfb.137.2019.08.29.12.08.03; Thu, 29 Aug 2019 12:08:31 -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=dLd6n1cu; 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 S1728143AbfH2TGA (ORCPT + 99 others); Thu, 29 Aug 2019 15:06:00 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:44720 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727910AbfH2TGA (ORCPT ); Thu, 29 Aug 2019 15:06:00 -0400 Received: by mail-io1-f65.google.com with SMTP id j4so9021434iog.11 for ; Thu, 29 Aug 2019 12:05:59 -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=c6ODR4liUJUcLKxYPurm7ggAPp8kN1h7mndbudDzdgE=; b=dLd6n1cuN59FKLyUeX6f4ieG2cTQdv+xUByWesHiL3g3EZX/q5fQIXm8Xgom3esmGv XUV89a0MelbyPW8TYxAojgI8ihZHrop5G/RTHA2WpVz12rplN+eyyvAx8ye+L+/DNFtk x4yN5Qe9ZSjA86rtfL8FkqIWW8tYme+eiR1a/Ybpl/okzcmP21q7mV+keyA4PnKi03GM 7UJFvlw69t+toAzFCp2vN75Ly9S1uGiFnF3uCmSe6t/0g6PXTK1iHyHWJUzHtIu3kGNQ Pgzb0B2g+TcdZsyFDEejksNW6Hais5Hr2Jc8PTMVsJgQCHMvIQ/KcIN3qiJTTUz10wQb +26g== 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=c6ODR4liUJUcLKxYPurm7ggAPp8kN1h7mndbudDzdgE=; b=HBVg/HeGiYNvNaCxv1M1pIU3ZMdjyws5boj5bxxTYLcj9d1VX7M99vUCx73wrvnFpm GAURdZwRQVyBwFPVL+Om0r1Iad+EHuu8vE89lWVylmoTtrDJt8v9bpWQdj8yOk60r+V6 7vKv6TTy1Fj+V9Irxctg8GF5YeKJCwjG1KVwfmkc8cHvrses6JyOhVn5JnNiRfensWk4 3iXinHmv92FoQhEgLIA/3Oq+il+jdW+nbSywDAj45DJHunIMZBUm1HPPW2y8BhKKjtpu OTB/B1nL95u7hW+M8EynmgooiGlrwVD6tV4MtRgHojnR+fSGSuM6t6bt6lU4X6z1fk2f 3t1g== X-Gm-Message-State: APjAAAVH43mSXPPwZsDxC6r+oVJgstuoyjeHM8+dsv5VLaeI1LStucAm UnRIGly3nbGlwIXKAXvJmVzhF3/vcsku3chIhb4= X-Received: by 2002:a6b:620f:: with SMTP id f15mr12453499iog.190.1567105559154; Thu, 29 Aug 2019 12:05:59 -0700 (PDT) MIME-Version: 1.0 References: <80d9c12986ec0a13c34672ca1c16f37cae0cc096.camel@sipsolutions.net> In-Reply-To: <80d9c12986ec0a13c34672ca1c16f37cae0cc096.camel@sipsolutions.net> From: Krishna Chaitanya Date: Fri, 30 Aug 2019 00:35:48 +0530 Message-ID: Subject: Re: mac80211_hwsim (kernel 4.18+): wmediumd + 2.4Ghz To: Johannes Berg Cc: Ramon Fontes , 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 On Thu, Aug 29, 2019 at 10:55 PM Johannes Berg wrote: > > On Thu, 2019-08-29 at 14:04 -0300, Ramon Fontes wrote: > > Yes, that's what I (we?) expect. > > > > Yes, wmediumd has some log files, but they don't help me to identify > > the reason of the problem. I also unsuccessfully tried to modified the > > wmediumd code. Both wmediumd and mac80211_hwsim work fine up to kernel > > version 4.17. The problem comes only from kernel 4.18. Since there are > > some wmediumd related-codes in mac80211_hwsim, I was wondering whether > > something wasn't missing in mac80211_hwsim (or even some needed > > changes in wmediumd) that is causing such problem. > > Hmm, but are there? There's basically no change in hwsim between 4.17 > and 4.18, only a few error path cleanups/fixes and the SUPPORTS_PS > change which also shouldn't matter for this? > > > Another weird thing > > is the channel, since the channel is the same as defined in hostapd > > and doesn't match 5Ghz channels. > > You mean the DS element? That's just from the frame itself. 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?