forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/ti/wlcore/vendor_cmd.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * This file is part of wlcore
34 *
45 * Copyright (C) 2014 Texas Instruments. All rights reserved.
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * version 2 as published by the Free Software Foundation.
96 */
107
118 #include <linux/pm_runtime.h>
....@@ -41,8 +38,8 @@
4138 if (!data)
4239 return -EINVAL;
4340
44
- ret = nla_parse(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len,
45
- wlcore_vendor_attr_policy, NULL);
41
+ ret = nla_parse_deprecated(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len,
42
+ wlcore_vendor_attr_policy, NULL);
4643 if (ret)
4744 return ret;
4845
....@@ -122,8 +119,8 @@
122119 if (!data)
123120 return -EINVAL;
124121
125
- ret = nla_parse(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len,
126
- wlcore_vendor_attr_policy, NULL);
122
+ ret = nla_parse_deprecated(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len,
123
+ wlcore_vendor_attr_policy, NULL);
127124 if (ret)
128125 return ret;
129126
....@@ -166,6 +163,7 @@
166163 .flags = WIPHY_VENDOR_CMD_NEED_NETDEV |
167164 WIPHY_VENDOR_CMD_NEED_RUNNING,
168165 .doit = wlcore_vendor_cmd_smart_config_start,
166
+ .policy = wlcore_vendor_attr_policy,
169167 },
170168 {
171169 .info = {
....@@ -175,6 +173,7 @@
175173 .flags = WIPHY_VENDOR_CMD_NEED_NETDEV |
176174 WIPHY_VENDOR_CMD_NEED_RUNNING,
177175 .doit = wlcore_vendor_cmd_smart_config_stop,
176
+ .policy = wlcore_vendor_attr_policy,
178177 },
179178 {
180179 .info = {
....@@ -184,6 +183,7 @@
184183 .flags = WIPHY_VENDOR_CMD_NEED_NETDEV |
185184 WIPHY_VENDOR_CMD_NEED_RUNNING,
186185 .doit = wlcore_vendor_cmd_smart_config_set_group_key,
186
+ .policy = wlcore_vendor_attr_policy,
187187 },
188188 };
189189