Browse Source

qcacld-3.0: Increase FW version sub ID to 7-bits

Currently FW version sub ID is defined as 4-bits. But with new
requirement, the FW version sub ID value can vary up to 99.
To accommodate all possible values, increase number of bits to 7
for FW version sub ID.

Change-Id: I033697ba65d52b976658d795092fbff3b40faf9c
CRs-Fixed: 3067649
Bapiraju Alla 3 years ago
parent
commit
440f1856e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
core/hdd/src/wlan_hdd_main.c

@@ -318,7 +318,7 @@ static qdf_wake_lock_t wlan_wake_lock;
 #define HDD_FW_VER_SIID(tgt_fw_ver)           ((tgt_fw_ver & 0xf00000) >> 20)
 #define HDD_FW_VER_CRM_ID(tgt_fw_ver)         (tgt_fw_ver & 0x7fff)
 #define HDD_FW_VER_SUB_ID(tgt_fw_ver_ext) \
-((tgt_fw_ver_ext & 0xf0000000) >> 28)
+(((tgt_fw_ver_ext & 0x1c00) >> 6) | ((tgt_fw_ver_ext & 0xf0000000) >> 28))
 #define HDD_FW_VER_REL_ID(tgt_fw_ver_ext) \
 ((tgt_fw_ver_ext &  0xf800000) >> 23)