qcacmn: Control the size of the freq and chan_num (QDF)
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. Change-Id: I6c8fb2a4dc117e2535ef96009362923557cee398 CRs-Fixed: 2570456
This commit is contained in:

committed by
nshrivas

parent
4715adc0f1
commit
a305445a5f
@@ -104,6 +104,15 @@ typedef void *qdf_pm_t;
|
|||||||
*/
|
*/
|
||||||
typedef void *qdf_handle_t;
|
typedef void *qdf_handle_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* typedef qdf_freq_t - define frequency as a 16 bit/32 bit
|
||||||
|
* unsigned integer depending on the requirement
|
||||||
|
*/
|
||||||
|
#ifdef CONFIG_16_BIT_FREQ_TYPE
|
||||||
|
typedef uint16_t qdf_freq_t;
|
||||||
|
#else
|
||||||
|
typedef uint32_t qdf_freq_t;
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* typedef qdf_device_t - Platform/bus generic handle.
|
* typedef qdf_device_t - Platform/bus generic handle.
|
||||||
* Used for bus specific functions.
|
* Used for bus specific functions.
|
||||||
|
Reference in New Issue
Block a user