• Home
  • Raw
  • Download

Lines Matching refs:nl80211

3 import nl80211
28 e, fattr = nl.py_nla_parse_nested(nl80211.NL80211_FREQUENCY_ATTR_MAX, attr, pol)
29 if nl80211.NL80211_FREQUENCY_ATTR_FREQ in fattr:
30 freq = nl.nla_get_u32(fattr[nl80211.NL80211_FREQUENCY_ATTR_FREQ])
32 …if nl80211.NL80211_FREQUENCY_ATTR_MAX_TX_POWER in fattr and not (nl80211.NL80211_FREQUENCY_ATTR_DI…
33 …sys.stdout.write(" (%.1f dBm)" % (0.01 * nl.nla_get_u32(fattr[nl80211.NL80211_FREQUENCY_ATTR_MAX_T…
34 if nl80211.NL80211_FREQUENCY_ATTR_DISABLED in fattr:
39 e, battr = nl.py_nla_parse_nested(nl80211.NL80211_BAND_ATTR_MAX, attr, None)
41 if nl80211.NL80211_BAND_ATTR_FREQS in battr:
42 for fattr in nl.nla_get_nested(battr[nl80211.NL80211_BAND_ATTR_FREQS]):
67 nl80211.NL80211_ATTR_MAX, None)
68 if nl80211.NL80211_ATTR_WIPHY_NAME in attr:
69 print('wiphy %s' % nl.nla_get_string(attr[nl80211.NL80211_ATTR_WIPHY_NAME]))
70 if nl80211.NL80211_ATTR_WIPHY_BANDS in attr:
71 fpol = nl.nla_policy_array(nl80211.NL80211_FREQUENCY_ATTR_MAX + 1)
72 fpol[nl80211.NL80211_FREQUENCY_ATTR_FREQ].type = nl.NLA_U32
73 fpol[nl80211.NL80211_FREQUENCY_ATTR_DISABLED].type = nl.NLA_FLAG
74 fpol[nl80211.NL80211_FREQUENCY_ATTR_PASSIVE_SCAN].type = nl.NLA_FLAG
75 fpol[nl80211.NL80211_FREQUENCY_ATTR_NO_IBSS].type = nl.NLA_FLAG
76 fpol[nl80211.NL80211_FREQUENCY_ATTR_RADAR].type = nl.NLA_FLAG
77 fpol[nl80211.NL80211_FREQUENCY_ATTR_MAX_TX_POWER].type = nl.NLA_U32
79 nattrs = nl.nla_get_nested(attr[nl80211.NL80211_ATTR_WIPHY_BANDS])
82 if nl80211.NL80211_ATTR_CIPHER_SUITES in attr:
83 ciphers = nl.nla_data(attr[nl80211.NL80211_ATTR_CIPHER_SUITES])
89 if nl80211.NL80211_ATTR_SUPPORTED_IFTYPES in attr:
91 ifattr = nl.nla_get_nested(attr[nl80211.NL80211_ATTR_SUPPORTED_IFTYPES])
93 print("\t\t* %s" % nl80211.nl80211_iftype2str[nl.nla_type(nl_mode)])
94 if nl80211.NL80211_ATTR_SOFTWARE_IFTYPES in attr:
96 ifattr = nl.nla_get_nested(attr[nl80211.NL80211_ATTR_SOFTWARE_IFTYPES])
98 print("\t\t* %s" % nl80211.nl80211_iftype2str[nl.nla_type(nl_mode)])
129 genl.genlmsg_put(m, 0, 0, family, 0, 0, nl80211.NL80211_CMD_GET_WIPHY, 0)
130 nl.nla_put_u32(m, nl80211.NL80211_ATTR_WIPHY, 7)