Home
last modified time | relevance | path

Searched refs:tb_msg (Results 1 – 9 of 9) sorted by relevance

/external/iw/
Dinfo.c80 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 …]
Dinterface.c309 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 …]
Dreg.c123 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/
Diwcap.c221 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/
Dcapi.i63 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/
Ddriver_nl80211_capa.c25 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()
1477 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in phy_info_handler() local
1483 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in phy_info_handler()
1486 if (!tb_msg[NL80211_ATTR_WIPHY_BANDS]) in phy_info_handler()
1489 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) in phy_info_handler()
1795 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in nl80211_get_reg() local
1809 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_get_reg()
[all …]
Ddriver_macsec_linux.c490 struct nlattr *tb_msg[MACSEC_ATTR_MAX + 1]; in dump_callback() local
498 err = nla_parse(tb_msg, MACSEC_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in dump_callback()
503 if (!tb_msg[MACSEC_ATTR_IFINDEX]) in dump_callback()
506 if (nla_get_u32(tb_msg[MACSEC_ATTR_IFINDEX]) != (u32) arg->ifindex) in dump_callback()
509 if (arg->txsa < 4 && !tb_msg[MACSEC_ATTR_TXSA_LIST]) { in dump_callback()
515 nla_for_each_nested(nla, tb_msg[MACSEC_ATTR_TXSA_LIST], rem) { in dump_callback()
538 if (tb_msg[MACSEC_ATTR_RXSC_LIST]) { in dump_callback()
542 nla_for_each_nested(nla, tb_msg[MACSEC_ATTR_RXSC_LIST], rem) { in dump_callback()
Ddriver_nl80211.c1526 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in nl80211_get_country() local
1529 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_get_country()
1531 if (!tb_msg[NL80211_ATTR_REG_ALPHA2]) { in nl80211_get_country()
1535 os_strlcpy(alpha2, nla_data(tb_msg[NL80211_ATTR_REG_ALPHA2]), 3); in nl80211_get_country()
9974 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in nl80211_get_bss_transition_status_handler() local
9993 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in nl80211_get_bss_transition_status_handler()
9996 if (!tb_msg[NL80211_ATTR_VENDOR_DATA] || in nl80211_get_bss_transition_status_handler()
9998 tb_msg[NL80211_ATTR_VENDOR_DATA], NULL) || in nl80211_get_bss_transition_status_handler()
/external/libnl/python/netlink/
Dcapi.i841 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()