mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-15 13:48:17 +00:00
wifi_drv: enable soft RFKILL and new front end
* TODO
This commit is contained in:
committed by
Christian Helmuth
parent
4a47b7cb41
commit
ec9e8ecfaa
22
repos/dde_linux/patches/wifi_rfkill.patch
Normal file
22
repos/dde_linux/patches/wifi_rfkill.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- a/net/rfkill/core.c
|
||||
+++ b/net/rfkill/core.c
|
||||
@@ -911,6 +911,19 @@ bool rfkill_blocked(struct rfkill *rfkill)
|
||||
}
|
||||
EXPORT_SYMBOL(rfkill_blocked);
|
||||
|
||||
+bool rfkill_get_any(enum rfkill_type type)
|
||||
+{
|
||||
+ bool blocked = false;
|
||||
+
|
||||
+ struct rfkill *rfkill;
|
||||
+ list_for_each_entry(rfkill, &rfkill_list, node) {
|
||||
+ if (rfkill->type != type && type != RFKILL_TYPE_ALL)
|
||||
+ continue;
|
||||
+
|
||||
+ blocked |= rfkill_blocked(rfkill);
|
||||
+ }
|
||||
+ return blocked;
|
||||
+}
|
||||
|
||||
struct rfkill * __must_check rfkill_alloc(const char *name,
|
||||
struct device *parent,
|
Reference in New Issue
Block a user