]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.phy
wireless-ap: Automatically enable all supported ciphers
[people/stevee/network.git] / src / functions / functions.phy
index 120117ccf6040cddc2c879ae395000016ff90106..c06389c8cc5e166bc47c8f136b1d1cd67a7d4191 100644 (file)
@@ -208,6 +208,23 @@ phy_supports_channel() {
        return ${EXIT_FALSE}
 }
 
+phy_list_ciphers() {
+       local phy="${1}"
+       assert isset phy
+
+       network-phy-list-ciphers "${phy}"
+}
+
+phy_supports_cipher() {
+       local phy="${1}"
+       assert isset phy
+
+       local cipher="${2}"
+       assert isset cipher
+
+       list_match "${cipher}" $(phy_list_ciphers "${phy}")
+}
+
 __phy_list_ht_capabilities() {
        local phy="${1}"
        assert isset phy