From patchwork Sat Feb 9 00:15:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 219351 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 214B72C007E for ; Sat, 9 Feb 2013 11:15:53 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 244F49D20F; Fri, 8 Feb 2013 19:15:51 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id akxeBJsSmgYm; Fri, 8 Feb 2013 19:15:50 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 02E8D9D214; Fri, 8 Feb 2013 19:15:46 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id A9B939D214 for ; Fri, 8 Feb 2013 19:15:44 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lehKs0KXhk0v for ; Fri, 8 Feb 2013 19:15:40 -0500 (EST) Received: from sipsolutions.net (he.sipsolutions.net [78.46.109.217]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 1E4399D20F for ; Fri, 8 Feb 2013 19:15:39 -0500 (EST) Received: by sipsolutions.net with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1U3y6U-0005uJ-Gj for hostap@lists.shmoo.com; Sat, 09 Feb 2013 01:15:38 +0100 Message-ID: <1360368935.29851.42.camel@jlt4.sipsolutions.net> Subject: Re: [PATCH] hostapd: add set_40mhz cli From: Johannes Berg To: hostap@lists.shmoo.com Date: Sat, 09 Feb 2013 01:15:35 +0100 In-Reply-To: <1360368724-27446-1-git-send-email-johannes@sipsolutions.net> References: <1360368724-27446-1-git-send-email-johannes@sipsolutions.net> X-Mailer: Evolution 3.6.1-1 Mime-Version: 1.0 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com On Sat, 2013-02-09 at 01:12 +0100, Johannes Berg wrote: > From: Johannes Berg > > I've been using this for testing the 20/40 changes in > mac80211... This is probably not all that useful for > most people, but maybe there could be a config option > that enables such testing features? > --- > hostapd/config_file.c | 1 + > hostapd/ctrl_iface.c | 33 +++++++++++++++++++++++++++++++++ > hostapd/hostapd_cli.c | 19 +++++++++++++++++++ > src/ap/ap_config.h | 2 +- This should probably also be there, otherwise we could enable 40 MHz after having configured the driver to a 20 MHz channel. I'm not sure we can even update channels on the fly in the kernel right now, I don't think we can. johannes --- a/src/ap/hw_features.c +++ b/src/ap/hw_features.c @@ -443,6 +443,7 @@ static void ieee80211n_check_scan(struct hostapd_iface *iface) iface->conf->channel + iface->conf->secondary_channel * 4); iface->conf->secondary_channel = 0; + iface->conf->orig_secondary_channel = 0; } res = ieee80211n_allowed_ht40_channel_pair(iface);