Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:60113 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750931Ab0EFFgF (ORCPT ); Thu, 6 May 2010 01:36:05 -0400 Subject: Re: [PATCH v2] cfg80211/mac80211: better channel handling From: Johannes Berg To: Benoit Papillault Cc: John Linville , linux-wireless In-Reply-To: <4BE1DBFE.2060909@free.fr> References: <1273055797.3728.14.camel@jlt3.sipsolutions.net> <1273061543.3728.16.camel@jlt3.sipsolutions.net> <1273065902.3728.17.camel@jlt3.sipsolutions.net> <4BE1DBFE.2060909@free.fr> Content-Type: text/plain; charset="UTF-8" Date: Thu, 06 May 2010 07:35:59 +0200 Message-ID: <1273124159.3573.7.camel@jlt3.sipsolutions.net> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, 2010-05-05 at 22:58 +0200, Benoit Papillault wrote: > Real hardware are not capable of listening on multiple channels (except > 2 ht20 channels in ht40 mode, maybe?). So I don't understand why we > should have a per-interface channel. > > I think we should either have two strategies : > > - "first one is the winner" : once a channel has been set, it cannot be > changed. For instance, if you create an AP interface (with hostapd) and > latter a STA interface, the STA interface can only scan on the channel > the AP is. That's what you get now. > - "last one is the winner" : in this case, the last call to set the > channel is always successful. Of course, this will change channel on > existing interfaces which might change their IE accordingly, through an > appropriate API. That's pretty much impossible to implement with the current split between user and kernel space. > I might be wrong, but I don't see this multi-channel usage... Say you have two stations associated to two different APs. They can powersave while they are on the channel for the other AP. It'll be done, rather soon, trust me :) johannes