qcacld-3.0: Return valid firmware version to upper layer
When upper layer requests for firmware version using vendor command,
QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO, after parsing vendor command
attributes to tb_vendor structure, Host is checking for DRIVER version
attribute(which will be invalid in case upper layer sends Firmware
version attribute) leading Host to send firmware version as NULL.
Check for firmware version attribute so that valid firmware version
is returned to upper layer.
Change-Id: I9da24e4b860e5da9ef5c7b7ecff6e67d272a66fc
CRs-Fixed: 1078012
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index c01fee7..c9f180b 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -3599,7 +3599,7 @@
goto error_nla_fail;
}
- if (tb_vendor[QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION]) {
+ if (tb_vendor[QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION]) {
if (nla_put_string(reply_skb,
QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION,
firmware_version))