/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 | 63 struct nlattr *tb_msg[max + 1]; in py_genlmsg_parse() local 87 err = genlmsg_parse(nlh, uhl, tb_msg, max, policy); in py_genlmsg_parse() 93 if (tb_msg[i]) { in py_genlmsg_parse() 95 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 | 25 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in protocol_feature_handler() local 28 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in protocol_feature_handler() 31 if (tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]) in protocol_feature_handler() 32 *feat = nla_get_u32(tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]); in protocol_feature_handler() 1663 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in phy_info_handler() local 1669 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in phy_info_handler() 1672 if (!tb_msg[NL80211_ATTR_WIPHY_BANDS]) in phy_info_handler() 1675 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) in phy_info_handler() 1981 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in nl80211_get_reg() local 1995 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_get_reg() [all …]
|
D | driver_macsec_linux.c | 510 struct nlattr *tb_msg[MACSEC_ATTR_MAX + 1]; in dump_callback() local 518 err = nla_parse(tb_msg, MACSEC_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in dump_callback() 523 if (!tb_msg[MACSEC_ATTR_IFINDEX]) in dump_callback() 526 if (nla_get_u32(tb_msg[MACSEC_ATTR_IFINDEX]) != (u32) arg->ifindex) in dump_callback() 529 if (arg->txsa < 4 && !tb_msg[MACSEC_ATTR_TXSA_LIST]) { in dump_callback() 535 nla_for_each_nested(nla, tb_msg[MACSEC_ATTR_TXSA_LIST], rem) { in dump_callback() 558 if (tb_msg[MACSEC_ATTR_RXSC_LIST]) { in dump_callback() 562 nla_for_each_nested(nla, tb_msg[MACSEC_ATTR_RXSC_LIST], rem) { in dump_callback()
|
D | driver_nl80211.c | 1669 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in nl80211_get_country() local 1672 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_get_country() 1674 if (!tb_msg[NL80211_ATTR_REG_ALPHA2]) { in nl80211_get_country() 1678 os_strlcpy(alpha2, nla_data(tb_msg[NL80211_ATTR_REG_ALPHA2]), 3); in nl80211_get_country() 10437 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in nl80211_get_bss_transition_status_handler() local 10456 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_get_bss_transition_status_handler() 10459 if (!tb_msg[NL80211_ATTR_VENDOR_DATA] || in nl80211_get_bss_transition_status_handler() 10461 tb_msg[NL80211_ATTR_VENDOR_DATA], NULL) || in nl80211_get_bss_transition_status_handler()
|
/external/libnl/python/netlink/ |
D | capi.i | 841 struct nlattr *tb_msg[max + 1]; in py_nla_parse_nested() local 865 err = nla_parse_nested(tb_msg, max, nest_attr, policy); in py_nla_parse_nested() 871 if (tb_msg[i]) { in py_nla_parse_nested() 873 v = SWIG_NewPointerObj(SWIG_as_voidptr(tb_msg[i]), SWIGTYPE_p_nlattr, 0 | 0 ); in py_nla_parse_nested()
|