From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF1A118C03B; Tue, 24 Dec 2024 08:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735030488; cv=none; b=PxzgKU+Fdh/AYfEjUJmnwgmVk4Df1fL61WcaFfuVJWjEHfioXtWbpT5jOGE8PYV1B7ev/9ANXgw2VqwuyVTPTeehtynsWS80F9MTW/xyZIMPHJ5W0OZRxBFzbj9xlg52S+WCK1Du/u1/4WIAyo4HUidkHeRf2yf1NsoV1YdrL6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735030488; c=relaxed/simple; bh=pTZFJskq4tDQeJXE9VNDb+gAtyz2La7MpBh4fkV4Y04=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=o69eLD296POy4FWNuJYr0Wx/af+Hbuml5m0jc93YUfpBNfQvgCnl9glXnac6aXJdEHsiLMPeFL/NRDvbfioK1SlEsje8jgBwX3i1E9dK3hAQAzRhWA9TqggwiORuYJBwTDgzs/CH20Jr2o4r3+qs/CvGf3pHlgjW0K/57iMuK7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i5QAotvG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="i5QAotvG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03207C4CED0; Tue, 24 Dec 2024 08:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735030488; bh=pTZFJskq4tDQeJXE9VNDb+gAtyz2La7MpBh4fkV4Y04=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i5QAotvGd+ohDlPSqRG3g9LiMJjRTW3+jDHhFSxM7KSmiuyIxutA4Gf919Q9m+D/U N1UsoIxCUNTkQ+9IAepGLBwTXvfQHkZOYCvfeuDVN6ThkxoVtGBqlqybPw2nM5mxXt b5S94Mqn/btqOVTT0eIGCGfSj4KEcK6comNRzvUI= Date: Tue, 24 Dec 2024 09:54:45 +0100 From: Greg Kroah-Hartman To: Atharva Tiwari Cc: Meir Elisha , Philipp Hortmann , Dan Carpenter , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rtl8723bs: fix network selection in rtw_mlme.c Message-ID: <2024122419-protrude-directory-c505@gregkh> References: <20241224085050.61133-1-evepolonium@gmail.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241224085050.61133-1-evepolonium@gmail.com> On Tue, Dec 24, 2024 at 02:20:47PM +0530, Atharva Tiwari wrote: > this patch fixes the network selection logic to avoid selectiong a network with the same ESSID as the oldest scanned network if it was scanned within the last 500 milisecond > > and please give me a value for "new enough" on line 481 > > Signed-off-by: Atharva Tiwari > --- > drivers/staging/rtl8723bs/core/rtw_mlme.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c > index 5ded183aa08c..06db4f8a7e24 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c > +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c > @@ -481,7 +481,9 @@ void rtw_update_scanned_network(struct adapter *adapter, struct wlan_bssid_ex *t > } > > if (rtw_roam_flags(adapter)) { > - /* TODO: don't select network in the same ess as oldest if it's new enough*/ > + if (is_same_ess(&pnetwork->network, &oldest->network) && > + time_after(pnetwork->last_scanned, (unsigned long)msecs_to_jiffies(500))) > + continue; > } > > if (!oldest || time_after(oldest->last_scanned, pnetwork->last_scanned)) > -- > 2.39.5 > > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot