]> git.ipfire.org Git - thirdparty/hostap.git/commit
ACS: Remove redundant ch_list parameters from do_acs interface
authorAnkita Bajaj <bankita@codeaurora.org>
Tue, 19 Nov 2019 13:11:34 +0000 (18:41 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 5 Dec 2019 16:02:34 +0000 (18:02 +0200)
commite86ba912aa885663bcec407bcfed22ff75c2476b
tree9bbb6a74ce7dedcd4bce6ae727aa1937b11657c3
parent3cf360b8e24b7056fda31a7d80a0a0981085b048
ACS: Remove redundant ch_list parameters from do_acs interface

Clean up do_acs interface to not pass ch_list to drivers as the same
information is available in freq_list. The channel numbers are
duplicated between 2.4 GHz and 5 GHz bands and the 6 GHz band. So, use
the QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST to populate only 2.4 GHz and 5 GHz
channels to ensure backwards compatibility with old drivers which do not
have support to decode the newer QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST
attribute.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/ap_drv_ops.c
src/drivers/driver.h
src/drivers/driver_nl80211.c