wl18xx: increase MAX_CHANNELS_5GHZ
Some regdomains have more than 23 valid 5ghz channels, so 18xx's MAX_CHANNELS_5GHZ was increased to 32. Since now we have different max 5ghz channels values for wl12xx and wl18xx, add a new wl->max_channels_5ghz field, and use it for scan channels configuration. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
This commit is contained in:

committed by
Luciano Coelho

parent
78e28062fe
commit
0a1c720c63
@@ -26,6 +26,8 @@
|
||||
#include "../wlcore/cmd.h"
|
||||
#include "../wlcore/scan.h"
|
||||
|
||||
#define WL12XX_MAX_CHANNELS_5GHZ 23
|
||||
|
||||
struct basic_scan_params {
|
||||
/* Scan option flags (WL1271_SCAN_OPT_*) */
|
||||
__le16 scan_options;
|
||||
@@ -107,7 +109,7 @@ struct wl1271_cmd_sched_scan_config {
|
||||
u8 role_id;
|
||||
u8 padding[1];
|
||||
struct conn_scan_ch_params channels_2[MAX_CHANNELS_2GHZ];
|
||||
struct conn_scan_ch_params channels_5[MAX_CHANNELS_5GHZ];
|
||||
struct conn_scan_ch_params channels_5[WL12XX_MAX_CHANNELS_5GHZ];
|
||||
struct conn_scan_ch_params channels_4[MAX_CHANNELS_4GHZ];
|
||||
} __packed;
|
||||
|
||||
|
Reference in New Issue
Block a user