def _iesubelmsmtreqstarsna_(s,sid):
""" :returns: parsed subelement of type sta request for qos counters in msmt request """
ret = s
if sid == std.EID_MSMT_REQ_SUBELEMENT_STA_RPT:
# Std Fig. 8-121
cnt,to,t = struct.unpack_from('=I2H',s)
ts = s[8:]
ret = {'msmt-cnt':cnt,
'trigger-timeout':to,
'rsna-cntr-trigger-cond':_rsnacntrtriggerconds_(t),
'thresholds':{}}
# optional count fields are 4-bytes assuming they are appending in order
for thresh in ['cmacicv-err','cmarc-replay','robust-ccmp-replay','tkipicv-err','tkip-replay','ccmp-decrypt','ccmp-replay']:
if ret['sta-cntr-trigger-cond'][thresh]:
ret['thresholds'][thresh] = struct.unpack_from('=I',ts)[0]
ts = ts[4:]
elif sid == std.EID_MSMT_REQ_SUBELEMENT_STA_VEND:
ret = _parseie_(std.EID_VEND_SPEC,s)
return ret
# RSNA Counter Trigger Conditions Std Fig. 8-122
评论列表
文章目录