]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - build-utilities/hostap.git/commitdiff
wlantest: Update SA Query trans id based on injected frame
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 19 Nov 2010 14:12:46 +0000 (16:12 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 19 Nov 2010 14:12:46 +0000 (16:12 +0200)
This allows the SA Query transaction id matching code to be used
to verify that a valid response is received for the injected
request.

wlantest/ctrl.c

index b525e4753afebcaec1e2ec8674f2340061293fce..5d818c3b0ab7076555421c8cfb8136d0d391d958 100644 (file)
@@ -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);
 }