/external/iw/ |
D | info.c | 80 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in print_phy_handler() local 119 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_phy_handler() 122 if (tb_msg[NL80211_ATTR_WIPHY]) { in print_phy_handler() 123 if (nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]) == phy_id) in print_phy_handler() 127 phy_id = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]); in print_phy_handler() 129 if (print_name && tb_msg[NL80211_ATTR_WIPHY_NAME]) in print_phy_handler() 130 printf("Wiphy %s\n", nla_get_string(tb_msg[NL80211_ATTR_WIPHY_NAME])); in print_phy_handler() 133 if (tb_msg[NL80211_ATTR_WIPHY_BANDS]) { in print_phy_handler() 134 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) { in print_phy_handler() 241 if (tb_msg[NL80211_ATTR_MAX_NUM_SCAN_SSIDS]) in print_phy_handler() [all …]
|
D | interface.c | 309 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in print_iface_handler() local 313 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_iface_handler() 316 if (wiphy && tb_msg[NL80211_ATTR_WIPHY]) { in print_iface_handler() 317 unsigned int thiswiphy = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]); in print_iface_handler() 324 if (tb_msg[NL80211_ATTR_IFNAME]) in print_iface_handler() 325 printf("%sInterface %s\n", indent, nla_get_string(tb_msg[NL80211_ATTR_IFNAME])); in print_iface_handler() 328 if (tb_msg[NL80211_ATTR_IFINDEX]) in print_iface_handler() 329 printf("%s\tifindex %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_IFINDEX])); in print_iface_handler() 330 if (tb_msg[NL80211_ATTR_WDEV]) in print_iface_handler() 332 (unsigned long long)nla_get_u64(tb_msg[NL80211_ATTR_WDEV])); in print_iface_handler() [all …]
|
D | reg.c | 123 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in print_reg_handler() local 139 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_reg_handler() 142 if (!tb_msg[NL80211_ATTR_REG_ALPHA2]) { in print_reg_handler() 147 if (!tb_msg[NL80211_ATTR_REG_RULES]) { in print_reg_handler() 152 if (tb_msg[NL80211_ATTR_WIPHY]) in print_reg_handler() 153 printf("phy#%d%s\n", nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]), in print_reg_handler() 154 tb_msg[NL80211_ATTR_WIPHY_SELF_MANAGED_REG] ? in print_reg_handler() 159 if (tb_msg[NL80211_ATTR_DFS_REGION]) in print_reg_handler() 160 dfs_domain = nla_get_u8(tb_msg[NL80211_ATTR_DFS_REGION]); in print_reg_handler() 164 alpha2 = nla_data(tb_msg[NL80211_ATTR_REG_ALPHA2]); in print_reg_handler() [all …]
|
/external/autotest/client/deps/iwcap/src/ |
D | iwcap.c | 221 static int check_iftype(struct nlattr *tb_msg[], int nl_type) in check_iftype() argument 226 if (!tb_msg[NL80211_ATTR_SUPPORTED_IFTYPES]) in check_iftype() 229 nla_for_each_nested(nl_mode, tb_msg[NL80211_ATTR_SUPPORTED_IFTYPES], rem_mode) in check_iftype() 273 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in check_phy_handler() local 301 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in check_phy_handler() 304 if (!tb_msg[NL80211_ATTR_WIPHY_BANDS]) in check_phy_handler() 314 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) { in check_phy_handler() 442 pbool("sta", check_iftype(tb_msg, NL80211_IFTYPE_STATION)); in check_phy_handler() 444 pbool("ibss", check_iftype(tb_msg, NL80211_IFTYPE_ADHOC)); in check_phy_handler() 446 pbool("ap", check_iftype(tb_msg, NL80211_IFTYPE_AP)); in check_phy_handler() [all …]
|
/external/libnl/python/netlink/genl/ |
D | capi.i | 71 struct nlattr *tb_msg[max + 1]; in py_genlmsg_parse() local 95 err = genlmsg_parse(nlh, uhl, tb_msg, max, policy); in py_genlmsg_parse() 101 if (tb_msg[i]) { in py_genlmsg_parse() 103 v = SWIG_NewPointerObj(SWIG_as_voidptr(tb_msg[i]), SWIGTYPE_p_nlattr, 0 | 0 ); in py_genlmsg_parse()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211_capa.c | 27 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in protocol_feature_handler() local 30 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in protocol_feature_handler() 33 if (tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]) in protocol_feature_handler() 34 *feat = nla_get_u32(tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]); in protocol_feature_handler() 1957 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in phy_info_handler() local 1963 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in phy_info_handler() 1966 if (!tb_msg[NL80211_ATTR_WIPHY_BANDS]) in phy_info_handler() 1969 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) in phy_info_handler() 2296 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in nl80211_get_reg() local 2310 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_get_reg() [all …]
|
D | driver_macsec_linux.c | 511 struct nlattr *tb_msg[MACSEC_ATTR_MAX + 1]; in dump_callback() local 519 err = nla_parse(tb_msg, MACSEC_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in dump_callback() 524 if (!tb_msg[MACSEC_ATTR_IFINDEX]) in dump_callback() 527 if (nla_get_u32(tb_msg[MACSEC_ATTR_IFINDEX]) != (u32) arg->ifindex) in dump_callback() 530 if (arg->txsa < 4 && !tb_msg[MACSEC_ATTR_TXSA_LIST]) { in dump_callback() 536 nla_for_each_nested(nla, tb_msg[MACSEC_ATTR_TXSA_LIST], rem) { in dump_callback() 559 if (tb_msg[MACSEC_ATTR_RXSC_LIST]) { in dump_callback() 563 nla_for_each_nested(nla, tb_msg[MACSEC_ATTR_RXSC_LIST], rem) { in dump_callback()
|
D | driver_nl80211.c | 1810 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in nl80211_get_country() local 1813 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_get_country() 1815 if (!tb_msg[NL80211_ATTR_REG_ALPHA2]) { in nl80211_get_country() 1819 os_strlcpy(alpha2, nla_data(tb_msg[NL80211_ATTR_REG_ALPHA2]), 3); in nl80211_get_country() 11585 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in nl80211_get_bss_transition_status_handler() local 11604 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_get_bss_transition_status_handler() 11607 if (!tb_msg[NL80211_ATTR_VENDOR_DATA] || in nl80211_get_bss_transition_status_handler() 11609 tb_msg[NL80211_ATTR_VENDOR_DATA], NULL) || in nl80211_get_bss_transition_status_handler()
|
/external/libnl/python/netlink/ |
D | capi.i | 859 struct nlattr *tb_msg[max + 1]; in py_nla_parse_nested() local 883 err = nla_parse_nested(tb_msg, max, nest_attr, policy); in py_nla_parse_nested() 889 if (tb_msg[i]) { in py_nla_parse_nested() 891 v = SWIG_NewPointerObj(SWIG_as_voidptr(tb_msg[i]), SWIGTYPE_p_nlattr, 0 | 0 ); in py_nla_parse_nested()
|