mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-04-09 03:44:15 +00:00
To avoid compiling error of inject_80211.c with new kernel (2019_R2), the rand_char size needs to be 1484 due to the space occupied by u8aRadiotapHeader and ieee_hdr in buffer
This commit is contained in:
parent
e1a9c183bc
commit
46886bdf9e
@ -119,7 +119,7 @@ void usage(void)
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
u8 buffer[1536];
|
||||
char szErrbuf[PCAP_ERRBUF_SIZE], rand_char[1536], hw_mode = 'n';
|
||||
char szErrbuf[PCAP_ERRBUF_SIZE], rand_char[1484], hw_mode = 'n';
|
||||
int i, nLinkEncap = 0, r, rate_index = 0, sgi_flag = 0, num_packets = 10, payload_size = 64, packet_size, nDelay = 100000;
|
||||
pcap_t *ppcap = NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user