Patchwork hostapd: add set_40mhz cli

login
register
mail settings
Submitter Johannes Berg
Date Feb. 9, 2013, 12:15 a.m.
Message ID <1360368935.29851.42.camel@jlt4.sipsolutions.net>
Download mbox | patch
Permalink /patch/219351/
State Not Applicable
Headers show

Comments

Johannes Berg - Feb. 9, 2013, 12:15 a.m.
On Sat, 2013-02-09 at 01:12 +0100, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
> 
> 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

Patch

--- 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);