Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef672f52 authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

cnss_genl: Use new structure for genl



There's a structure change in genl family and genl operations.
Adjust cnss_genl driver according to the new structure.

Change-Id: I8632b9f622898be2b51e144f6af5cadeef24efca
CRs-Fixed: 2555300
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent 5e336640
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -81,6 +81,7 @@ static struct genl_family cld80211_fam __ro_after_init = {
	.hdrsize = 0,			/* no private header */
	.version = 1,			/* no particular meaning now */
	.maxattr = CLD80211_ATTR_MAX,
	.policy = cld80211_policy,
	.netnsok = true,
	.pre_doit = cld80211_pre_doit,
	.post_doit = NULL,
@@ -166,7 +167,6 @@ static int __cld80211_init(void)
		nl_ops[i].cmd = i + 1;
		nl_ops[i].doit = cld80211_doit;
		nl_ops[i].flags = GENL_ADMIN_PERM;
		nl_ops[i].policy = cld80211_policy;
	}

	err = genl_register_family(&cld80211_fam);