aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/vt6656/key.c
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2014-07-06 23:19:47 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-08 16:04:22 -0700
commit4473c8cccdf50cd8ab16d65bbbbacfc6a02c9e36 (patch)
tree34fcf763ba7b8eb2f7f3c9c3344f93742ef89213 /drivers/staging/vt6656/key.c
parentstaging: vt6656: s_nsBulkInUsbIoCompleteRead check that used sk_buff is clean and ready to reuse. (diff)
downloadwireguard-linux-4473c8cccdf50cd8ab16d65bbbbacfc6a02c9e36.tar.xz
wireguard-linux-4473c8cccdf50cd8ab16d65bbbbacfc6a02c9e36.zip
staging: vt6656: vnt_set_keymode don't save pairwise key entry.
The device refuses to associate to older access points even though in the logs it appears to be associated in tkip or ccmp mode. Clear bit from key_entry_inuse in pairwise key so the entry is over written by group address. This doesn't seem to make any difference to newer access points and is a temporary fix until a better solution is found. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/key.c')
-rw-r--r--drivers/staging/vt6656/key.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/vt6656/key.c b/drivers/staging/vt6656/key.c
index a7c7a2d3ba4c..7275f09e88b7 100644
--- a/drivers/staging/vt6656/key.c
+++ b/drivers/staging/vt6656/key.c
@@ -98,6 +98,8 @@ static int vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr,
case VNT_KEY_PAIRWISE:
key_mode |= mode;
key_inx = 4;
+ /* Don't save entry for pairwise key */
+ clear_bit(entry, &priv->key_entry_inuse);
break;
default:
return -EINVAL;