Some AC actions added.

FossilOrigin-Name: 81ab5c5c07e3ed0b84527274f3c80314fc6411fdd9aede3dba3b2cb2ae0eef8c
This commit is contained in:
7u83@mail.ru
2015-04-26 10:36:53 +00:00
parent e1a6017211
commit f3a034122f
27 changed files with 216 additions and 1288 deletions

View File

@ -20,7 +20,7 @@
#include "dot11.h"
/*
uint8_t * mk_frame( uint8_t *b)
{
@ -70,7 +70,7 @@ int dot11_get_beacon_head(struct apdata *ap, uint8_t *dst, int *len)
printf("t1\n");
/* set-up head */
// set-up head
struct dot11_mgmt_head head;
memset (&head,0,sizeof(head));
@ -79,11 +79,11 @@ printf("t2\n");
head.frame_control = htole16 (DOT11_FTYPE_MGMT | DOT11_STYPE_BEACON);
head.duration = htole16(0);
/* destination address */
// destination address
memset(head.da, 0xff, sizeof(head.da));
printf("t3\n");
/* source address */
// source address
memcpy (head.sa , ap->mac,6);
memcpy (head.bssid , ap->mac,6);
b += add_bytes(b,&head,sizeof(head));
@ -140,8 +140,9 @@ add_supp_rates_ie(uint8_t *buf,uint32_t * rates, int num_rates)
return b-buf;
}
*/
/*
dot11_get_beacon_data(struct apdata *ap,struct beacon_data *bd)
{
bd->head = malloc(256);
@ -165,5 +166,5 @@ printf ("done\n");
return 0;
}
*/