[OpenWrt-Devel] [PATCH] mac80211: add 'channel_list' option for channel list restriction
Felix Fietkau
nbd at openwrt.org
Wed Jan 13 04:37:21 EST 2016
On 2016-01-13 10:25, Leonardo Brondani Schenkel wrote:
> # HG changeset patch
> # User Leonardo Brondani Schenkel <leonardo at schenkel.net>
> # Date 1452674412 -3600
> # Wed Jan 13 09:40:12 2016 +0100
> # Node ID ec9c6531ce00d10f7fa0e947d65dfc1acdb09551
> # Parent 3b05804d46b9e73181278a407be5e9ac3c572941
> mac80211: add 'channel_list' option for channel list restriction
?
> This options allows restricting automatic channel scan to the provided list.
> It is equivalent to hostapd 'chanlist' parameter. Quoting hostapd.conf:
>
> # Channel list restriction. This option allows hostapd to select one of the
> # provided channels when a channel should be automatically selected.
> # Channel list can be provided as range using hyphen ('-') or individual
> # channels can be specified by space (' ') seperated values
> # Default: all channels allowed in selected hw_mode
> #chanlist=100 104 108 112 116
> #chanlist=1 6 11-13
>
> Signed-off-by: Leonardo Brondani Schenkel <leonardo at schenkel.net>
>
> diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
> --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
> +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
> @@ -17,6 +17,7 @@
> drv_mac80211_init_device_config() {
> hostapd_common_add_device_config
>
> + config_add_string channel_list
> config_add_string path phy 'macaddr:macaddr'
> config_add_string hwmode
> config_add_int beacon_int chanbw frag rts
> @@ -92,7 +93,7 @@
> [ "$auto_channel" -gt 0 ] && channel=acs_survey
> [ "$auto_channel" -gt 0 ] && json_get_values channel_list channels
>
> - json_get_vars noscan ht_coex
> + json_get_vars channel_list noscan ht_coex
> json_get_values ht_capab_list ht_capab
>
> ieee80211n=1
> @@ -305,6 +306,7 @@
> ${channel:+channel=$channel}
> ${channel_list:+chanlist=$channel_list}
> ${noscan:+noscan=$noscan}
> +${channel_list:+chanlist=$channel_list}
The feature is already implemented (see two lines above the one you
added here). This change is not necessary.
- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list