소스 검색

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
Alan Chen 5 년 전
부모
커밋
31f4e86ecb
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 1
      os_if/linux/spectral/inc/wlan_cfg80211_spectral.h
  2. 1 1
      os_if/linux/spectral/src/wlan_cfg80211_spectral.c

+ 5 - 1
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 <spectral_ioctl.h>
 #include <wlan_spectral_public_structs.h>
 
+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))

+ 1 - 1
os_if/linux/spectral/src/wlan_cfg80211_spectral.c

@@ -32,7 +32,7 @@
 #include <wlan_cfg80211_spectral.h>
 #include <spectral_ioctl.h>
 
-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},