Return-path: Received: from emh03.mail.saunalahti.fi ([62.142.5.109]:41834 "EHLO emh03.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbaAXHoU (ORCPT ); Fri, 24 Jan 2014 02:44:20 -0500 Message-ID: <1390549457.19968.8.camel@porter.coelho.fi> (sfid-20140124_084423_143752_C94110B1) Subject: Re: [PATCH 5/7] mac80211: improve CSA locking From: Luca Coelho To: Michal Kazior Cc: Johannes Berg , linux-wireless , "Otcheretianski, Andrei" Date: Fri, 24 Jan 2014 09:44:17 +0200 In-Reply-To: References: <1390227670-19030-1-git-send-email-michal.kazior@tieto.com> <1390227670-19030-6-git-send-email-michal.kazior@tieto.com> <1390316761.6199.27.camel@jlt4.sipsolutions.net> <1390380726.4334.4.camel@jlt4.sipsolutions.net> <1390382020.4334.17.camel@jlt4.sipsolutions.net> <1390385995.4334.27.camel@jlt4.sipsolutions.net> <1390394166.4189.28.camel@porter.coelho.fi> <1390403432.4334.33.camel@jlt4.sipsolutions.net> <1390403634.4189.39.camel@porter.coelho.fi> <1390458664.4189.48.camel@porter.coelho.fi> <1390462306.4189.56.camel@porter.coelho.fi> <1390478961.4142.12.camel@jlt4.sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 2014-01-23 at 13:41 +0100, Michal Kazior wrote: > On 23 January 2014 13:09, Johannes Berg wrote: > > On Thu, 2014-01-23 at 08:57 +0100, Michal Kazior wrote: > > > >> This is actually the tricky part. How do you automatically switch an > >> AP interface? You should be able to at least generate CSA IE - true - > >> but what about beacon after CSA? You need to update HT IE and VHT IE > >> at least. > >> > >> Perhaps we could split CSA into two parts somehow and make it more > >> userspace coordinated. The first part of CSA - announcing it, is > >> trivial and can actually be done entirely within mac80211 if I'm not > >> mistaken. What needs userspace input is what happens after the > >> announcement. This would mean that there is a possible time gap > >> between announcement being completed and the actual channel switch & > >> operation resuming. > > > > I believe that even announcing it isn't necessarily possible without > > userspace involvement, particularly for things like 11ac's channel > > switch wrapper IE and/or operating class changes. > > Aww, too bad then. > > But splitting would still be useful (at least in some sense) if you > consider CSA to "usable" DFS channels. I don't like the split idea that much. If we send the CS announcement automatically but the userspace never reacts to our indication, we will be stuck in the middle of the channel switch... -- Luca.