guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#36141] [PATCH] installer: Unblock relevant rfkill switches.


From: Tobias Geerinckx-Rice
Subject: [bug#36141] [PATCH] installer: Unblock relevant rfkill switches.
Date: Sat, 08 Jun 2019 20:14:40 +0200

Oh…

Tobias Geerinckx-Rice wrote:
+         (connman-rfkill-types `(("bluetooth" . "bluetooth")
+                                 ("wifi" . "wlan")))
+         (rfkill-type (assoc-ref connman-rfkill-types type)))

Turns out that util-linux allows ‘wifi’ as a special alias for ‘wlan’:

 // only result for ‘grep -riw wifi’:
 static const struct rfkill_type_str rfkill_type_strings[] = {
   { .type = RFKILL_TYPE_ALL,       .name = "all"  },
   { .type = RFKILL_TYPE_WLAN,      .name = "wlan",
     .desc = "Wireless LAN" },
   { .type = RFKILL_TYPE_WLAN,      .name = "wifi" }, /* alias */

…so we could drop connman-rfkill-types completely and rely on that (undocumented!) quirk.

Of course I don't believe we should, but now you know as much as I do :-)

Kind regards,

T G-R

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]