Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4197333ybl; Mon, 3 Feb 2020 14:31:01 -0800 (PST) X-Google-Smtp-Source: APXvYqw3k6tRX39cjRmLSnYUNIaYmjs/04evOVaJufCx6nmqkPbBBJSmA/f8KvrnTBeWBBxoXwo2 X-Received: by 2002:aca:5106:: with SMTP id f6mr931596oib.112.1580769061536; Mon, 03 Feb 2020 14:31:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580769061; cv=none; d=google.com; s=arc-20160816; b=N5bjQIQQV8nRpZ4DBHOAuAaYc1rWw/FVvCWTCiyt62YJJOqQ/N4Hm8si2jcLj3w5uM P1M8YvdnhHFyAGLlvT9hFawvmOAm3FbP7RIklNfC3DAV9Qwmt1sbFigN3fle4w/eT+08 jA10lmCXsNncOdctp876CYbnBJPy728ZJ6zaiLj+g9aDq3LNK6VKru8bU/x/EXTjHiCa OD9cOpdttJ7yx15hhVGursM2oKdFcoHxkIXo5ti6MKU4hIxIRLmABcJBY+NEI+Vesj5F lPI01ofhUJDcz965Q9jrMEXSQMxDrQNRni3m5kwNcSchXdYCvh7hFnENQmBou2dapj1+ h1xw== 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:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=90AxTYXNVvsHGE5MjH67X3Xvb7CVwVma5YS4+rRitd4=; b=OvuCqMUiZM+K2KBa0C7FF3ZQMgTb0a1zzbf5ImXIxbDHfGdzqfB/H5yCrEyRDckZTX COQJV/fcSqXxT1Yau/5PEln3Y40yJUKH8Fgggq2jotlmpdvRkuMjsVMgmZTTwr7lCMkJ jLZtuyHxOH4xAcIXktw/EwAobSz8lSXNzzTS6vGpVzenk0ZTTU+XlfsqKer2+EuwLlBz p0d4b3PhZ/7CzFQU0M9p35VZt6GA2fH0BUYMcGsGcHtziQ+rEnLGntLzD1ABNp8RewJc 65x7Ho2fe2ejPfRzIGJ63uQp0yAuXvSJUI5KC1zMzYDlZOmEAsFD5OfFKuSvahIv/y5K ebVg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10si10042666otn.241.2020.02.03.14.30.36; Mon, 03 Feb 2020 14:31:01 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727160AbgBCW34 (ORCPT + 99 others); Mon, 3 Feb 2020 17:29:56 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:40492 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726853AbgBCW34 (ORCPT ); Mon, 3 Feb 2020 17:29:56 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1iykE5-00Eml6-SH; Mon, 03 Feb 2020 23:29:54 +0100 Message-ID: <0a39afdd47460597c51a0a6ea9871f78d9ea5854.camel@sipsolutions.net> Subject: Re: mac80211: background scan issue From: Johannes Berg To: Cedric VONCKEN , "linux-wireless@vger.kernel.org" Date: Mon, 03 Feb 2020 23:29:52 +0100 In-Reply-To: (sfid-20200203_164721_336174_40CD3BE8) References: (sfid-20200203_164721_336174_40CD3BE8) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, > @@ -297,7 +297,8 @@ ieee80211_tx_h_check_assoc(struct ieee80 > if (unlikely(test_bit(SCAN_SW_SCANNING, &tx->local->scanning)) && > test_bit(SDATA_STATE_OFFCHANNEL, &tx->sdata->state) && > !ieee80211_is_probe_req(hdr->frame_control) && > - !ieee80211_is_nullfunc(hdr->frame_control)) > + !ieee80211_is_nullfunc(hdr->frame_control) && > + !ieee80211_is_qos_nullfunc(hdr->frame_control)) > /* > * When software scanning only nullfunc frames (to notify > * the sleep state to the AP) and probe requests (for the yeah, Thomas also found it, we now have this in the tree: if (unlikely(test_bit(SCAN_SW_SCANNING, &tx->local->scanning)) && test_bit(SDATA_STATE_OFFCHANNEL, &tx->sdata->state) && !ieee80211_is_probe_req(hdr->frame_control) && !ieee80211_is_any_nullfunc(hdr->frame_control)) johannes