Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2EE8C43382 for ; Wed, 26 Sep 2018 22:21:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9658E2154B for ; Wed, 26 Sep 2018 22:21:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9658E2154B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=candelatech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727268AbeI0Egc (ORCPT ); Thu, 27 Sep 2018 00:36:32 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:36076 "EHLO mail2.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbeI0Egc (ORCPT ); Thu, 27 Sep 2018 00:36:32 -0400 Received: from [192.168.100.149] (firewall.candelatech.com [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail2.candelatech.com (Postfix) with ESMTPSA id A204D40A955; Wed, 26 Sep 2018 15:21:23 -0700 (PDT) Subject: Re: How many null-data probes on connection loss? To: Johannes Berg , "linux-wireless@vger.kernel.org" References: <9a1447d9-9a61-dc2d-0101-33c6bdeb946f@candelatech.com> <1537951137.28767.5.camel@sipsolutions.net> <1537986415.28767.17.camel@sipsolutions.net> <7ed031b0-19d9-46db-33d9-082999e5ed22@candelatech.com> <1537987703.28767.22.camel@sipsolutions.net> From: Ben Greear Organization: Candela Technologies Message-ID: Date: Wed, 26 Sep 2018 15:21:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <1537987703.28767.22.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 09/26/2018 11:48 AM, Johannes Berg wrote: > On Wed, 2018-09-26 at 11:47 -0700, Ben Greear wrote: > >>>> I think I'll start by making sure the firmware does not do software retransmits >>>> for frames from the driver (self-gen frames are OK to be retransmitted I guess). >>> >>> You do want it to be doing retries for frames from the driver, since you >>> want it to recover from temporary collisions with a microwave and >>> whatnot ... just not *that many*, I guess. >> >> From what I can tell so far, my firmware has this sort of logic: >> >> frame from stack to the driver >> -> send to firmware >> -> in firmware, hardware will do up to X retries (maybe 16 or so, need to check) >> -> On failure, the firmware may re-queue the packet (firmware-software retry) >> -> back to hardware retries (~32 frames on air at this point) >> ... >> Eventually tx-fail notification is sent back to the driver one way or another. >> >> I am thinking it would be best to have the software retry in the firmware >> disabled. >> >> Then, when mac80211 sends a null-data frame, you would see at most about >> 16 of them on air, every 500ms or so until it recovers or considers the >> connection lost. > > Yes, that seems reasonable. In fact, I'd argue that such software-retry > should just be disabled completely - it's better to lose the occasional > frame than to keep using airtime for it forever ... > > Toke is probably getting nightmares reading this - sweet dreams ;-) I fixed the firmware.... Now only 4 retries per frame, but it seems mac80211 is all 5 of its null-data probes within a few miliseconds. Is that expected, or should there be a bit more pause between each of the probe requests to better weather periodic network glitches? Thanks, Ben > > johannes > -- Ben Greear Candela Technologies Inc http://www.candelatech.com