Fix generating offloaded ACS channel list when hw_mode is set to any
authorPeng Xu <pxu@qca.qualcomm.com>
Sat, 20 Jun 2015 00:19:27 +0000 (17:19 -0700)
committerJouni Malinen <j@w1.fi>
Tue, 28 Jul 2015 20:22:24 +0000 (23:22 +0300)
commitd0cdccd30785b2471c632c341caef68ab1bc62db
treeac71eaf84eceebe3d45adca616457c445812b36a
parent844dfeb804af7e6934b5d8e5ffbe2e813dabff54
Fix generating offloaded ACS channel list when hw_mode is set to any

When ACS is offloaded to device driver and the hw_mode parameter is set
to any, the current_mode structure is NULL which fails the ACS command.
Fix this by populating the ACS channel list with channels from all bands
when current_mode is NULL.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ap_drv_ops.c
src/common/qca-vendor.h
src/drivers/driver.h
src/drivers/driver_nl80211.c