mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
privsep: Add key_flag to set_key()
Pass through the new key_flag to wpa_priv. Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
This commit is contained in:
parent
852d370f65
commit
c1a6b1e47e
@ -82,6 +82,7 @@ struct privsep_cmd_set_key {
|
|||||||
size_t seq_len;
|
size_t seq_len;
|
||||||
u8 key[32];
|
u8 key[32];
|
||||||
size_t key_len;
|
size_t key_len;
|
||||||
|
enum key_flag key_flag;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum privsep_event {
|
enum privsep_event {
|
||||||
|
@ -230,6 +230,7 @@ static int wpa_driver_privsep_set_key(void *priv,
|
|||||||
os_memset(cmd.addr, 0xff, ETH_ALEN);
|
os_memset(cmd.addr, 0xff, ETH_ALEN);
|
||||||
cmd.key_idx = key_idx;
|
cmd.key_idx = key_idx;
|
||||||
cmd.set_tx = set_tx;
|
cmd.set_tx = set_tx;
|
||||||
|
cmd.key_flag = params->key_flag;
|
||||||
if (seq && seq_len > 0 && seq_len < sizeof(cmd.seq)) {
|
if (seq && seq_len > 0 && seq_len < sizeof(cmd.seq)) {
|
||||||
os_memcpy(cmd.seq, seq, seq_len);
|
os_memcpy(cmd.seq, seq, seq_len);
|
||||||
cmd.seq_len = seq_len;
|
cmd.seq_len = seq_len;
|
||||||
|
@ -413,6 +413,7 @@ static void wpa_priv_cmd_set_key(struct wpa_priv_interface *iface,
|
|||||||
p.seq_len = params->seq_len;
|
p.seq_len = params->seq_len;
|
||||||
p.key = params->key_len ? params->key : NULL;
|
p.key = params->key_len ? params->key : NULL;
|
||||||
p.key_len = params->key_len;
|
p.key_len = params->key_len;
|
||||||
|
p.key_flag = params->key_flag;
|
||||||
|
|
||||||
res = iface->driver->set_key(iface->drv_priv, &p);
|
res = iface->driver->set_key(iface->drv_priv, &p);
|
||||||
wpa_printf(MSG_DEBUG, "drv->set_key: res=%d", res);
|
wpa_printf(MSG_DEBUG, "drv->set_key: res=%d", res);
|
||||||
|
Loading…
Reference in New Issue
Block a user