mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-10 14:09:22 +01:00
netdev: Drop DEFAULT_TYPES nl80211 attr of CMD_NEW_KEY
The NL80211_ATTR_KEY_DEFAULT_TYPES attribute is only parsed by the kernel if either NL80211_ATTR_KEY_DEFAULT or NL80211_ATTR_KEY_DEFAULT_MGMT are also present, however these are only used with NL80211_CMD_SET_KEY and ignored for NEW_KEY. As far as I understand the default key concept only makes sense for a Tx key because on Rx all keys can be tried, so we don't need this for client mode. The kernel decides whether the NEW_KEY is for unicast or multicast based on whether NL80211_ATTR_KEY_MAC was supplied.
This commit is contained in:
parent
b60e79b8dd
commit
ab6160b017
@ -1128,12 +1128,6 @@ static struct l_genl_msg *netdev_build_cmd_new_key_group(struct netdev *netdev,
|
||||
l_genl_msg_append_attr(msg, NL80211_ATTR_KEY_DATA, key_len, key);
|
||||
l_genl_msg_append_attr(msg, NL80211_ATTR_KEY_CIPHER, 4, &cipher);
|
||||
l_genl_msg_append_attr(msg, NL80211_ATTR_KEY_SEQ, ctr_len, ctr);
|
||||
|
||||
l_genl_msg_enter_nested(msg, NL80211_ATTR_KEY_DEFAULT_TYPES);
|
||||
l_genl_msg_append_attr(msg, NL80211_KEY_DEFAULT_TYPE_MULTICAST,
|
||||
0, NULL);
|
||||
l_genl_msg_leave_nested(msg);
|
||||
|
||||
l_genl_msg_append_attr(msg, NL80211_ATTR_KEY_IDX, 1, &key_id);
|
||||
l_genl_msg_append_attr(msg, NL80211_ATTR_IFINDEX, 4, &netdev->index);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user