[PATCH] hostapd: add set_40mhz cli

Johannes Berg johannes
Fri Feb 8 16:15:35 PST 2013


On Sat, 2013-02-09 at 01:12 +0100, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg at 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.

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


johannes




More information about the Hostap mailing list