[mac] add enhanced frame pending (#4334)

This commit adds enhanced frame pending feature of Thread 1.2. This
requires the platform radio driver to correctly set frame pending bit
for Data frames and MAC Data Request frames.
This commit is contained in:
Yakun Xu
2020-03-09 09:08:46 -07:00
committed by GitHub
parent fdcb8553b1
commit 56d0e7212b
14 changed files with 201 additions and 30 deletions
+2
View File
@@ -37,6 +37,8 @@ import ipaddress
# Map of 2 bits of parent priority.
pp_map = {1: 1, 0: 0, 3: -1, 2: -2}
UDP_TEST_PORT = 12345
# Get the signed parent priority from the byte that parent priority is in.
def map_pp(pp_byte):