diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-07-11 20:02:18 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-11 17:37:31 -0700 |
commit | f9ef05ce13e4dd66e8699e80492488bd8f01b528 (patch) | |
tree | ffe8605d5000bdf6b2b4d1fbf3cde5e29a9c9d1e /drivers/staging/vt6656/key.c | |
parent | b63d6ed6ca857d9aac6e93635c9fc42656cd0c44 (diff) | |
download | linux-f9ef05ce13e4dd66e8699e80492488bd8f01b528.tar.bz2 |
staging: vt6656: Fix pairwise key for non station modes
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>
Diffstat (limited to 'drivers/staging/vt6656/key.c')
-rw-r--r-- | drivers/staging/vt6656/key.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/vt6656/key.c b/drivers/staging/vt6656/key.c index 7275f09e88b7..b76ee3106d5f 100644 --- a/drivers/staging/vt6656/key.c +++ b/drivers/staging/vt6656/key.c @@ -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; |