wifi_drv: enable soft RFKILL and new front end

* TODO
This commit is contained in:
Josef Söntgen
2018-07-04 17:13:16 +02:00
committed by Christian Helmuth
parent 4a47b7cb41
commit ec9e8ecfaa
35 changed files with 2545 additions and 669 deletions

View 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,