]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73e7044b16425443f4ff1bcac14f35835b406711
tree85216f5e226b5d3423d814b9e4ad60af17b5847e
parentfc682371d9d5ee814d7f2c62d461403fa7c0d6b6
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: c6ccaa907a3a ("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