Michal Kazior c94aa7ef46 ath10k: fix survey reporting
Number of channels is stored in a separate macro
in a header file and channel list is constructed
independently. The macro is used to define survey
array.

This fixes a recent regression introduced after
adding support for 144 channel. The regression
would lead to a warning and incomplete survey data
on channel 165:

  chan info: invalid frequency 5825 (idx 38 out of bounds)

Also make sure to enforce the sizes and avoid this
kind of problem in the future.

Fixes: 4a7898fed5f3 ("ath10k: enable channel 144 on 5GHz band")
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2015-04-01 20:20:16 +03:00
..
2014-04-09 10:55:29 +02:00
2015-04-01 20:20:16 +03:00
2015-01-23 19:12:12 +02:00
2015-03-30 10:07:12 +03:00
2015-02-03 15:31:04 +02:00
2014-10-02 14:23:14 -04:00
2014-10-07 14:48:37 -04:00
2014-10-02 14:23:14 -04:00
2014-10-02 14:23:14 -04:00
2014-10-02 14:23:14 -04:00