aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/ctrl.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-11-19 14:12:46 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-19 14:12:46 (GMT)
commit799aa95b23db717c194136f726e366405a521aa3 (patch)
tree8186a7ddd40222064147afcf8904394edfd0ef08 /wlantest/ctrl.c
parent571ab37b869424af693a9818b76872ca9847a997 (diff)
downloadhostap-799aa95b23db717c194136f726e366405a521aa3.zip
hostap-799aa95b23db717c194136f726e366405a521aa3.tar.gz
hostap-799aa95b23db717c194136f726e366405a521aa3.tar.bz2
wlantest: Update SA Query trans id based on injected frame
This allows the SA Query transaction id matching code to be used to verify that a valid response is received for the injected request.
Diffstat (limited to 'wlantest/ctrl.c')
-rw-r--r--wlantest/ctrl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wlantest/ctrl.c b/wlantest/ctrl.c
index b525e47..5d818c3 100644
--- a/wlantest/ctrl.c
+++ b/wlantest/ctrl.c
@@ -425,6 +425,9 @@ static int ctrl_inject_saqueryreq(struct wlantest *wt,
mgmt.u.action.u.sa_query_req.action = WLAN_SA_QUERY_REQUEST;
mgmt.u.action.u.sa_query_req.trans_id[0] = 0x12;
mgmt.u.action.u.sa_query_req.trans_id[1] = 0x34;
+ os_memcpy(sender_ap ? sta->ap_sa_query_tr : sta->sta_sa_query_tr,
+ mgmt.u.action.u.sa_query_req.trans_id,
+ WLAN_SA_QUERY_TR_ID_LEN);
return wlantest_inject(wt, bss, sta, (u8 *) &mgmt, 24 + 4, prot);
}