wlantest: Add preliminary infrastructure for injecting frames

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.
This commit is contained in:
Jouni Malinen 2010-11-19 00:35:13 +02:00
parent 6d5ce9fc90
commit 7d23e971f0
7 changed files with 390 additions and 0 deletions

View file

@ -459,6 +459,11 @@ static inline int is_zero_ether_addr(const u8 *a)
return !(a[0] | a[1] | a[2] | a[3] | a[4] | a[5]);
}
static inline int is_broadcast_ether_addr(const u8 *a)
{
return (a[0] & a[1] & a[2] & a[3] & a[4] & a[5]) == 0xff;
}
#include "wpa_debug.h"