From 31f4e86ecb7551696255c289a9fac20ef1f5b5cb Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Tue, 3 Mar 2020 11:45:39 -0800 Subject: [PATCH] qcacmn: Remove static from nla_policy spectral_scan_policy Remove static from nla_policy spectral_scan_policy in correspondence to the change to add policy attribute to SPECTRAL_SCAN vendor subcommand. Change-Id: I764a51f5c1355cb0c3dd2096e6dc7ee332b2f3d6 CRs-Fixed: 2634075 --- os_if/linux/spectral/inc/wlan_cfg80211_spectral.h | 6 +++++- os_if/linux/spectral/src/wlan_cfg80211_spectral.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/os_if/linux/spectral/inc/wlan_cfg80211_spectral.h b/os_if/linux/spectral/inc/wlan_cfg80211_spectral.h index ec5081c1ea50..fc04f58c4fc6 100644 --- a/os_if/linux/spectral/inc/wlan_cfg80211_spectral.h +++ b/os_if/linux/spectral/inc/wlan_cfg80211_spectral.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2017, 2019-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -32,6 +32,10 @@ #include #include +extern const struct nla_policy + spectral_scan_policy + [QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX + 1]; + #define CONFIG_REQUESTED(type) ((type == \ QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG) || \ (type == QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG)) diff --git a/os_if/linux/spectral/src/wlan_cfg80211_spectral.c b/os_if/linux/spectral/src/wlan_cfg80211_spectral.c index b45efef147a7..1e41fd81b5da 100644 --- a/os_if/linux/spectral/src/wlan_cfg80211_spectral.c +++ b/os_if/linux/spectral/src/wlan_cfg80211_spectral.c @@ -32,7 +32,7 @@ #include #include -static const struct nla_policy spectral_scan_policy[ +const struct nla_policy spectral_scan_policy[ QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX + 1] = { [QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT] = { .type = NLA_U32},