nl80211: Fix TDLS key configuration to not set TX key index
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 31 Jul 2013 15:34:16 +0000 (18:34 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 31 Jul 2013 15:34:16 +0000 (18:34 +0300)
commitdc01de8a0eca13a9a2515ad33f019e0940472ab5
treec0942f75570ba2aa6b2873cfe6b4388b48cbda69
parent9d86f37f7850848ccca267c4d73c25464658c131
nl80211: Fix TDLS key configuration to not set TX key index

The nl80211 command for setting the TX index does not distinguish TDLS
vs. AP key and as such, the driver would not know what this set TX key
index operation is doing in the TDLS case. This could result in the TX
key index for AP being changed instead if static WEP is used in the AP
connection. Fix the issue by not setting TX key index when configuring a
TDLS key.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c