From 2afe8e48fdf99b3263a5d68bf3128c84c645c1e2 Mon Sep 17 00:00:00 2001 From: Edayilliam Jayadev Date: Wed, 9 Oct 2019 15:59:42 +0530 Subject: [PATCH] qcacmn: Populate aSpectral capability based on BW Some chipsets don't have the capability to run agile Spectral with 160/80p80 modes. For this populate separate agile Spectral capability for 160 MHz, 80p80 and non 160 MHz modes. CRs-Fixed: 2549664 Change-Id: I7ae961d3f2bba33d1d3f73679f162823d54b6717 --- .../spectral/src/wlan_cfg80211_spectral.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/os_if/linux/spectral/src/wlan_cfg80211_spectral.c b/os_if/linux/spectral/src/wlan_cfg80211_spectral.c index 9d462fca25..a5fefde940 100644 --- a/os_if/linux/spectral/src/wlan_cfg80211_spectral.c +++ b/os_if/linux/spectral/src/wlan_cfg80211_spectral.c @@ -694,6 +694,25 @@ int wlan_cfg80211_spectral_scan_get_cap(struct wiphy *wiphy, if (ret) goto fail; } + + if (scaps->agile_spectral_cap_160) { + int ret; + + ret = nla_put_flag + (skb, + QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160); + if (ret) + goto fail; + } + if (scaps->agile_spectral_cap_80p80) { + int ret; + + ret = nla_put_flag + (skb, + QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80); + if (ret) + goto fail; + } qal_devcfg_send_response((qdf_nbuf_t)skb); return 0;