/external/iw/ |
H A D | info.c | 80 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 119 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 122 if (tb_msg[NL80211_ATTR_WIPHY]) { 123 if (nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]) == phy_id) 127 phy_id = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]); 129 if (print_name && tb_msg[NL80211_ATTR_WIPHY_NAME]) 130 printf("Wiphy %s\n", nla_get_string(tb_msg[NL80211_ATTR_WIPHY_NAME])); 133 if (tb_msg[NL80211_ATTR_WIPHY_BANDS]) { 134 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) { 241 if (tb_msg[NL80211_ATTR_MAX_NUM_SCAN_SSID 687 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local [all...] |
H A D | interface.c | 309 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 313 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 316 if (wiphy && tb_msg[NL80211_ATTR_WIPHY]) { 317 unsigned int thiswiphy = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]); 324 if (tb_msg[NL80211_ATTR_IFNAME]) 325 printf("%sInterface %s\n", indent, nla_get_string(tb_msg[NL80211_ATTR_IFNAME])); 328 if (tb_msg[NL80211_ATTR_IFINDEX]) 329 printf("%s\tifindex %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_IFINDEX])); 330 if (tb_msg[NL80211_ATTR_WDEV]) 332 (unsigned long long)nla_get_u64(tb_msg[NL80211_ATTR_WDE [all...] |
H A D | reg.c | 123 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 139 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 142 if (!tb_msg[NL80211_ATTR_REG_ALPHA2]) { 147 if (!tb_msg[NL80211_ATTR_REG_RULES]) { 152 if (tb_msg[NL80211_ATTR_WIPHY]) 153 printf("phy#%d%s\n", nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]), 154 tb_msg[NL80211_ATTR_WIPHY_SELF_MANAGED_REG] ? 159 if (tb_msg[NL80211_ATTR_DFS_REGION]) 160 dfs_domain = nla_get_u8(tb_msg[NL80211_ATTR_DFS_REGION]); 164 alpha2 = nla_data(tb_msg[NL80211_ATTR_REG_ALPHA [all...] |
/external/autotest/client/deps/iwcap/src/ |
H A D | iwcap.c | 221 static int check_iftype(struct nlattr *tb_msg[], int nl_type) argument 226 if (!tb_msg[NL80211_ATTR_SUPPORTED_IFTYPES]) 229 nla_for_each_nested(nl_mode, tb_msg[NL80211_ATTR_SUPPORTED_IFTYPES], rem_mode) 273 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 301 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 304 if (!tb_msg[NL80211_ATTR_WIPHY_BANDS]) 314 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) { 442 pbool("sta", check_iftype(tb_msg, NL80211_IFTYPE_STATION)); 444 pbool("ibss", check_iftype(tb_msg, NL80211_IFTYPE_ADHOC)); 446 pbool("ap", check_iftype(tb_msg, NL80211_IFTYPE_A [all...] |
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | driver_nl80211_capa.c | 25 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 28 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 31 if (tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]) 32 *feat = nla_get_u32(tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]); 1244 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 1250 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 1253 if (!tb_msg[NL80211_ATTR_WIPHY_BANDS]) 1256 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) 1549 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 1563 nla_parse(tb_msg, NL80211_ATTR_MA [all...] |
H A D | driver_nl80211.c | 1394 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 1397 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 1399 if (!tb_msg[NL80211_ATTR_REG_ALPHA2]) { 1403 os_strlcpy(alpha2, nla_data(tb_msg[NL80211_ATTR_REG_ALPHA2]), 3);
|
/external/wpa_supplicant_8/src/drivers/ |
H A D | driver_nl80211_capa.c | 25 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 28 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 31 if (tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]) 32 *feat = nla_get_u32(tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]); 1244 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 1250 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 1253 if (!tb_msg[NL80211_ATTR_WIPHY_BANDS]) 1256 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) 1549 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 1563 nla_parse(tb_msg, NL80211_ATTR_MA [all...] |
H A D | driver_nl80211.c | 1394 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 1397 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 1399 if (!tb_msg[NL80211_ATTR_REG_ALPHA2]) { 1403 os_strlcpy(alpha2, nla_data(tb_msg[NL80211_ATTR_REG_ALPHA2]), 3);
|
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/ |
H A D | driver_nl80211_capa.c | 25 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 28 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 31 if (tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]) 32 *feat = nla_get_u32(tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]); 1244 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 1250 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 1253 if (!tb_msg[NL80211_ATTR_WIPHY_BANDS]) 1256 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) 1549 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 1563 nla_parse(tb_msg, NL80211_ATTR_MA [all...] |
H A D | driver_nl80211.c | 1394 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; local 1397 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), 1399 if (!tb_msg[NL80211_ATTR_REG_ALPHA2]) { 1403 os_strlcpy(alpha2, nla_data(tb_msg[NL80211_ATTR_REG_ALPHA2]), 3);
|