]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: vt6656: Fix pairwise key for non station modes
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 11 Jul 2014 19:02:18 +0000 (20:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 00:37:31 +0000 (17:37 -0700)
patch 'vnt_set_keymode don't save pairwise key entry' caused
a slight regression in access point mode

Only don't save in station mode.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/key.c

index 7275f09e88b7b93ce1aff9d04e243a1cdbafd242..b76ee3106d5f686f8fe7348b6809741eb8b261bc 100644 (file)
@@ -98,8 +98,9 @@ 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);
+               /* Don't save entry for pairwise key for station mode */
+               if (priv->op_mode == NL80211_IFTYPE_STATION)
+                       clear_bit(entry, &priv->key_entry_inuse);
                break;
        default:
                return -EINVAL;