From 083e86574ef414c2fcb288217b5c19b9ff5436e8 Mon Sep 17 00:00:00 2001 From: Ahmad Masri Date: Wed, 8 Jan 2020 19:31:09 +0200 Subject: [PATCH] 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 --- drivers/net/wireless/ath/wil6210/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c index 3c3844877c87..7f7bd838ce89 100644 --- a/drivers/net/wireless/ath/wil6210/cfg80211.c +++ b/drivers/net/wireless/ath/wil6210/cfg80211.c @@ -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 }, };