|
@@ -749,7 +749,7 @@ void hdd_wlan_get_version(hdd_context_t *hdd_ctx, union iwreq_data *wrqu,
|
|
|
tSirVersionString wcnss_sw_version;
|
|
|
const char *swversion;
|
|
|
const char *hwversion;
|
|
|
- uint32_t msp_id = 0, mspid = 0, siid = 0, crmid = 0;
|
|
|
+ uint32_t msp_id = 0, mspid = 0, siid = 0, crmid = 0, sub_id = 0;
|
|
|
|
|
|
if (!hdd_ctx) {
|
|
|
hdd_err("Invalid context, HDD context is null");
|
|
@@ -764,19 +764,21 @@ void hdd_wlan_get_version(hdd_context_t *hdd_ctx, union iwreq_data *wrqu,
|
|
|
mspid = (hdd_ctx->target_fw_version & 0xf000000) >> 24;
|
|
|
siid = (hdd_ctx->target_fw_version & 0xf00000) >> 20;
|
|
|
crmid = hdd_ctx->target_fw_version & 0x7fff;
|
|
|
+ sub_id = (hdd_ctx->target_fw_vers_ext & 0xf0000000) >> 28;
|
|
|
|
|
|
hwversion = hdd_ctx->target_hw_name;
|
|
|
|
|
|
if (wrqu && extra) {
|
|
|
wrqu->data.length =
|
|
|
scnprintf(extra, WE_MAX_STR_LEN,
|
|
|
- "Host SW:%s, FW:%d.%d.%d.%d, HW:%s",
|
|
|
+ "Host SW:%s, FW:%d.%d.%d.%d.%d, HW:%s",
|
|
|
QWLAN_VERSIONSTR,
|
|
|
- msp_id, mspid, siid, crmid, hwversion);
|
|
|
+ msp_id, mspid, siid, crmid,
|
|
|
+ sub_id, hwversion);
|
|
|
} else {
|
|
|
- pr_info("Host SW:%s, FW:%d.%d.%d.%d, HW:%s\n",
|
|
|
+ pr_info("Host SW:%s, FW:%d.%d.%d.%d.%d, HW:%s\n",
|
|
|
QWLAN_VERSIONSTR,
|
|
|
- msp_id, mspid, siid, crmid, hwversion);
|
|
|
+ msp_id, mspid, siid, crmid, sub_id, hwversion);
|
|
|
}
|
|
|
error:
|
|
|
return;
|