Home
last modified time | relevance | path

Searched refs:nla_get_u32 (Results 1 – 25 of 35) sorted by relevance

12

/external/iw/
Devent.c34 chan->center_freq = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_FREQ]); in parse_beacon_hint_chan()
124 rssi_event = nla_get_u32(cqm[NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT]); in parse_cqm_event()
148 frames = nla_get_u32(cqm[NL80211_ATTR_CQM_PKT_LOSS_EVENT]); in parse_cqm_event()
195 nla_get_u32(attrs[NL80211_ATTR_KEY_TYPE]); in parse_mic_failure()
228 nla_get_u32(tb[NL80211_WOWLAN_TRIG_PKT_PATTERN])); in parse_wowlan_wake_event()
257 printf(" %d", nla_get_u32(freq)); in parse_wowlan_wake_event()
327 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), ifname); in print_event()
328 printf("%s (phy #%d): ", ifname, nla_get_u32(tb[NL80211_ATTR_WIPHY])); in print_event()
332 nla_get_u32(tb[NL80211_ATTR_WIPHY])); in print_event()
334 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), ifname); in print_event()
[all …]
Dinfo.c123 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()
161 print_vht_info(nla_get_u32(tb_band[NL80211_BAND_ATTR_VHT_CAPA]), in print_phy_handler()
175 freq = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_FREQ]); in print_phy_handler()
180 printf(" (%.1f dBm)", 0.01 * nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_MAX_TX_POWER])); in print_phy_handler()
205 enum nl80211_dfs_state state = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_DFS_STATE]); in print_phy_handler()
210 time = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_DFS_TIME]); in print_phy_handler()
216 nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_DFS_CAC_TIME])); in print_phy_handler()
229 printf("\t\t\t* %2.1f Mbps", 0.1 * nla_get_u32(tb_rate[NL80211_BITRATE_ATTR_RATE])); in print_phy_handler()
257 frag = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_FRAG_THRESHOLD]); in print_phy_handler()
[all …]
Dreg.c153 printf("phy#%d%s\n", nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]), in print_reg_handler()
173 flags = nla_get_u32(tb_rule[NL80211_ATTR_REG_RULE_FLAGS]); in print_reg_handler()
174 start_freq_khz = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_START]); in print_reg_handler()
175 end_freq_khz = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_END]); in print_reg_handler()
176 max_bw_khz = nla_get_u32(tb_rule[NL80211_ATTR_FREQ_RANGE_MAX_BW]); in print_reg_handler()
177 max_ant_gain_mbi = nla_get_u32(tb_rule[NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN]); in print_reg_handler()
178 max_eirp_mbm = nla_get_u32(tb_rule[NL80211_ATTR_POWER_RULE_MAX_EIRP]); in print_reg_handler()
192 printf(", (%u ms)", nla_get_u32(tb_rule[NL80211_ATTR_DFS_CAC_TIME])); in print_reg_handler()
Dlink.c64 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), dev); in link_bss_handler()
66 switch (nla_get_u32(bss[NL80211_BSS_STATUS])) { in link_bss_handler()
89 nla_get_u32(bss[NL80211_BSS_FREQUENCY])); in link_bss_handler()
91 if (nla_get_u32(bss[NL80211_BSS_STATUS]) != NL80211_BSS_STATUS_ASSOCIATED) in link_bss_handler()
155 nla_get_u32(sinfo[NL80211_STA_INFO_RX_BYTES]), in print_link_sta()
156 nla_get_u32(sinfo[NL80211_STA_INFO_RX_PACKETS])); in print_link_sta()
159 nla_get_u32(sinfo[NL80211_STA_INFO_TX_BYTES]), in print_link_sta()
160 nla_get_u32(sinfo[NL80211_STA_INFO_TX_PACKETS])); in print_link_sta()
Dmpath.c65 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), dev); in print_mpath_handler()
69 nla_get_u32(pinfo[NL80211_MPATH_INFO_SN])); in print_mpath_handler()
72 nla_get_u32(pinfo[NL80211_MPATH_INFO_METRIC])); in print_mpath_handler()
75 nla_get_u32(pinfo[NL80211_MPATH_INFO_FRAME_QLEN])); in print_mpath_handler()
78 nla_get_u32(pinfo[NL80211_MPATH_INFO_EXPTIME])); in print_mpath_handler()
81 nla_get_u32(pinfo[NL80211_MPATH_INFO_DISCOVERY_TIMEOUT])); in print_mpath_handler()
Dstation.c28 enum nl80211_mesh_power_mode pm = nla_get_u32(a); in print_power_mode()
66 rate = nla_get_u32(rinfo[NL80211_RATE_INFO_BITRATE32]); in parse_bitrate()
174 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), dev); in print_sta_handler()
179 nla_get_u32(sinfo[NL80211_STA_INFO_INACTIVE_TIME])); in print_sta_handler()
182 nla_get_u32(sinfo[NL80211_STA_INFO_RX_BYTES])); in print_sta_handler()
185 nla_get_u32(sinfo[NL80211_STA_INFO_RX_PACKETS])); in print_sta_handler()
188 nla_get_u32(sinfo[NL80211_STA_INFO_TX_BYTES])); in print_sta_handler()
191 nla_get_u32(sinfo[NL80211_STA_INFO_TX_PACKETS])); in print_sta_handler()
194 nla_get_u32(sinfo[NL80211_STA_INFO_TX_RETRIES])); in print_sta_handler()
197 nla_get_u32(sinfo[NL80211_STA_INFO_TX_FAILED])); in print_sta_handler()
[all …]
Dinterface.c317 unsigned int thiswiphy = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]); in print_iface_handler()
329 printf("%s\tifindex %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_IFINDEX])); in print_iface_handler()
345 printf("%s\ttype %s\n", indent, iftype_name(nla_get_u32(tb_msg[NL80211_ATTR_IFTYPE]))); in print_iface_handler()
347 printf("%s\twiphy %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_WIPHY])); in print_iface_handler()
349 uint32_t freq = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_FREQ]); in print_iface_handler()
356 channel_width_name(nla_get_u32(tb_msg[NL80211_ATTR_CHANNEL_WIDTH]))); in print_iface_handler()
359 nla_get_u32(tb_msg[NL80211_ATTR_CENTER_FREQ1])); in print_iface_handler()
362 nla_get_u32(tb_msg[NL80211_ATTR_CENTER_FREQ2])); in print_iface_handler()
366 channel_type = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_CHANNEL_TYPE]); in print_iface_handler()
Dmesh.c152 printf("%d", nla_get_u32(a)); in _print_u32()
157 printf("%u milliseconds", nla_get_u32(a)); in _print_u32_timeout()
162 printf("%d seconds", nla_get_u32(a)); in _print_u32_in_seconds()
167 printf("%d TUs", nla_get_u32(a)); in _print_u32_in_TUs()
172 unsigned long v = nla_get_u32(a); in _print_u32_power_mode()
192 printf("%d dBm", (int32_t) nla_get_u32(a)); in _print_s32_in_dBm()
Dsurvey.c31 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), dev); in print_survey_handler()
48 nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]), in print_survey_handler()
Dcoalesce.c223 delay = nla_get_u32(ruleattr[NL80211_ATTR_COALESCE_RULE_DELAY]); in print_coalesce_handler()
225 nla_get_u32(ruleattr[NL80211_ATTR_COALESCE_RULE_CONDITION]); in print_coalesce_handler()
252 pkt_offset = nla_get_u32(patattr[NL80211_PKTPAT_OFFSET]); in print_coalesce_handler()
Dwowlan.c397 nla_get_u32(nd[NL80211_ATTR_SCHED_SCAN_INTERVAL])); in print_wowlan_handler()
401 nla_get_u32(nd[NL80211_ATTR_SCHED_SCAN_DELAY])); in print_wowlan_handler()
423 printf(" %d", nla_get_u32(freq)); in print_wowlan_handler()
450 nla_get_u32(patattr[NL80211_PKTPAT_OFFSET]); in print_wowlan_handler()
Dps.c57 switch (nla_get_u32(attrs[NL80211_ATTR_PS_STATE])) { in print_power_save_handler()
Dmpp.c33 if_indextoname(nla_get_u32(tb[NL80211_ATTR_IFINDEX]), dev); in print_mpp_handler()
Dgenl.c61 grp->id = nla_get_u32(tb_mcgrp[CTRL_ATTR_MCAST_GRP_ID]); in family_handler()
/external/libnl/lib/netfilter/
Dlog_msg.c96 nfnl_log_msg_set_mark(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
110 nfnl_log_msg_set_indev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
114 nfnl_log_msg_set_outdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
118 nfnl_log_msg_set_physindev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
122 nfnl_log_msg_set_physoutdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
147 nfnl_log_msg_set_uid(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
151 nfnl_log_msg_set_gid(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
155 nfnl_log_msg_set_seq(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
159 nfnl_log_msg_set_seq_global(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
Dqueue_msg.c96 nfnl_queue_msg_set_mark(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
110 nfnl_queue_msg_set_indev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
114 nfnl_queue_msg_set_outdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
118 nfnl_queue_msg_set_physindev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
122 nfnl_queue_msg_set_physoutdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
Dct.c264 ntohl(nla_get_u32(tb[CTA_COUNTERS32_PACKETS]))); in ct_parse_counters()
270 ntohl(nla_get_u32(tb[CTA_COUNTERS32_BYTES]))); in ct_parse_counters()
327 nfnl_ct_set_status(ct, ntohl(nla_get_u32(tb[CTA_STATUS]))); in nfnlmsg_ct_parse()
329 nfnl_ct_set_timeout(ct, ntohl(nla_get_u32(tb[CTA_TIMEOUT]))); in nfnlmsg_ct_parse()
331 nfnl_ct_set_mark(ct, ntohl(nla_get_u32(tb[CTA_MARK]))); in nfnlmsg_ct_parse()
333 nfnl_ct_set_use(ct, ntohl(nla_get_u32(tb[CTA_USE]))); in nfnlmsg_ct_parse()
335 nfnl_ct_set_id(ct, ntohl(nla_get_u32(tb[CTA_ID]))); in nfnlmsg_ct_parse()
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_capa.c32 *feat = nla_get_u32(tb_msg[NL80211_ATTR_PROTOCOL_FEATURES]); in protocol_feature_handler()
194 nla_get_u32(tb_comb[NL80211_IFACE_COMB_NUM_CHANNELS]); in wiphy_info_iface_comb_process()
231 switch (nla_get_u32(nl_cmd)) { in wiphy_info_supp_cmds()
318 capa->max_remain_on_chan = nla_get_u32(tb); in wiphy_info_max_roc()
374 flags = nla_get_u32(tb); in wiphy_info_feature_flags()
445 protocols = nla_get_u32(tb); in wiphy_info_probe_resp_offload()
494 drv->wiphy_idx = nla_get_u32(tb[NL80211_ATTR_WIPHY]); in wiphy_info_handler()
512 nla_get_u32(tb[NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS]); in wiphy_info_handler()
515 nla_get_u32(tb[NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL]); in wiphy_info_handler()
518 nla_get_u32(tb[NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS]); in wiphy_info_handler()
[all …]
Ddriver_nl80211_event.c470 ifidx = nla_get_u32(ifindex); in mlme_event_ch_switch()
479 enum nl80211_channel_type ch_type = nla_get_u32(type); in mlme_event_ch_switch()
497 chan_offset = calculate_chan_offset(nla_get_u32(bw), in mlme_event_ch_switch()
498 nla_get_u32(freq), in mlme_event_ch_switch()
499 nla_get_u32(cf1), in mlme_event_ch_switch()
500 cf2 ? nla_get_u32(cf2) : 0); in mlme_event_ch_switch()
506 data.ch_switch.freq = nla_get_u32(freq); in mlme_event_ch_switch()
510 data.ch_switch.ch_width = convert2width(nla_get_u32(bw)); in mlme_event_ch_switch()
512 data.ch_switch.cf1 = nla_get_u32(cf1); in mlme_event_ch_switch()
514 data.ch_switch.cf2 = nla_get_u32(cf2); in mlme_event_ch_switch()
[all …]
Ddriver_nl80211_scan.c62 if ((int) nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]) != in get_noise_for_scan_results()
601 status = nla_get_u32(bss[NL80211_BSS_STATUS]); in bss_info_handler()
605 nla_get_u32(bss[NL80211_BSS_FREQUENCY]); in bss_info_handler()
612 nla_get_u32(bss[NL80211_BSS_FREQUENCY]); in bss_info_handler()
652 r->freq = nla_get_u32(bss[NL80211_BSS_FREQUENCY]); in bss_info_handler()
659 r->level = nla_get_u32(bss[NL80211_BSS_SIGNAL_MBM]); in bss_info_handler()
675 r->age = nla_get_u32(bss[NL80211_BSS_SEEN_MS_AGO]); in bss_info_handler()
688 status = nla_get_u32(bss[NL80211_BSS_STATUS]); in bss_info_handler()
/external/libnl/lib/genl/
Dctrl.c85 uint32_t version = nla_get_u32(info->attrs[CTRL_ATTR_VERSION]); in ctrl_msg_parser()
90 uint32_t hdrsize = nla_get_u32(info->attrs[CTRL_ATTR_HDRSIZE]); in ctrl_msg_parser()
95 uint32_t maxattr = nla_get_u32(info->attrs[CTRL_ATTR_MAXATTR]); in ctrl_msg_parser()
118 id = nla_get_u32(tb[CTRL_ATTR_OP_ID]); in ctrl_msg_parser()
121 flags = nla_get_u32(tb[CTRL_ATTR_OP_FLAGS]); in ctrl_msg_parser()
/external/libnl/lib/route/cls/
Du32.c78 u->cu_divisor = nla_get_u32(tb[TCA_U32_DIVISOR]); in u32_msg_parser()
90 u->cu_hash = nla_get_u32(tb[TCA_U32_HASH]); in u32_msg_parser()
95 u->cu_classid = nla_get_u32(tb[TCA_U32_CLASSID]); in u32_msg_parser()
100 u->cu_link = nla_get_u32(tb[TCA_U32_LINK]); in u32_msg_parser()
/external/libnl/lib/route/
Dneightbl.c154 ntbl->nt_gc_thresh1 = nla_get_u32(tb[NDTA_THRESH1]); in neightbl_msg_parser()
159 ntbl->nt_gc_thresh2 = nla_get_u32(tb[NDTA_THRESH2]); in neightbl_msg_parser()
164 ntbl->nt_gc_thresh3 = nla_get_u32(tb[NDTA_THRESH3]); in neightbl_msg_parser()
169 ntbl->nt_gc_interval = nla_get_u32(tb[NDTA_GC_INTERVAL]); in neightbl_msg_parser()
195 p->ntp_ ##var = nla_get_u32(tbp[NDTPA_ ##name]); \ in neightbl_msg_parser()
Drule.c112 rule->r_prio = nla_get_u32(tb[RTA_PRIORITY]); in rule_msg_parser()
131 rule->r_mark = nla_get_u32(tb[RTA_PROTOINFO]); in rule_msg_parser()
141 rule->r_realms = nla_get_u32(tb[RTA_FLOW]); in rule_msg_parser()
153 rule->r_table = nla_get_u32(tb[RTA_TABLE]); in rule_msg_parser()
Droute_obj.c893 realms = nla_get_u32(ntb[RTA_FLOW]); in parse_multipath()
976 rtnl_route_set_iif(route, nla_get_u32(tb[RTA_IIF])); in rtnl_route_parse()
979 rtnl_route_set_priority(route, nla_get_u32(tb[RTA_PRIORITY])); in rtnl_route_parse()
998 uint32_t m = nla_get_u32(mtb[i]); in rtnl_route_parse()
1019 rtnl_route_nh_set_ifindex(old_nh, nla_get_u32(tb[RTA_OIF])); in rtnl_route_parse()
1037 rtnl_route_nh_set_realms(old_nh, nla_get_u32(tb[RTA_FLOW])); in rtnl_route_parse()

12