Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp686711lqb; Fri, 24 May 2024 10:02:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzM5Rh/WxXzgdrRy1SJ1Xn+RtIrCUI3EoL9R4t+KCMR0xjMjZmDGBzwmDpsxn+vS/Yic2b6YVe6kQQ6OVS33EioeIQfmpAS3vKvTWrFg== X-Google-Smtp-Source: AGHT+IED3Xclao/bnqhOMnCLQ/EhCzc4vcqDOv9Lhe9H+NlFum7SbrLgmnlZQHSbv4l1nIAN3h5E X-Received: by 2002:a17:906:4148:b0:a59:b6a8:4d74 with SMTP id a640c23a62f3a-a62635ecc71mr198256966b.0.1716570155112; Fri, 24 May 2024 10:02:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716570155; cv=pass; d=google.com; s=arc-20160816; b=kiVMboNtkZwPulWXjWYFbHJwYc0yXFEi64Pf7SZJLn/rCeqhFXMxXg75JrCFTBnw7P 9/u3AHzNd50Di3nTfR8JMRlHQyEntwhLcK5LDUaiEygOrF0sH5WbLlJlN6dyg/+MMOah zQwgdHwiHKLYI/uB+n2lIG9ThfJBQq7JOlTGF7Y6rorvofHuucbwKRn60owbZq1wcX94 8YY5GkppHmr7V3VVeFMrrvZczbYvrjLuIh/+wUVI/8kVM06jiaSyi7UCnmFkRxvDogB8 d7TyhZD2eLfEMrTJVPc7VKTxCNf1uE/T7NMWI65uSWa7LUhT/hcoqyeI/Lf5otMx81/U bVqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=C9kMv49pJMKnl/VPl7t2oqoLc0rJiWrPx5Kz6TyTRjM=; fh=C0hwyhyPT1HUIPo1fELElmD6cmv5YtorUkTzkg3JLBw=; b=f0NHs2hmCDLSIarC2/zzGRvy1nY1wqJn0Y8q1lQB/2UlYJbt4Z3+NX+/ObuCGD2XOT B/rkEdbkjyFjOa+czhxfIapSj4kJTBeaQRhsBVxX6w++7BiGFgxNKU6CSzCX29oa4J8p 6RDw7wF5un0HLvK/rtr7nofid9RYnUQAoMOsZZXQUF1NQFXEolNgwDkvDlL89KlHbxAm nR3f8475C3rmbioUrV+GHWOHIz2+XEl5BRe6kUvU8VYcR5jANvyceLufKmEiXLmDQXgI ZLBMauJx53Ob3SG2vD3o+n7j7G1Pj9aomyyKR7eSwr4n0Mdvwy/+HizR1oRL85kXx/36 +i+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K4zlo4ui; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-wireless+bounces-8048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c7ff0c6si101689366b.199.2024.05.24.10.02.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 10:02:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K4zlo4ui; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-wireless+bounces-8048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3C1931F20E38 for ; Fri, 24 May 2024 17:02:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7284376EB; Fri, 24 May 2024 17:02:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="K4zlo4ui" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7B946FC3 for ; Fri, 24 May 2024 17:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716570146; cv=none; b=glLbJ2fdMaE6DaqmgQT3qIChZzflC+mS04m4GmXX/7g5BzpEJ/NlsEqHNiRDbDQlmA/SsUPpjh8uL6P2fB/pxQYUKspnco6OpaRbrzwf2OAm027xWT0UKr7upPoIKkOrnoNKRna+blkGL0dLYoZiz1zdndNhD8noEXipCuroRFc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716570146; c=relaxed/simple; bh=wqOOh/1pKHk21Rs8PmFaDPTbCwsmNAhdP7Z6CT4+k80=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VedxpkBUiWqCa+VsyVnH9hNTZO16SdZnFLkGoHfpMkF3ALlqe/CH3gGaJv5sx0xGJ/C6ZpKa+Qswgp73XMu+6D59g0rPq+T4Rc+hNQDTF/yIUJknBaIHkdietCu9X5h+MagHSlJVPRYhtoKI+jiQD2wmelJMzcDNAwc/vR09VjE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=K4zlo4ui; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a6267639e86so134329566b.2 for ; Fri, 24 May 2024 10:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716570143; x=1717174943; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=C9kMv49pJMKnl/VPl7t2oqoLc0rJiWrPx5Kz6TyTRjM=; b=K4zlo4uiPZxN9+YaT/WGiMUwQaaiqRY2o8/sYdAQaMdkRZcB677nEJXAca2mtN9zaV FoVZDnHTNZI+fYxjzjbYNEn6B14MPbYZJNwiRxBP3ol74TfoGKDwdPm+pNIDT1gSiZi3 9gzVEn3Yj+IhYY5mTe9S0DqwJ1nPL8tzTXFUA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716570143; x=1717174943; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=C9kMv49pJMKnl/VPl7t2oqoLc0rJiWrPx5Kz6TyTRjM=; b=cXVrHCO8iKL+9sEsbfZUe7pLqZx4xpu4n/lC3pm2bxLeCdp1dNW4+0F83qsQ1xHsZv nxtotOQzTQj6d+/imMZcip0YfAPmD0n97rgLs0F0OR2SboedOImFCYMLHDaKcTgv3qQy 9rZVGw6kox4gjgohn4hi8JvuUvPJ6vvgnP5NNDnP8arZLxV/jou3EjE9cTFiM4As56bk EfDbtplce1yfh6KsnGRLKu2lk9J7eNoubw6+5f6avsEJKI5dQLLpn8zyfxvc8z5jiGr1 HvOQ19QtX5WLhRN00qN6u5hAfSyPJxb7NW5HnLje6+Uz/C7JYmmfeQmAkZzLGKYOAYkM PPBA== X-Gm-Message-State: AOJu0Yy6FqNI4D7l7erlf8LIMPpKP2Qnhrmke3ghdwWgloGQ2LCrtQMa qs7MUBUC28X9kSOPpLCwTO57rrZ0foJGz7ROZg2ZSUbPiRje8HZEW+fv4ARK64qbiRWJRIIVFdJ 4PQ== X-Received: by 2002:a17:906:f14d:b0:a5a:6687:c6a9 with SMTP id a640c23a62f3a-a62649c07f7mr194648766b.42.1716570142803; Fri, 24 May 2024 10:02:22 -0700 (PDT) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com. [209.85.218.46]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626cc4f95esm153907866b.104.2024.05.24.10.02.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 May 2024 10:02:22 -0700 (PDT) Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a5a5cb0e6b7so1321623266b.1 for ; Fri, 24 May 2024 10:02:21 -0700 (PDT) X-Received: by 2002:a17:907:9386:b0:a62:1b4f:6018 with SMTP id a640c23a62f3a-a6265148c51mr161965166b.54.1716570141375; Fri, 24 May 2024 10:02:21 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240418060626.431202-1-yu-hao.lin@nxp.com> <20240418060626.431202-2-yu-hao.lin@nxp.com> In-Reply-To: From: Brian Norris Date: Fri, 24 May 2024 10:02:05 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [EXT] Re: [PATCH v10 1/2] wifi: mwifiex: add host mlme for client mode To: David Lin Cc: "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kvalo@kernel.org" , "francesco@dolcini.it" , Pete Hsieh , Francesco Dolcini Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 24, 2024 at 2:46=E2=80=AFAM David Lin wrot= e: > > From: Brian Norris > > > > On Thu, Apr 18, 2024 at 02:06:25PM +0800, David Lin wrote: > > > +static int > > > +mwifiex_cfg80211_probe_client(struct wiphy *wiphy, > > > + struct net_device *dev, const u8 *peer, > > > + u64 *cookie) { > > > + return -EOPNOTSUPP; > > > +} > > > + > > > > > + mwifiex_cfg80211_ops.probe_client =3D > > > + mwifiex_cfg80211_probe_client; > > > > For the record, I feel like this question was not adequately handled fr= om v8. > > That thread is: > > > > https://lore.kern/ > > el.org%2Fall%2FCA%2BASDXM1PEMRyxRpBryJ7G6e7yzG8Ku%2Bg2_qpHN3g5d > > jFpAWkw%40mail.gmail.com%2F&data=3D05%7C02%7Cyu-hao.lin%40nxp.com% > > 7C0b65f7e4a5fc46c8bdbc08dc7ac2c9ff%7C686ea1d3bc2b4c6fa92cd99c5c301 > > 635%7C0%7C0%7C638520224227876720%7CUnknown%7CTWFpbGZsb3d8eyJ > > WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7 > > C0%7C%7C%7C&sdata=3DMpqW1U4yTgDcM0g20DRSAxEnHkNNkd2hwsZrVAxg8p > > w%3D&reserved=3D0 > > Re: [EXT] Re: [PATCH v8 1/2] wifi: mwifiex: add host mlme for client mo= de > > The difference with and without hooking probe_client() is that "poll_comm= and_supported" of hostapd will be set or not. > If "poll_command_supported" is not set (won't hook probe_client), it will= let hostapd to set "use_monitor" and client can't > connect to AP. Yes, I already said that in the above reply. If you read my v8 reply, my suggestion was that you need to fix hostapd, rather than advertise lies in the kernel. You don't support probe_client, so you shouldn't advertise it. I think you should dig into the reasoning from this commit to figure out what to do: https://w1.fi/cgit/hostap/commit/?id=3Da11241fa114923b47892ad3279966839e9c2= 741d Personally, I'm not sure what hostapd is doing with NL80211_CMD_PROBE_CLIENT ... but you're the one submitting the code, not me. > Maybe I can put following comments: > > Hook probe_client to avoid hostapd to set "poll_command_supported" as 0 a= nd set "use_monitor" to 1. If we really can't fix hostapd, I'd avoid using such literal descriptions of implementation details like variable names. Maybe better: "hostapd looks for NL80211_CMD_PROBE_CLIENT support; otherwise, it requires monitor-mode support (which mwifiex doesn't support). Provide fake probe_client support to work around this." But again, please actually explore the reason hostapd is doing this first, and see if you can fix it. Brian