Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6644390yba; Tue, 14 May 2019 10:58:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlBqLNaNpRWt4YZlIkPKRDGXBBU2g4zcsn9QgFrCtTcJHsbV4to9TiLtIaqdd9H0aUqFCM X-Received: by 2002:a63:530d:: with SMTP id h13mr38743557pgb.77.1557856725490; Tue, 14 May 2019 10:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557856725; cv=none; d=google.com; s=arc-20160816; b=Mt5h3W7xbL3FsuX3FVHPBfYUGemn7Pte9RmHiL0zoaKWuHID4ws0HDFH0w+qAZy0ga lXwYR7ZvKEfSwHoJO3AQtLZPbRiFRfet5IoMAAj3L5CXmPly978zsR+Eq9i4pkO98lJb coNL9EGorERUGYEekv0Q8WPNHNVdnFL+UCUv8g1mWRI7gCnkShgKOZkaINXQiZr9ytIm JWxpOgfIFdleG/vz2sdJ4NcGoJ1Ko8nJfE+RFWHaUrXH4/8oMkf8oRosj1eJXvn+xTFy 5GfRk7kIMBiBtJWHFtpZdjV1exc3y/cTQNVDg+ou7l8C1AtncU5D1+duMWqd1QrQAalC ur0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:dkim-filter; bh=Akh6VrDum0BZRukDC9cUmS2BB/KRiTKyus+eZN+0m/Y=; b=KIoQTwTCB+CEcMOUKBAc+vgQFj7pYqcHHKV6GsqOoSpITircZrCNOGZiNYf/I36HUm ScB7vfSZwKZe00S/WvBUgCozG4cf3YeQbNOjNDT9JDSVnttISzKSRq9mFLUOp7TKf7cH p165rAYfzQsvxfmc/ejhSaGPwCgIw3i3wc6g+rwht+Aw0TT5t/qtadViBRFOw/gQ3Zqs kzNr2dE5wwEB/6DQD87b1ncNI3ZZ4LANXaddq80ojWwscT3Jclb3tg7jfru6PUcUb0QC dVMhTmyMoeVkzhEs2z7TjpORztS2Z4Jwo7DSaLCQgM+nqOONt4nlS45IISZ/bWB1yLKd XVlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b="Gctrmng/"; 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=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si18623437pgq.390.2019.05.14.10.58.18; Tue, 14 May 2019 10:58:45 -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=@candelatech.com header.s=default header.b="Gctrmng/"; 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=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727181AbfENRzv (ORCPT + 99 others); Tue, 14 May 2019 13:55:51 -0400 Received: from [208.74.158.174] ([208.74.158.174]:54604 "EHLO mail3.candelatech.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1726481AbfENRzv (ORCPT ); Tue, 14 May 2019 13:55:51 -0400 Received: from [192.168.100.195] (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 0923D13C283; Tue, 14 May 2019 10:55:50 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 0923D13C283 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1557856550; bh=1oLOTWzN5aUL+BV36V/HH5i+dM7TibE9gwI1+9t2OI0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Gctrmng/rcmgK71WC2Fxf0uAi4sLb++t+7wSccPobluuRXnaSZNTmSMTqnmYMgduu kcsAwkl0DIu91ypAtlVMfNWUEf7g9ISYGpiKzlldeymjeinfzUOoARBdxvlNtvvFRE 4x/R7+Tve1UC/1OAqVKxYGJsHIaKFN4kCvQHGsvA= Subject: Re: [PATCH v2] mac80211: remove warning message To: Joe Perches , Johannes Berg , Yibo Zhao Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, Zhi Chen References: <1557824507-17668-1-git-send-email-yiboz@codeaurora.org> <7c92f5cf51eaec1d5449698d90f5b6c5ca6c2bea.camel@sipsolutions.net> <34f72d5db336b9898618bf1c5c15ec41094d7d06.camel@perches.com> From: Ben Greear Organization: Candela Technologies Message-ID: <4d013893-3302-14f0-c957-b3771f4b6b82@candelatech.com> Date: Tue, 14 May 2019 10:55:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <34f72d5db336b9898618bf1c5c15ec41094d7d06.camel@perches.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 5/14/19 8:44 AM, Joe Perches wrote: > On Tue, 2019-05-14 at 11:12 +0200, Johannes Berg wrote: >> On Tue, 2019-05-14 at 17:10 +0800, Yibo Zhao wrote: >>> On 2019-05-14 17:05, Johannes Berg wrote: >>>> On Tue, 2019-05-14 at 17:01 +0800, Yibo Zhao wrote: >>>>> In multiple SSID cases, it takes time to prepare every AP interface >>>>> to be ready in initializing phase. If a sta already knows everything >>>>> it >>>>> needs to join one of the APs and sends authentication to the AP which >>>>> is not fully prepared at this point of time, AP's channel context >>>>> could be NULL. As a result, warning message occurs. > [] >>> I was planning to use WARN_ON_ONCE() in the first place to replace >>> WARN_ON() then after some discussion, we think removing it could be >>> better. So the first patch was based on my first version which is sent >>> incorrectly. Please check again. > [] >> I guess changing it to WARN_ON_ONCE() makes sense, > > WARN_ON_RATELIMIT exists. We know the WARN hits, we have the backtrace, and it is easy enough (in my setup at least) to reproduce this. So, the WARN logic has done its job. Having more of these spam the kernel doesn't add much benefit I think. Anyone have any suggestions on how to fix the underlying issue? Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com