From patchwork Sat Feb 9 00:15:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: hostapd: add set_40mhz cli Date: Fri, 08 Feb 2013 14:15:35 -0000 From: Johannes Berg X-Patchwork-Id: 219351 Message-Id: <1360368935.29851.42.camel@jlt4.sipsolutions.net> To: hostap@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);