qcacmn: define VENDOR_NLA_POLICY_NESTED_ARRAY for nested array policy

To enable support for nested array policy, define macro
VENDOR_NLA_POLICY_NESTED_ARRAY to take care of the version
compatibility.

Change-Id: I2d9e3079c0a6b34c61767ec50b0c404beb3240df
CRs-Fixed: 3596074
このコミットが含まれているのは:
Yu Wang
2023-09-04 19:08:58 -07:00
committed by Rahul Choudhary
コミット e60052bdcd

ファイルの表示

@@ -361,9 +361,13 @@ nla_fail:
.maxattr = __maxattr .maxattr = __maxattr
#define VENDOR_NLA_POLICY_NESTED(__policy) \ #define VENDOR_NLA_POLICY_NESTED(__policy) \
NLA_POLICY_NESTED(__policy) NLA_POLICY_NESTED(__policy)
#define VENDOR_NLA_POLICY_NESTED_ARRAY(__policy) \
NLA_POLICY_NESTED_ARRAY(__policy)
#else #else
#define vendor_command_policy(__policy, __maxattr) #define vendor_command_policy(__policy, __maxattr)
#define VENDOR_NLA_POLICY_NESTED(__policy) {.type = NLA_NESTED} #define VENDOR_NLA_POLICY_NESTED(__policy) {.type = NLA_NESTED}
#define VENDOR_NLA_POLICY_NESTED_ARRAY(__policy) \
VENDOR_NLA_POLICY_NESTED(__policy)
#endif /*End of (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0) */ #endif /*End of (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0) */
/* For kernel version <= 4.20, driver needs to provide policy */ /* For kernel version <= 4.20, driver needs to provide policy */