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

Commit 74a82d40 authored by Lior David's avatar Lior David
Browse files

wil6210: send uevent when creating sysfs files



Send a KOBJ_CHANGE uevent when creating the wil6210 sysfs directory.
This is mainly needed so selinux policy rules will be applied when
the wil6210 module is dynamically loaded.

Change-Id: I4220c551b8792d419db7a380b16f3c87204be22a
Signed-off-by: default avatarLior David <liord@codeaurora.org>
Signed-off-by: default avatarAlexei Avshalom Lazar <ailizaro@codeaurora.org>
parent dbc185de
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -276,6 +276,8 @@ int wil6210_sysfs_init(struct wil6210_priv *wil)
		return err;
	}

	kobject_uevent(&dev->kobj, KOBJ_CHANGE);

	return 0;
}

@@ -284,4 +286,5 @@ void wil6210_sysfs_remove(struct wil6210_priv *wil)
	struct device *dev = wil_to_dev(wil);

	sysfs_remove_group(&dev->kobj, &wil6210_attribute_group);
	kobject_uevent(&dev->kobj, KOBJ_CHANGE);
}