path: root/wlantest/rx_mgmt.c
Commit message (Collapse)AuthorAgeFilesLines
* wlantest: Add support for FT-PSK initial association key derivationJouni Malinen2015-08-061-2/+16
| | | | | | | This adds minimal support for deriving keys for FT-PSK to allow the initial mobility domain association to be analyzed in more detail. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* Simplify Timeout Interval element parsingJouni Malinen2015-04-221-2/+0
| | | | | | | Remove the length field from struct ieee802_11_elems since the only allowed element length is five and that is checked by the parser. Signed-off-by: Jouni Malinen <j@w1.fi>
* wlantest: Fix Beacon and Probe Response frame parserJouni Malinen2015-04-221-4/+10
| | | | | | | | These functions did not verify that the received frame is long enough to contain the beginning of the variable length IE area. A truncated frame could have caused a segmentation fault due to reading beyond the buffer. Signed-off-by: Jouni Malinen <j@w1.fi>
* Preparations for variable length KCK and KEKJouni Malinen2015-01-261-2/+2
| | | | | | | | This modifies struct wpa_ptk to allow the length of KCK and KEK to be stored. This is needed to allow longer keys to be used, e.g., with Suite B 192-bit level. Signed-off-by: Jouni Malinen <j@w1.fi>
* wlantest: Extend BIP validation to support GMAC-128 and GMAC-256Jouni Malinen2015-01-241-12/+33
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* wlantest: Extend BIP support to cover BIP-CMAC-256Jouni Malinen2015-01-241-11/+32
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* wlantest: Indicate if a TKIP/CCMP replay has Retry=1Ashok Kumar Ponnaiah2014-09-031-2/+4
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* wlantest: Add a BSS probe_response counterJouni Malinen2013-12-261-0/+1
| | | | | | | This can be used to verify whether an AP replies to a Probe Request frame. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Use add_note() to annotate framesJouni Malinen2013-05-261-147/+151
| | | | | | | This adds debug information from wlantest into pcapng frame comments to make the information more convenient to use, e.g., in Wireshark. Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Add STA counters for disconnect reason 6/7 RXJouni Malinen2011-10-251-2/+18
| | | | | | | | | 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: Set direct links down on deauth/disassocJouni Malinen2011-01-241-0/+16
* wlantest: Add counters for AP deauth/disassoc while asleep/awakeJouni Malinen2011-01-071-4/+14
| | | | | These can be used to check whether the STA is in power save mode and because of that, is not seeing disconnection notifications.
* wlantest: Add more details for replay debug messagesJouni Malinen2011-01-071-2/+7
| | | | | These make it easier to find the frame in question when looking at the capture in Wireshark.
* wlantest: Count number of STA ACK'ed Deauth/Disassoc framesJouni Malinen2011-01-031-0/+84
* wlantest: Update STA State based on broadcast Deauth/DisassocJouni Malinen2010-11-231-2/+36
* wlantest: Show broadcast Deauth/Disassoc info in debugJouni Malinen2010-11-231-8/+10
* wlantest: Check STA State when validating need for CCMP for mgmtJouni Malinen2010-11-231-1/+3
| | | | | If the STA is in State 1 or 2, Deauth/Disassoc frames are not protected, so no need to complain about them being sent without CCMP.
* wlantest: Add per-BSS counters for BIP deauth/disassocJouni Malinen2010-11-211-0/+5
* wlantest: Add per-STA counter for (Re)AssocResp comeback framesJouni Malinen2010-11-211-0/+40
* wlantest: Add support for injecting (Re)Association Request framesJouni Malinen2010-11-191-0/+21
* wlantest: Add BSS/STA statistics countersJouni Malinen2010-11-181-26/+89
| | | | | These counters can be cleared and queried from external programs to script various testing tasks.
* wlantest: Add debug print for ignored group addressed Action framesJouni Malinen2010-11-131-1/+7
* wlantest: Validate MMIE KeyID reserved bitsJouni Malinen2010-11-131-1/+6
* wlantest: Validate reserved bits in TKIP/CCMP headerJouni Malinen2010-11-131-0/+5
* wlantest: Verify that TKIP/CCMP frames set ExtIV=1Jouni Malinen2010-11-131-1/+11
* wlantest: Fix mgmt CCMP decrypt to not crash on failuresJouni Malinen2010-11-121-8/+8
* wlantest: Verify that unicast robust mgmt frames are protectedJouni Malinen2010-11-121-15/+62
* wlantest: Use MFPC field instead of igtk_set to check if BIP is neededJouni Malinen2010-11-121-2/+1
* wlantest: Add option for writing a PCAP dump fileJouni Malinen2010-11-111-0/+1
| | | | | | | The output file includes all the capture (or read from wireless PCAP file) frames in their original contents and another copy of each frame that is decrypted in wlantest (including EAPOL-Key Key Data field).
* wlantest: Fix Mgmt CCMP replay detection to use correct PN offsetJouni Malinen2010-11-111-1/+1
* wlantest: Process Action framesJouni Malinen2010-11-111-0/+110
| | | | Parse Action frames and verify SA Query transactions.
* wlantest: Decrypt CCMP protected unicast Robust Management framesJouni Malinen2010-11-111-4/+101
* wlantest: Fix BIP replay detectionJouni Malinen2010-11-101-1/+1
* wlantest: Validate MMIE MICJouni Malinen2010-11-101-0/+117
* wlantest: Add PTK derivation based on passphrasesJouni Malinen2010-11-071-2/+2
| | | | | | | Allow pre-configuration of passphrases (-p<passphrase>) to provide enough information for wlantest to be able to derive PMK for each BSS and PTK for each STA going through 4-Way Handshake (at least message 2 and 3 needs to be received).
* wlantest: Maintain a copy of WPA/RSN IE from (Re)AssocReqJouni Malinen2010-11-071-0/+22
* wlantest: Move Mgmt and Data frame processing into their own filesJouni Malinen2010-11-071-0/+452