some stuff for dot11 handling added

This commit is contained in:
2022-09-13 08:18:05 +02:00
parent 259c6c5e66
commit 97533f67cc
5 changed files with 41 additions and 15 deletions

View File

@ -44,6 +44,8 @@
#include "actube.h"
#include "cw/dot11.h"
static void wtpman_remove(struct wtpman *wtpman)
{
@ -319,6 +321,15 @@ static int dataman_process_msg(struct cw_Conn *nc, uint8_t * rawmsg, int len,
uint8_t * dot11frame = rawmsg + offs;
int dot11len = len-offs;
cw_dbg_dot11_frame(dot11frame,dot11len);
char frame[1000];
dot11_init_assoc_resp(frame);
dot11_copy_mac(dot11_get_sa(dot11frame),dot11_get_da(frame));
dot11_copy_mac(dot11_get_bssid(dot11frame),dot11_get_bssid(frame));
dot11_copy_mac(dot11_get_da(dot11frame),dot11_get_sa(frame));
return 0;
}