aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_glue.c
diff options
context:
space:
mode:
authorSunil Dutt <duttus@codeaurora.org>2013-05-06 12:47:44 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-06 12:47:44 (GMT)
commit785336998d793cd99821b08791ae42d6535b8ae6 (patch)
tree4fb82b8ea8e3ab08a6427681329864129f5120d7 /wpa_supplicant/wpas_glue.c
parent4d471ca55aa8bd9cb59ee28d81e0660f33c06474 (diff)
downloadhostap-785336998d793cd99821b08791ae42d6535b8ae6.zip
hostap-785336998d793cd99821b08791ae42d6535b8ae6.tar.gz
hostap-785336998d793cd99821b08791ae42d6535b8ae6.tar.bz2
TDLS: Pass peer's AID information to kernel
The information of the peer's AID is required for the driver to construct partial AID in VHT PPDU's. Pass this information to the driver during add/set station operations (well, as soon as the information is available, i.e., with set station operation currently). Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpas_glue.c')
-rw-r--r--wpa_supplicant/wpas_glue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index cd51873..faaf492 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -551,7 +551,7 @@ static int wpa_supplicant_tdls_oper(void *ctx, int oper, const u8 *peer)
static int wpa_supplicant_tdls_peer_addset(
- void *ctx, const u8 *peer, int add, u16 capability,
+ void *ctx, const u8 *peer, int add, u16 aid, u16 capability,
const u8 *supp_rates, size_t supp_rates_len,
const struct ieee80211_ht_capabilities *ht_capab,
const struct ieee80211_vht_capabilities *vht_capab,
@@ -563,7 +563,7 @@ static int wpa_supplicant_tdls_peer_addset(
os_memset(&params, 0, sizeof(params));
params.addr = peer;
- params.aid = 1;
+ params.aid = add ? 1 : aid;
params.capability = capability;
params.flags = WPA_STA_TDLS_PEER | WPA_STA_AUTHORIZED;