Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp692703lqp; Wed, 22 May 2024 17:51:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHXtnatGZ9NEbW2WqqpqH9mXOPpPkip0QIRneYRfR1ZAkjdz7Lt8a5h+tF9kWxtUuAo14RskNi9qPNek+QVM/Dx753qXchspmF4uAzDw== X-Google-Smtp-Source: AGHT+IH3yNyLeFwCK26iqDgBAqVm1Ghfsvg3JRu1v23sFvu8ltubaKe/U0GjEaVXKt7I3gkCiekL X-Received: by 2002:a2e:9087:0:b0:2e7:1588:7255 with SMTP id 38308e7fff4ca-2e94969de95mr22603841fa.32.1716425484632; Wed, 22 May 2024 17:51:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716425484; cv=pass; d=google.com; s=arc-20160816; b=ecBx0TtmKeysU/IvhFLz0Qz+f2A47ta3ghIEnemdcWVtDyErJmXWPESMO51XQHWCbX UvUQh/FU/nz+0OPnDXMhk/aKwh+Q5kKAZ8MdNfP+U2MXCpY//6MJOx0mP99MqIYC+yic sXVvLpwVb66OHhrYIAcTlcTShoS/EYzgwKQkvrVvjqDbZ3he2zJJDlXTaWSoGJoZZ07D r3CL2G40FVFAeHI2qmO4stOr3KCOMUsGTUB+V1itpI/Zr0nNtaUVA0U5NVZR/MFGd855 PeJiv1Go+VGSAUElkMfwvFcdTXC2JH/PkfG/CwqE4EmDITtVl157O8U8PjroqLv34EEZ 2+GQ== 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=6eNvVxmV8P5acguEgjlHTJnEuDbK2NepmN9TUkFRojg=; fh=CSfnbn0QL5gd/N52ppyX+bzMGVadbsASdC9zvm6GQxw=; b=WVwLyU6D04/nZh1gH3ev2RXw6fcNy1AgGz7UT4iA6+fgp/1V+7iKdiqzs2Xf2e5FET N3B5B3tkPNOT3jitDVR1pH3r532zVoigwYbjQMpCGHYi98Mzy0XVewQQyOjYgmsJQoUP 1x8IvvLb83nJydm54PVOjc6DZhajIYB9ZMb3Osbrniqo68l1SiovVuS2DSwXnB/ZS5NJ sNyZa2kWFPnGlewD1ut75yJdTjg6T5GcW5kwrSpJNjc/GXsNZtX4eIZRaTUBdxadtkyx atwKHVAw7c7/Q1HSGFvHleGbEPTS4CbUaOA35V2qSTE21nSKBvtyTUjTVW2g92gqsStO BixA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=V9y08BT7; 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-7969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7969-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c32d00esi15261194a12.463.2024.05.22.17.51.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 17:51:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=V9y08BT7; 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-7969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7969-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 2C5361F21F25 for ; Thu, 23 May 2024 00:51:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3248AED8; Thu, 23 May 2024 00:51:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="V9y08BT7" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 5BCCE386 for ; Thu, 23 May 2024 00:51:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716425480; cv=none; b=F8K4a8jYl54KXOiEH9oGe+4k1P4kkD4q9h2obsyZfSrjGI5YVcLoYIVWEmOX4IrEyxwJ/EvqPSUeHj8g7PpjRfiPgcAQuO9q/EbggADDSaFZpGd9B5gXFth2jHkCPFHbCTGOdmQCf+qdfY4uuVeAAjhHkvAqUrSZaFCpxuZw3A4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716425480; c=relaxed/simple; bh=yxU1QwZ7uz0FY2t5VpTQaVDl0Pyu6rzKYoJLrD6zb4g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TYkpNlEwq8Hc+pk6qWafUzBydHcZl/+wbI0EP5ELVKAtQsJpAT6LMPnI7pLEjBWwmUWcQ42b2oGUu/Sjq7QBbhktMBUKeyRRI2wkAdzJaFuHAkCZzVVZxK/EQAw16hDoZI9XferBgszH9+r0iqWw+SaC/Kgnoc/4gPxlOWBrDUw= 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=V9y08BT7; arc=none smtp.client-ip=209.85.208.178 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-lj1-f178.google.com with SMTP id 38308e7fff4ca-2e3e18c24c1so76312261fa.1 for ; Wed, 22 May 2024 17:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716425476; x=1717030276; 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=6eNvVxmV8P5acguEgjlHTJnEuDbK2NepmN9TUkFRojg=; b=V9y08BT7qlxD819x03+nP1h3fzop2jaGREsNRt/Mi3uy2GVUK2lqMWFPAhBL1MFErC p3ew6OOVXc6GSwC8juKjGhWMBkuVC+ItjJh88z1+IiWDd1M/bk8rnFB1NJ8aWpbQMmao a/5t/sTb//YM3Wf/FPJ4dqIn3fhHHpCHYzN9k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716425476; x=1717030276; 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=6eNvVxmV8P5acguEgjlHTJnEuDbK2NepmN9TUkFRojg=; b=i/ZSUAubPx6bRdRXz2TkbCKmDJuT3FVpedDVuuKsb0Un4JQcJc0QxED1UcHao5nHNk XSJ5kHYA/63X1jXoda5ymdLT6mzRz8fE2rJ29KqXUmQDf6eIDX6G/a7M6a74o67KjMt2 wVWL+eScbR0nRb+/xRh3L5Raz37xc+V2/yaMl3cH/4qo+4VwlZ/WPwns9zi+Zw8n0nlW yOFxGOh2W/oXBz1sa0v+iXuMc90VBeDD12TzfO0GuLP4yCa7kXUkUkTNtTqfxQiefswM 3fIzc7IRYWPIPanLquW+v0QsIatJiyTng6kxSr2VEwg42wjdEYAkVNbnJrTfOoA9MKj9 D3yA== X-Forwarded-Encrypted: i=1; AJvYcCWEA6Hen1NWNTtnClvf8CneM18WyMljUBEUAt7LstYCBbY5DzV9f4OX5bZijVZlBxixiz8j+1ph2akVU8kK6DuLDeQb+wwa/fvaHX6zIo4= X-Gm-Message-State: AOJu0YxmEK216ApTOhZcNjvpchQcYC33Hd7BPseYjCONcUgRPUQfD4fp oEe+bHHN2xd8Lp/6/TSZSxsUHHltcFlvsX5/8RJw08aM/B4IPlelDyKosrUg2rTk2xC7+QdNXXI = X-Received: by 2002:a2e:a23c:0:b0:2e1:e8fa:4f56 with SMTP id 38308e7fff4ca-2e94969dcf6mr21104901fa.42.1716425476098; Wed, 22 May 2024 17:51:16 -0700 (PDT) Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com. [209.85.208.50]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733beb89e7sm19585925a12.21.2024.05.22.17.51.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 May 2024 17:51:15 -0700 (PDT) Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-571ba432477so12402853a12.1 for ; Wed, 22 May 2024 17:51:15 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUPCxPmtVDLvoDolT6vXWWVZnCtAl3AOIAEO8PV9rGK86pn4XI3OSJvJeFkv4GTLd5pcosVJboQzHP7B5aUccYY+jUBW5Fx1iEXe+WeWc0= X-Received: by 2002:a17:906:3f94:b0:a62:404a:d0d0 with SMTP id a640c23a62f3a-a62404ad2bdmr31881866b.42.1716425474954; Wed, 22 May 2024 17:51:14 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231222032123.1036277-1-yu-hao.lin@nxp.com> <20231222032123.1036277-2-yu-hao.lin@nxp.com> <20240227175306.GB11034@francesco-nb> In-Reply-To: From: Brian Norris Date: Wed, 22 May 2024 17:51:00 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [EXT] Re: [PATCH v8 1/2] wifi: mwifiex: add host mlme for client mode To: David Lin Cc: Francesco Dolcini , "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kvalo@kernel.org" , Pete Hsieh Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Necromancing some v8 comments here, since I realized I had the same question on my last pass at v10: On Mon, Mar 4, 2024 at 11:26=E2=80=AFPM David Lin wrot= e: > > From: David Lin > > Sent: Thursday, February 29, 2024 11:53 AM > > > > > From: Francesco Dolcini > > > Sent: Wednesday, February 28, 2024 1:53 AM > > > > > > On Fri, Dec 22, 2023 at 11:21:22AM +0800, David Lin wrote: > > > > +static int > > > > +mwifiex_cfg80211_probe_client(struct wiphy *wiphy, > > > > + struct net_device *dev, const u8 *peer, > > > > + u64 *cookie) { > > > > + return -1; > > > > > > See my following comment on this > > > > + mwifiex_cfg80211_ops.probe_client =3D > > > > + mwifiex_cfg80211_probe_client; > > > > > > Can you omit this one? You should get `-EOPNOTSUPP` for free with > > > probe_client set to NULL. Am I wrong? > > > > > > > Yes. You are right. Remove in patch v9. > > This function must be hooked, otherwise AP mode can't work. I will hook t= his function as before but return -EOPNOTSUPP instead. You mean, hostapd doesn't like it? That seems like hostapd's problem, because the actual effect is the same -- the feature isn't supported, and will always throw an error. The kernel is lying if it adds NL80211_CMD_PROBE_CLIENT into the wiphy command feature list. Can you point at what specifically goes wrong in hostapd, and see if we can find a way to fix it in the right place -- in hostapd? I don't really hack on hostapd much, but it looks like it comes down to the drv->use_monitor flag? Notably, that has a comment: # src/drivers/driver_nl80211_capa.c ~ line 1424 /* * If poll command and tx status are supported, mac80211 is new enough * to have everything we need to not need monitor interfaces. */ So, you're actively subverting something that hostapd is trying to learn about mac80211. That sounds double wrong. At the very least, if we're going to include hacks like this in the kernel, we should probably have a comment in there, so that future readers don't keep stubbing their toes on the same question. Or worse, removing the seemingly useless function and breaking hostapd. But ideally, we'd drop this hack and fix hostapd. Brian