wil6210: fix vendor command policy for vendor unspec commands

change the policy field in the vendor commands for
QCA_NL80211_VENDOR_SUBCMD_UNSPEC to be VENDOR_CMD_RAW_DATA.

This is a workaround for kernel 5.4 policy checks.
A complete solution for all vendor command policies will be submitted
later.

Change-Id: I889c86984a4835fed9bd96d487641fc5f4081faf
Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
This commit is contained in:
Ahmad Masri 2020-01-08 19:31:09 +02:00 • committed by Alexei Avshalom Lazar
commit 083e86574e

View file

@ -452,7 +452,7 @@ static const struct wiphy_vendor_command wil_nl80211_vendor_commands[] = {
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_UNSPEC,
.flags = WIPHY_VENDOR_CMD_NEED_WDEV |
WIPHY_VENDOR_CMD_NEED_NETDEV,
.policy = wil_nl_60g_policy,
.policy = VENDOR_CMD_RAW_DATA,
.doit = wil_nl_60g_handle_cmd
},
};