path: root/wlantest/inject.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaceJouni Malinen2016-12-281-1/+1
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* Preparations for variable length KCK and KEKJouni Malinen2015-01-261-3/+3
| | | | | | | | 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 support to cover BIP-CMAC-256Jouni Malinen2015-01-241-4/+5
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* Clean up debug prints to use wpa_printf()Jouni Malinen2014-12-261-1/+1
| | | | | | | This converts most of the remaining perror() and printf() calls from hostapd and wpa_supplicant to use wpa_printf(). Signed-off-by: Jouni Malinen <j@w1.fi>
* wlantest: Fix the injection of protected broadcast framesChaitanya T K2013-05-041-3/+2
| | | | | | | | | Injecting protected broadcast frames fails because of the unnecessary null check for sta. In case of broadcast frames sta can be null, so remove the check. Reported-by: Janardhan R <janardhanr@posedge.com> Signed-hostap: Chaitanya T K <chaitanyatk@posedge.com>
* wlantest: Move BIP function into a separate function and fileJouni Malinen2012-09-081-41/+6
| | | | 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: Allow injection of unprotected frames to unknown BSSJouni Malinen2011-08-281-4/+11
* 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: 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: Add send command for injecting raw framesJouni Malinen2010-12-161-4/+38
| | | | | | 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: Show encrypted version on injected frame in debugJouni Malinen2010-11-211-0/+1
* wlantest: Add support for protecting injected broadcast framesJouni Malinen2010-11-191-10/+133
* wlantest: Add support for CCMP protection for injected framesJouni Malinen2010-11-191-2/+131
* wlantest: Add preliminary infrastructure for injecting framesJouni Malinen2010-11-181-0/+80
This adds new commands for wlantest_cli to request wlantest to inject frames. This version can only send out Authentication frames and unprotected SA Query Request frames, but there is now place to add more frames and encryption with future commits.