Skip to content

Commit d3ca31b

Browse files
committed
Fix VHT injection
1 parent 2ad7b9d commit d3ca31b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/wifibroadcast.hpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ static const uint8_t radiotap_header_ht[] __attribute__((unused)) = {
8585

8686
static const uint8_t radiotap_header_vht[] __attribute__((unused)) = {
8787
0x00, 0x00, // <-- radiotap version
88-
0x14, 0x00, // <- radiotap header length
89-
0x00, 0x00, 0x20, 0x00, // <-- radiotap present flags: VHT Information
88+
0x16, 0x00, // <- radiotap header length
89+
0x00, 0x80, 0x20, 0x00, // <-- radiotap present flags: RADIOTAP_TX_FLAGS + VHT Information
90+
0x08, 0x00, // RADIOTAP_F_TX_NOACK
9091
0x45, 0x00, // Known VHT information: 0000 0000 0100 0101, BW, GI, STBC
9192
0x00, // Flags, BIT(0)=STBC, BIT(2)=GI
9293
0x04, // BW, 0:20M, 1:40M, 4:80, 11:160
@@ -128,10 +129,10 @@ static const uint8_t radiotap_header_vht[] __attribute__((unused)) = {
128129
#define MCS_IDX_OFF 12
129130

130131
// offset of VHT information
131-
#define VHT_FLAGS_OFF 10
132-
#define VHT_BW_OFF 11
133-
#define VHT_MCSNSS0_OFF 12
134-
#define VHT_CODING_OFF 16
132+
#define VHT_FLAGS_OFF 12
133+
#define VHT_BW_OFF 13
134+
#define VHT_MCSNSS0_OFF 14
135+
#define VHT_CODING_OFF 18
135136

136137
//the last four bytes used for channel_id
137138
#define SRC_MAC_THIRD_BYTE 12

0 commit comments

Comments
 (0)