Skip to content

Commit ab03f7c

Browse files
committed
fix(pyw):wrong radar info. (always False) wraith-wireless#43
1 parent 0455683 commit ab03f7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyric/pyw.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,6 +2092,8 @@ def _band_rfs_(rs):
20922092
rfd['enabled'] = False
20932093
elif rfi == nl80211h.NL80211_FREQUENCY_ATTR_MAX_TX_POWER: # in mBm
20942094
rfd['max-tx'] = struct.unpack_from('I', rfattr, 0)[0] / 100
2095+
elif rfi == nl80211h.NL80211_FREQUENCY_ATTR_RADAR:
2096+
rfd['radar'] = True
20952097
elif rfi == nl80211h.NL80211_FREQUENCY_ATTR_NO_HT40_MINUS:
20962098
rfd['not-permitted'].append('HT40-')
20972099
elif rfi == nl80211h.NL80211_FREQUENCY_ATTR_NO_HT40_PLUS:

0 commit comments

Comments
 (0)