qcacmn: Control the size of the freq and chan_num (Scan)

Depending on the requirement, a bigger size or a smaller size for
the frequency variable can be chosen. The advantages of each size
are described below:-

Advantage of a bigger size:
When two technologies (e.g. 802.11AX and 802.11AD ) are controlled
by the same driver software, the frequency range may be very large
and a bigger size (e.g. 32bit integer) is more appropriate.

Advantage of a smaller size: When the frequency range is not very
large, a smaller size(e.g. 16bit integer) can be used. It saves a
large amount of space especially when many large arrays containing
elements of this type/size are defined in the driver.

Also, change the size of the IEEE channel variables to unsigned
8-bit integer.

Change-Id: Ie503623ec6e4473abe8ee95c19dc4470853326dd
CRs-Fixed: 2586177
Bu işleme şunda yer alıyor:
Abhijit Pradhan
2019-11-25 14:07:17 +05:30
işlemeyi yapan: nshrivas
ebeveyn 2c1420a617
işleme 0f16cba633
2 değiştirilmiş dosya ile 5 ekleme ve 5 silme

Dosyayı Görüntüle

@@ -810,7 +810,7 @@ struct probe_req_whitelist_attr {
* @phymode: phymode in which @frequency should be scanned
*/
struct chan_info {
uint32_t freq;
qdf_freq_t freq;
uint32_t phymode;
};
@@ -821,7 +821,7 @@ struct chan_info {
* @chan: channel parameters used for this scan
*/
struct chan_list {
uint32_t num_chan;
uint8_t num_chan;
struct chan_info chan[NUM_CHANNELS];
};