wlantest: Add send command for injecting raw frames

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.
This commit is contained in:
Jouni Malinen 2010-12-16 16:11:54 +02:00 committed by Jouni Malinen
parent b993e77b5b
commit b3a6d9d400
6 changed files with 250 additions and 5 deletions

View file

@ -29,7 +29,7 @@ static int hex2num(char c)
}
static int hex2byte(const char *hex)
int hex2byte(const char *hex)
{
int a, b;
a = hex2num(*hex++);

View file

@ -437,6 +437,7 @@ typedef u64 __bitwise le64;
int hwaddr_aton(const char *txt, u8 *addr);
int hwaddr_aton2(const char *txt, u8 *addr);
int hex2byte(const char *hex);
int hexstr2bin(const char *hex, u8 *buf, size_t len);
void inc_byte_array(u8 *counter, size_t len);
void wpa_get_ntp_timestamp(u8 *buf);