aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
Commit message (Collapse)AuthorAgeFilesLines
* wlantest: Update STA info based on WPA/RSN IE in EAPOL-Key 2/4Jouni Malinen2012-03-211-0/+25
| | | | | | | | | | The WPA/RSN IE in EAPOL-Key 2/4 is more reliable than the one in (Re)Association Request frame. Update the STA info base don the EAPOL-Key frame so that the correct cipher information is used even if the (Re)Association Request frame is missing or corrupted in the capture. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-1122-176/+44
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Store last received GTK for each STAJouni Malinen2011-12-225-4/+26
| | | | | | | This allows info_sta command to be used to fetch the last received GTK separately for each STA. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Fix EAPOL-Key Key Data decryption for rekey caseJouni Malinen2011-12-221-2/+4
| | | | | | | KEK from TPTK needs to be used instead of from PTK when processing rekeying case similarly to what was already done with KCK. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Allow MSK/PMK list to be read from a text fileJouni Malinen2011-12-091-3/+42
| | | | | | | | A text file with MSK/PMK entries (one key per line in hexdump format) can be read into wlantest (-f<path to file>) to initialize list of known PMKs. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Fix handling of PTK rekeyingJouni Malinen2011-11-143-14/+56
| | | | | | | | | | | | | | | | | Use a temporary PTK buffer during 4-way handshake when rekeying PTK so that the new EAPOL-Key frame MIC values are checked against the new PTK and frames are decrypted using the old PTK. Take the new PTK into use once msg 4/4 is processed and clear RSC counters at that point (including moving of RSC update to avoid setting RSC based on the msg 4/4). In addition, add a workaround to handle supplicant implementations that set Secure bit to one during PTK rekeying 4-way handshake in msg 2/4. This was previously assumed to be msg 4/4, but the key data contents can be used to figure out whether this is msg 2/4 even if the Secure bit is set to one. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* wlantest: Add STA counters for disconnect reason 6/7 RXJouni Malinen2011-10-263-2/+26
| | | | | | | | | These can be useful in tests involving association state mismatch between the AP and the STA (i.e., STA assumes it is still associated but the AP does not have association state). In such a case, the AP would be sending out unprotected Deauthentication or Disassociation frames with reason code 6 or 7 depending on what frame is triggering this.
* wlantest: Verify that comeback assoc resp includes correct typeJouni Malinen2011-09-201-8/+14
| | | | | | The Timeout Interval element needs to use Association Comeback time for the case when (Re)Association Response frame uses Status Code 30. Verify this before incrementing the (re)assocresp_comeback counters.
* wlantest: Allow injection of unprotected frames to unknown BSSJouni Malinen2011-08-282-7/+17
|
* wlantest: Use source address of TDLS Setup Confirm failure for matchingJouni Malinen2011-03-141-4/+4
| | | | | This is needed to be able to find the correct TDLS entry for the frame regardless of whether a FromDS or ToDS frame is being processed.
* wlantest: Fix source address for FromDS framesJouni Malinen2011-03-141-1/+1
|
* wlantest: Add command for adding WEP keys during run timeJouni Malinen2011-01-284-6/+35
|
* Fix couple of compiler warnings about uninitialized variablesJouni Malinen2011-01-261-1/+3
|
* wlantest: Handle missing fields in TDLS Setup Confirm error caseJouni Malinen2011-01-241-1/+45
|
* wlantest: Handle missing fields in TDLS Setup Response error caseJouni Malinen2011-01-241-2/+3
|
* wlantest: Count TDLS Teardown messagesJouni Malinen2011-01-243-0/+3
|
* wlantest: Fix compiler warningsJouni Malinen2011-01-241-2/+1
|
* wlantest: Fix TDLS setup failure countingJouni Malinen2011-01-241-12/+83
| | | | | | | Need to be able to handle TDLS Setup Response frame with LinkId IE when non-zero status code is used. In addition, allow finding of a TDLS entry based on real BSSID instead of the one used in the LinkId to allow negative testing of different BSS.
* wlantest: Determine ping matches properly for direct linkJouni Malinen2011-01-243-35/+63
| | | | | Check ICMP echo request/response matches for both STAs to get proper counter values for a ping from a one STA to another one using TDLS.
* wlantest: Set direct links down on deauth/disassocJouni Malinen2011-01-241-0/+16
|
* wlantest: Maintain only a single entry for an active direct linkJouni Malinen2011-01-244-9/+40
| | | | | | | | | | | The TDLS link itself is bidirectional, but there is explicit initiator/responder roles. Remove the other direction of the link if it exists when processing TDLS Setup Confirm to make sure that the link counters are stored for the current TDLS entery. This is also changing the control interface search for TDLS counters to require initiator/responder addresses in the correct order instead of matching entries regardless of the role.
* wlantest: Add counters for TDLS setup framesJouni Malinen2011-01-243-3/+25
|
* wlantest: Add TDLS entry on TDLS Setup RequestJouni Malinen2011-01-191-0/+1
| | | | This will make the TDLS counters available even if setup fails.
* wlantest: Check WPA/RSN IE match between AssocReq and BeaconJouni Malinen2011-01-171-0/+16
| | | | | | Note unexpected WPA/RSN IE in AssocReq and ignore them if the last Beacon/ProbeResp from the AP is not advertising support for WPA/RSN.
* wlantest: Add support for decrypting WEP framesJouni Malinen2011-01-148-33/+189
|
* wlantest: Add more details for CCMP MIC failuresJouni Malinen2011-01-141-2/+8
|
* wlantest: Fix masking of CCMP AAD QC fieldJouni Malinen2011-01-141-2/+2
|
* wlantest: Add STA counter prot_data_txJouni Malinen2011-01-073-0/+4
|
* wlantest: Add counters for AP deauth/disassoc while asleep/awakeJouni Malinen2011-01-073-4/+22
| | | | | These can be used to check whether the STA is in power save mode and because of that, is not seeing disconnection notifications.
* wlantest: Track station PS stateJouni Malinen2011-01-072-25/+113
|
* wlantest: Add more details for replay debug messagesJouni Malinen2011-01-072-6/+21
| | | | | These make it easier to find the frame in question when looking at the capture in Wireshark.
* wlantest: Skip frames inserted by wlantest when reading pcap fileJouni Malinen2011-01-051-0/+4
| | | | | This makes debug output clearer when re-reading a file that has previously been processed and decrypted by wlantest.
* wlantest: Count number of STA ACK'ed Deauth/Disassoc framesJouni Malinen2011-01-035-0/+125
|
* wlantest: Add ping_ok_first_assoc STA counterJouni Malinen2011-01-033-0/+6
| | | | | This can be used to verify whether ping goes through between clearing of the STA counters and the first (re)association.
* wlantest: Add more debug output for frame injection failuresJouni Malinen2010-12-211-4/+16
|
* wlantest: Fix management frame injectionJouni Malinen2010-12-211-1/+2
| | | | The TDLS special case was supposed to apply to only Data frames.
* wlantest: Fix buffer read overflow on CCMP encryptionJouni Malinen2010-12-171-2/+2
| | | | | | The encryption code may write a full AES block to the end of the buffer, so make sure the temporary buffer is long enough to fit that data.
* wlantest: Fix error path in TDLS-not-found caseJouni Malinen2010-12-171-4/+7
|
* wlantest: Avoid aliasing a function parameter by renaming local variableJouni Malinen2010-12-171-2/+2
|
* wlantest: Remove unnecessary validation codeJouni Malinen2010-12-171-6/+0
| | | | | This condition is already checked above when figuring out whether a key is known and as such, there is no point in keeping this check here.
* wlantest: Replace pcap header directoryJouni Malinen2010-12-172-3/+3
| | | | | | | The use of the pcap subdirectory seems to be limited to some of the newer Linux distros only, so use the older paths to pcap.h and pcap-bpf.h to make wlantest bit more easier to compile on older systems.
* wlantest: Add counters and AP/direct path validation for TDLSJouni Malinen2010-12-165-2/+393
| | | | | These can be used to write automated test scripts for verifying that TDLS STAs are using correct data path.
* wlantest: Check FTIE MIC in TDLS Teardown messagesJouni Malinen2010-12-162-2/+68
|
* wlantest: Add send command for injecting raw framesJouni Malinen2010-12-164-4/+248
| | | | | | This can be used by external programs (e.g., wlantest_cli) to inject raw frames (hex dump of the frame header and body). The data can be requested to be sent as-is or protected with the current key.
* wlantest: Add support for decrypting TDLS framesJouni Malinen2010-12-135-8/+415
| | | | | Derive TPK based on TDLS TPK Handshake and decrypt frames on the direct link with TPK-TK.
* wlantest: Add support for reading DLT_IEEE802_11 pcap filesJouni Malinen2010-12-043-1/+12
|
* wlantest: Add support for reading pcap files with prism headerJouni Malinen2010-12-023-1/+56
|
* wlantest: Update STA State based on broadcast Deauth/DisassocJouni Malinen2010-11-231-2/+36
|
* wlantest: Implement IEEE 802.11 duplicate detectionJouni Malinen2010-11-233-1/+93
| | | | | This cleans up debug logs by avoiding incorrect entries on TKIP/CCMP replays and some state changes.
* wlantest: Show broadcast Deauth/Disassoc info in debugJouni Malinen2010-11-231-8/+10
|