Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1429352ybt; Thu, 18 Jun 2020 08:29:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgH0bRaHqetWFN39GpO+AYYN1t5Sew5nZRpbuQE8PBMpObo1ttMqEMQ8nuyVqleZI95aRT X-Received: by 2002:a05:6402:228d:: with SMTP id cw13mr4864909edb.150.1592494143080; Thu, 18 Jun 2020 08:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592494143; cv=none; d=google.com; s=arc-20160816; b=zEZ3ve0/LRbTmSzgdyRS5cmbDnOSrnTO8QjRI4SclM71NoMjUP+fuiI4GnFlhilc5k 2BCd1eWeieb2iBqQa4X+O2yQqqr8sIyX0s6K/ngPB1QgU9t8VaXua+BqZPB9V8xWb+2/ u0UsbZUO3ZPPeelzu3gPcSgkVmObAxHP9BqfZnuuH4LFkwiWVrvFYDyOTgjtyNry1HxC nK/BsgGWv/Pr4Pgr1PrO/aYiEtiI0MgUdTHCPVGAmjdUqgaqY9UkcbejGBCL7ffOh9Or GJXXQXqCn0S6A4GOIVXF9yc2vgxGp1Lh7AgdSDlq0h1cChZxd4Stdzd76WXR9HCl61tx JuqA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:dkim-filter; bh=rZG3pwstFkU70NSe39g0jC33/B/E+NH+PLHuSy/DsmI=; b=ztWKrWQ3dNFwgQt/9B6dHphl9bDypVJqbHmQfZVKOycRjRSsWTifCgM6JahKsdcTBY 2xF4U9vCXSACfvfsZA/Mr31zY06wXG1BYBxiMEg9+Wpv77woheD3SIV8WC1emkRM7zPY C2q+gh78s/ms97m8GRJHopgH4MTKEIsV/OWFQpq+pkImAS6Dc80R5KUeZDz4zBKJJdoC p78heKxXt0g9BpSXv4rryXFRra/nfLfZ/HtCAkdXFuf6m/8/n/PvsjnhiAYORNww51nj vw0Nyw60YLoly5IEC1TT5u6Tbsk4uVi08fo9Eekf3nG2pT1LHdWODWaN1ko8EEB9HKRV U1dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=JeAhkmbe; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id z22si2206796ejr.510.2020.06.18.08.28.30; Thu, 18 Jun 2020 08:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=JeAhkmbe; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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 S1731398AbgFRP0x (ORCPT + 99 others); Thu, 18 Jun 2020 11:26:53 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:57866 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727841AbgFRP0w (ORCPT ); Thu, 18 Jun 2020 11:26:52 -0400 Received: from [192.168.254.4] (unknown [50.34.202.127]) (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 9751213C2B4; Thu, 18 Jun 2020 08:26:51 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 9751213C2B4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1592494012; bh=DZaRzfO/rybgitUzzWdWjM+GhqQDjvU0Jix7PYAobCs=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=JeAhkmbeOnjMBkEXzXGWdZQfN4pMCOsOYUTP0mRuhBxoN365uFysix9WVvqAtlILM DtTdh7lNgRqOQ2/Mhb3BrOLXW29WjGOQrRCoOgFI49mlJweal8vvRQvgAm9JHxRIl5 DDPbgNetnW3WGF+xFELr5UDz0j9AUdHPFKLgQEvM= Subject: Re: [PATCH] mac80211: Send deauth to STA's upon AP stop To: Johannes Berg , Shay Bar References: <20200618093609.16514-1-shay.bar@celeno.com> <2a7b33ace030fdeda96e60b2abd6c70a11f426e0.camel@sipsolutions.net> <54236bdd708c53ec2f2a776bb3badcd77c7fecc6.camel@sipsolutions.net> <6da8757ac90a4d34ed1bdc7c84b40aac06c01af9.camel@sipsolutions.net> Cc: "linux-wireless@vger.kernel.org" From: Ben Greear Message-ID: Date: Thu, 18 Jun 2020 08:26:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <6da8757ac90a4d34ed1bdc7c84b40aac06c01af9.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 06/18/2020 07:48 AM, Johannes Berg wrote: > On Thu, 2020-06-18 at 14:45 +0000, Shay Bar wrote: >>> So... why would you ever do that? :) >>> johannes >> >> :) >> Is it illegal to do "ifconfig down" or kill hostapd >> while STA's are still associated? >> There are some vendors/users that are doing that. > > It's not really *illegal* per se, but it would be weird if both did it > ... But I do tend to think that if you're using hostapd or such to > control it, you shouldn't do another out-of-band control. > >> Regarding Ben's proposal of using 11k/v, I couldn’t find such >> "going down" single frame in the standard (although sounds trivial) > > Broadcast deauth :) Or use k/v to tell STA that AP is going down immediately and here is (null, likely) list of APs to associate with instead? Another thing I notice: In order to keep things from blocking for long periods (3+ seconds) with rtnl held, I ended up doing a force flush in ath10k-ct, so at least when using that driver, sending frames and then immediately doing flush will likely not put much on air. I have hoped to one day add tx-completion call-backs handling to mac80211 instead of just calling a flush for these types of station-down communication where flush is to be called shortly. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com