Skip to content

Commit

Permalink
mac80211: allow ACS restriction with fixed channel
Browse files Browse the repository at this point in the history
This can be useful when a DFS channel is configured, as the ACS channel
list is taken into account when switching channels after a radar event.
For example, this allows to prevent the SRD channels from being used in
that case.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
[reorder structure]
Signed-off-by: David Bauer <mail@david-bauer.net>
  • Loading branch information
janh authored and blocktrron committed Jul 6, 2020
1 parent 2d37870 commit dfe0bc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ mac80211_hostapd_setup_base() {
json_select config

[ "$auto_channel" -gt 0 ] && channel=acs_survey
[ "$auto_channel" -gt 0 ] && json_get_values channel_list channels

[ "$auto_channel" -gt 0 ] && json_get_vars acs_exclude_dfs
[ -n "$acs_exclude_dfs" ] && [ "$acs_exclude_dfs" -gt 0 ] &&
append base_cfg "acs_exclude_dfs=1" "$N"

json_get_vars noscan ht_coex
json_get_values ht_capab_list ht_capab tx_burst
json_get_values channel_list channels

set_default noscan 0

Expand Down

0 comments on commit dfe0bc8

Please sign in to comment.