Remove the not yet needed KEY_FLAG_MODIFY

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>
This commit is contained in:
Alexander Wetzel 2020-03-04 18:16:51 +01:00 committed by Jouni Malinen
parent 982b9cf029
commit 82eaa3e688
2 changed files with 0 additions and 10 deletions

View file

@ -431,7 +431,6 @@ enum chan_width {
}; };
enum key_flag { enum key_flag {
KEY_FLAG_MODIFY = BIT(0),
KEY_FLAG_DEFAULT = BIT(1), KEY_FLAG_DEFAULT = BIT(1),
KEY_FLAG_RX = BIT(2), KEY_FLAG_RX = BIT(2),
KEY_FLAG_TX = BIT(3), KEY_FLAG_TX = BIT(3),
@ -448,8 +447,6 @@ enum key_flag {
KEY_FLAG_DEFAULT, KEY_FLAG_DEFAULT,
KEY_FLAG_PAIRWISE_RX_TX = KEY_FLAG_PAIRWISE | KEY_FLAG_RX_TX, 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 = KEY_FLAG_PAIRWISE | KEY_FLAG_RX,
KEY_FLAG_PAIRWISE_RX_TX_MODIFY = KEY_FLAG_PAIRWISE_RX_TX |
KEY_FLAG_MODIFY,
}; };
enum ptk0_rekey_handling { enum ptk0_rekey_handling {

View file

@ -1609,10 +1609,6 @@ struct wpa_driver_set_key_params {
/** /**
* key_flag - Additional key flags * 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 * %KEY_FLAG_DEFAULT
* Set when the key is also a default key. Must not be set when * Set when the key is also a default key. Must not be set when
* deleting a key. * deleting a key.
@ -1641,9 +1637,6 @@ struct wpa_driver_set_key_params {
* %KEY_FLAG_PAIRWISE_RX * %KEY_FLAG_PAIRWISE_RX
* Pairwise key not yet valid for TX. (Only usable when Extended * Pairwise key not yet valid for TX. (Only usable when Extended
* Key ID is supported by the driver.) * 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 * Not a valid standalone key type but pre-defined to be combined
* with other key_flags: * with other key_flags: