staging: vt6656: Fix pairwise key entry save.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 18 Apr 2020 21:01:49 +0000 (22:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 11:44:32 +0000 (13:44 +0200)
commit0b59f10b1d8fe8d50944f21f5d403df9303095a8
tree85216f5e226b5d3423d814b9e4ad60af17b5847e
parent09057742af98a39ebffa27fac4f889dc873132de
staging: vt6656: Fix pairwise key entry save.

The problem is that the group key was saved as VNT_KEY_DEFAULTKEY
was over written by the VNT_KEY_GROUP_ADDRESS index.

mac80211 could not clear the mac_addr in the default key.

The VNT_KEY_DEFAULTKEY is not necesscary so remove it and set as
VNT_KEY_GROUP_ADDRESS.

mac80211 can clear any key using vnt_mac_disable_keyentry.

Fixes: f9ef05ce13e4 ("staging: vt6656: Fix pairwise key for non station modes")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/da2f7e7f-1658-1320-6eee-0f55770ca391@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/key.c
drivers/staging/vt6656/main_usb.c