aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mwlwifi/patches/001-vendor_command_policy.patch
blob: 1f06d55fc8a12052086cac3bc672942d5054cb46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
mac80211 from kernel 5.3 and later checks the new policy attribute.

--- a/vendor_cmd.c
+++ b/vendor_cmd.c
@@ -92,12 +92,14 @@ static const struct wiphy_vendor_command
 			  .subcmd = MWL_VENDOR_CMD_SET_BF_TYPE},
 		.flags = WIPHY_VENDOR_CMD_NEED_NETDEV,
 		.doit = mwl_vendor_cmd_set_bf_type,
+		.policy = mwl_vendor_attr_policy,
 	},
 	{
 		.info = { .vendor_id = MRVL_OUI,
 			  .subcmd = MWL_VENDOR_CMD_GET_BF_TYPE},
 		.flags = WIPHY_VENDOR_CMD_NEED_NETDEV,
 		.doit = mwl_vendor_cmd_get_bf_type,
+		.policy = mwl_vendor_attr_policy,
 	}
 };