Skip to content

Commit aa2f10e

Browse files
authored
Merge pull request #1268 from guedou/Issue_#1263
Ack Policy field renamed
2 parents f89055d + f7e675d commit aa2f10e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

scapy/layers/dot11.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def unwep(self, key=None, warn=1):
180180
class Dot11QoS(Packet):
181181
name = "802.11 QoS"
182182
fields_desc = [ BitField("Reserved",None,1),
183-
BitField("Ack Policy",None,2),
183+
BitField("Ack_Policy", None, 2),
184184
BitField("EOSP",None,1),
185185
BitField("TID",None,4),
186186
ByteField("TXOP",None) ]

test/regression.uts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9466,8 +9466,11 @@ Dot11 in p and p.addr3 == "00:00:00:00:00:00"
94669466
p.mysummary() == '802.11 Management 0 00:00:00:00:00:00 > 00:00:00:00:00:00'
94679467

94689468
= Dot11QoS - build
9469+
s = raw(Dot11()/Dot11QoS(Ack_Policy=1))
9470+
assert s == b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x00'
9471+
94699472
s = raw(Dot11(type=2, subtype=8)/Dot11QoS(TID=4))
9470-
s == b'\x88\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00'
9473+
assert s == b'\x88\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00'
94719474

94729475
= Dot11 - binary in SSID
94739476
pkt = Dot11() / Dot11Beacon() / Dot11Elt(ID=0, info=b"".join(chb(i) for i in range(32)))

0 commit comments

Comments
 (0)