]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove the not yet needed KEY_FLAG_MODIFY
authorAlexander Wetzel <alexander@wetzel-home.de>
Wed, 4 Mar 2020 17:16:51 +0000 (18:16 +0100)
committerJouni Malinen <j@w1.fi>
Wed, 4 Mar 2020 22:17:23 +0000 (00:17 +0200)
I decided to drop KEY_FLAG_MODIFY instead of allowing flag combinations not
yet used in the code and will simply recreate it with the Extended Key
ID patches once we get there. For that reason I also did not renumber
the flags.

Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
src/common/defs.h
src/drivers/driver.h

index 6358c3158022724af53afa15534c57d10b66d1bf..66c9b1f840b853f7aef044b2dbb496becb95464f 100644 (file)
@@ -431,7 +431,6 @@ enum chan_width {
 };
 
 enum key_flag {
-       KEY_FLAG_MODIFY                 = BIT(0),
        KEY_FLAG_DEFAULT                = BIT(1),
        KEY_FLAG_RX                     = BIT(2),
        KEY_FLAG_TX                     = BIT(3),
@@ -448,8 +447,6 @@ enum key_flag {
                                          KEY_FLAG_DEFAULT,
        KEY_FLAG_PAIRWISE_RX_TX         = KEY_FLAG_PAIRWISE | KEY_FLAG_RX_TX,
        KEY_FLAG_PAIRWISE_RX            = KEY_FLAG_PAIRWISE | KEY_FLAG_RX,
-       KEY_FLAG_PAIRWISE_RX_TX_MODIFY  = KEY_FLAG_PAIRWISE_RX_TX |
-                                         KEY_FLAG_MODIFY,
 };
 
 enum ptk0_rekey_handling {
index bb187b8bf0e7a01884eaafa586aa390b4d1b68e2..04a453ea8439276196915e50ddce796962f6dbe8 100644 (file)
@@ -1609,10 +1609,6 @@ struct wpa_driver_set_key_params {
        /**
         * key_flag - Additional key flags
         *
-        * %KEY_FLAG_MODIFY
-        *  Set when an already installed key must be updated.
-        *  So far the only use-case is changing RX/TX status of
-        *  installed keys. Must not be set when deleting a key.
         * %KEY_FLAG_DEFAULT
         *  Set when the key is also a default key. Must not be set when
         *  deleting a key.
@@ -1641,9 +1637,6 @@ struct wpa_driver_set_key_params {
         * %KEY_FLAG_PAIRWISE_RX
         *  Pairwise key not yet valid for TX. (Only usable when Extended
         *  Key ID is supported by the driver.)
-        * %KEY_FLAG_PAIRWISE_RX_TX_MODIFY
-        *  Enable TX for a pairwise key installed with
-        *  KEY_FLAG_PAIRWISE_RX.
         *
         * Not a valid standalone key type but pre-defined to be combined
         * with other key_flags: