Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5698679ybi; Wed, 31 Jul 2019 01:54:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcH9VZp1HRnzZHbsF39EJTXtRptUJj4Y+mxbX4Fx5WmYUo54OycVew0hJxbpXoGGvn7FW4 X-Received: by 2002:a17:90a:8d86:: with SMTP id d6mr1808396pjo.94.1564563296681; Wed, 31 Jul 2019 01:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564563296; cv=none; d=google.com; s=arc-20160816; b=gJExUhXPmN/BcDmvjK8js7FBvjaUiD1I/dWDt3nJeEdoxPmsCdzDG/Ki5d5bpT7vtz y3tDhgYpD0xR5kuRGcR7YiEPUYgtfLcNKhc6NmgzU93WhMdr7xNwSkMcI7ZEzuTowGe/ IPucmNxU3dvfE4OkARdm7UkVN+A+ZC3KOEwxN8eOTvXgB1W5/1+k13GmDjcdw/NtpQ7+ XdWFJSIpNENXvdc8Woe1j0kPzVfYtXQ37mEEPQ7bD8VTAiqbS2WtrsxU9k9HwYf6ZLCX 3CE8hzolC8E1CY9n3PSHv/klm2CAYN5wWLkZ1lLT/SxoGiFVG0fcL+i7b4zB8BFF/YyY knJg== 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:cc:to:from:subject :message-id; bh=mttXdQOeX/5mZFeOXsREDBarsSsJuUydhY4cN788Sb0=; b=Ek3DGtN4GBX6YeN8DMHoKGv1OBST1eaiB7L41J9YUAZ5FXB1kUdOo0hrsK6IQzUAEO zO94h+/OyGPUmn1pkd4/tjXzQP/BAheZd6/Jqy8cvsJ5dvLX221yMr8XjeXKfAgR8J5U Zd1QRwzZXD9N1zWanB/JZ6P7YGyVOM+GVOx7v7PFNaTF6/rnAKcBYXFqBgus3vSqgd43 0YZPb/fPQ2AGXfh2T/44TylTUK5a38mMLpCKLodmVpoygv4zDUoPsx1jzXF76vvdfJL8 Jb+I15VcQo6DRVcim0MwQ0ponoKPnw02PkJBZHh7+QkFdbnCmaaN6jYjNBunzq4e7f4d ponA== 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 l184si30023129pge.286.2019.07.31.01.54.42; Wed, 31 Jul 2019 01:54:56 -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; 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 S1726410AbfGaIyK (ORCPT + 99 others); Wed, 31 Jul 2019 04:54:10 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:54878 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725209AbfGaIyJ (ORCPT ); Wed, 31 Jul 2019 04:54:09 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hskN6-00041O-0W; Wed, 31 Jul 2019 10:54:08 +0200 Message-ID: <5957aa7cc7dcd1cf24bd81bcdff419a27c7782aa.camel@sipsolutions.net> Subject: Re: [PATCH] mac80211: HE STA disassoc due to QOS NULL not sent From: Johannes Berg To: Shay Bar Cc: linux-wireless@vger.kernel.org Date: Wed, 31 Jul 2019 10:54:07 +0200 In-Reply-To: <20190703131848.22879-1-shay.bar@celeno.com> (sfid-20190703_151855_846208_5223FFC3) References: <20190703131848.22879-1-shay.bar@celeno.com> (sfid-20190703_151855_846208_5223FFC3) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) 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 On Wed, 2019-07-03 at 16:18 +0300, Shay Bar wrote: > In case of HE AP-STA link, ieee80211_send_nullfunc() will not send the QOS NULL packet to check if AP is still associated. > In this case, probe_send_count will be non zero and ieee80211_sta_work() will later disassociate the AP. > (although it didn't really send a test QOS NULL packet). > Fix is to decrement probe_send_count and not call ieee80211_send_nullfunc() in case of HE link. > > Signed-off-by: Shay Bar > --- > Hope I solved all the SMTP server problems and patch is better now :) Yep, thanks. > if (ieee80211_hw_check(&sdata->local->hw, REPORTS_TX_ACK_STATUS)) { > ifmgd->nullfunc_failed = false; > - ieee80211_send_nullfunc(sdata->local, sdata, false); > + if (!(ifmgd->flags & IEEE80211_STA_DISABLE_HE)) > + ifmgd->probe_send_count--; > + else > + ieee80211_send_nullfunc(sdata->local, sdata, false); Not sure that makes sense though. Why go through all the motions of doing the counting and all, and the run_again() etc. when all that will happen is that we'll disconnect anyway? johannes