Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2968382rwo; Thu, 3 Aug 2023 19:10:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3A82L9ce/Lnl7xr+kcaGjRFFRUB2sxYP/pJQv/89YqxRz+Nj/+/zhFPtchWRjnzyqgW41 X-Received: by 2002:a17:906:da8b:b0:99b:f42d:b3f6 with SMTP id xh11-20020a170906da8b00b0099bf42db3f6mr505946ejb.32.1691115038360; Thu, 03 Aug 2023 19:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691115038; cv=none; d=google.com; s=arc-20160816; b=pgXlxnJH52rMalN7gPGHmMFhWZWV/DuPuBHL0IrlMgl3p5FbYS2CVqd/8dHe2SaXl9 OkaJ5zsv539bGiaur0LmEYenKdmBNHtVMJSkeVv/UIwTQSZ3FeMGzw04vk4hG+HWkZDB OkLMclO5MW9bBdJHyJ9emrZYAOUa+9PR9mSJp0kmf1FozKoqqjcMmkggx5QGKnOw8yaV NgtUYFJD6q4egx+HVVKjW4JCCi8HlJWfC0JJZen2INTxbpCRxSVhYTI7Fs74n2ocGRAd Oz+/noZiJ08A2roYOVGPkeIr8tJapilcnsQ0aazJSZ5LiIwIE3WSelM2zvTSfuHibFdI nmNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ypBwOVIzjGVKMtpMOqEnNVCRx9mqI7yfpCvSX9uD1zc=; fh=kZOL/23IraOI+ZE/cblDbsdXHjoTCkyXEUIddmwE69o=; b=f8FDK/uGYqO+SlqKBYi3peFWLlrQ5ivGeZ+Pq9MDYM+pusa9P57mhstODi7TYxXrkY vidJVR430L7j4iVClJP6lO/tvRW9N7D+zhjWto/7icVn37LjEU4TZerqauwNiO7acZrw 5PjjOpsN5oSgPNai3TJSSA7+uuafqlLKqr3EqmLoqSgx51WISSzYdWbWNCdjRz1w7Nar 0MwVX/URflN9jHAmtF/pNFvgRaALcFAn3Fh4QwXeLmrL4Txa7/miC2kzYBbwhpg7mOY1 zRz4+gmQ4iiLbY9l0UOD20OsFUW/lY2AGJmNQhzNmk+21ZXlFWazobkI4Od/USvOKLYd UefQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CoCTu0k0; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h23-20020a1709066d9700b0099bcba9df15si760747ejt.605.2023.08.03.19.10.22; Thu, 03 Aug 2023 19:10:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CoCTu0k0; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230408AbjHDBVN (ORCPT + 58 others); Thu, 3 Aug 2023 21:21:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjHDBVL (ORCPT ); Thu, 3 Aug 2023 21:21:11 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E04154204 for ; Thu, 3 Aug 2023 18:21:10 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-686f8614ce5so1455037b3a.3 for ; Thu, 03 Aug 2023 18:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1691112070; x=1691716870; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ypBwOVIzjGVKMtpMOqEnNVCRx9mqI7yfpCvSX9uD1zc=; b=CoCTu0k05NCxhTrWpO2gGYn9FY/B30MkO/QOlPHQzdKPOnYk5Bk4DRNPmCmZQvs9V/ 5cais6NVAAc23978nBrhcacaARfe/m58Ad+6N1Ls7Xn5vEGE2udGKSVc9FJVcJBxK7FD 9kzvinYzWFtU4Q8RtvWxJ5LkBI9TSht0IdDm0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691112070; x=1691716870; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ypBwOVIzjGVKMtpMOqEnNVCRx9mqI7yfpCvSX9uD1zc=; b=EDvw8IACYBSMVEObE3AVIFgD9+IKPIq8YIVV+lCLoeiV83or76se5mv53RR8kcxJpX cKvIT7j8TZJSpPoN2tARQhQtpWZQDx1o1jFsTDoYgSq8l9Mv8SwSPdkXl8/RQmfGu7uE xO5bT6e1qWyRiBJ5IWMgZCa4wxYMdHAJwRONpKWBdF9Lsao7NukMaDN//5ZLkkVgeFLk YGkrUJkZ5YofI/5D6rtm/QPOk+TAH58QGxJT3sGATOmOAPmZ7Hjomlxps19KBsCdr0V3 puJOjbgHrjYOTekm3R/uMGJ0vqfQpBMNHvwtHNpEaRuvU6nt9lExdp92p7ZMEx6Mcjgo U1uA== X-Gm-Message-State: AOJu0YwRFdhhSAHobjamT/SN25Kn8f5EqvBPY4qu4eYA6D7GX4lNIqDu vTrwfHpi8q0EhDUlXlg26o0BQQ== X-Received: by 2002:a05:6a21:3384:b0:134:1ef9:8c17 with SMTP id yy4-20020a056a21338400b001341ef98c17mr430494pzb.20.1691112070360; Thu, 03 Aug 2023 18:21:10 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:8572:f31f:f867:9438]) by smtp.gmail.com with ESMTPSA id j13-20020aa78d0d000000b006829b27f252sm446026pfe.93.2023.08.03.18.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 18:21:09 -0700 (PDT) Date: Thu, 3 Aug 2023 18:21:07 -0700 From: Brian Norris To: Kevin Lund Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org Subject: Re: [PATCH 2/2] wifi: mwifiex: Stop rejecting connection attempts while connected Message-ID: References: <20230602225751.164525-1-kglund@google.com> <20230602225751.164525-2-kglund@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230602225751.164525-2-kglund@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FSL_HELO_FAKE, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Jun 02, 2023 at 04:57:51PM -0600, Kevin Lund wrote: > Currently, the Marvell WiFi driver rejects any connection attmept while > we are currently connected. This is poor logic, since there are several > legitimate use-cases for initiating a connection attempt while > connected, including re-association and BSS Transitioning. This logic > means that it's impossible for userspace to request the driver to > connect to a different BSS on the same ESS without explicitly requesting > a disconnect first. > > Remove the check from the driver so that we can complete BSS transitions > on the first attempt. > > Testing on Chrome OS has shown that this change resolves some issues > with failed BSS transitions. > > Signed-off-by: Kevin Lund > --- > drivers/net/wireless/marvell/mwifiex/cfg80211.c | 6 ------ > 1 file changed, 6 deletions(-) I've been told this one might need an extra look, but first off, it's marked Rejected, likely due to feedback on patch 1, so probably needs a resubmit if it needs consideration: https://patchwork.kernel.org/project/linux-wireless/patch/20230602225751.164525-2-kglund@google.com/ But, did you attempt any background work on this, to determine why it exists, or what other mitigations are in place? For example, I see that sme.c's cfg80211_connect() makes a similar check, but only rejects things if the SSID is different. So with that understanding, it's a reasonable guess to say that mwifiex would be OK with just relying on the existing cfg80211 checks instead. In other words, I think this patch may be OK, but probably could use a bit more explanation. Also, how does "BSS Transitioning" (in your description) fit in here? IIUC, cfg80211_connect() doesn't support that, as it only allows reassociation to the same BSSID. (Or, I might be confused here.) Brian