| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * This file is part of wlcore |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | |
|---|
| 11 | 8 | #include <linux/pm_runtime.h> |
|---|
| .. | .. |
|---|
| 41 | 38 | if (!data) |
|---|
| 42 | 39 | return -EINVAL; |
|---|
| 43 | 40 | |
|---|
| 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); |
|---|
| 46 | 43 | if (ret) |
|---|
| 47 | 44 | return ret; |
|---|
| 48 | 45 | |
|---|
| .. | .. |
|---|
| 122 | 119 | if (!data) |
|---|
| 123 | 120 | return -EINVAL; |
|---|
| 124 | 121 | |
|---|
| 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); |
|---|
| 127 | 124 | if (ret) |
|---|
| 128 | 125 | return ret; |
|---|
| 129 | 126 | |
|---|
| .. | .. |
|---|
| 166 | 163 | .flags = WIPHY_VENDOR_CMD_NEED_NETDEV | |
|---|
| 167 | 164 | WIPHY_VENDOR_CMD_NEED_RUNNING, |
|---|
| 168 | 165 | .doit = wlcore_vendor_cmd_smart_config_start, |
|---|
| 166 | + .policy = wlcore_vendor_attr_policy, |
|---|
| 169 | 167 | }, |
|---|
| 170 | 168 | { |
|---|
| 171 | 169 | .info = { |
|---|
| .. | .. |
|---|
| 175 | 173 | .flags = WIPHY_VENDOR_CMD_NEED_NETDEV | |
|---|
| 176 | 174 | WIPHY_VENDOR_CMD_NEED_RUNNING, |
|---|
| 177 | 175 | .doit = wlcore_vendor_cmd_smart_config_stop, |
|---|
| 176 | + .policy = wlcore_vendor_attr_policy, |
|---|
| 178 | 177 | }, |
|---|
| 179 | 178 | { |
|---|
| 180 | 179 | .info = { |
|---|
| .. | .. |
|---|
| 184 | 183 | .flags = WIPHY_VENDOR_CMD_NEED_NETDEV | |
|---|
| 185 | 184 | WIPHY_VENDOR_CMD_NEED_RUNNING, |
|---|
| 186 | 185 | .doit = wlcore_vendor_cmd_smart_config_set_group_key, |
|---|
| 186 | + .policy = wlcore_vendor_attr_policy, |
|---|
| 187 | 187 | }, |
|---|
| 188 | 188 | }; |
|---|
| 189 | 189 | |
|---|