Home
last modified time | relevance | path

Searched refs:gnlh (Results 1 – 22 of 22) sorted by relevance

/external/libnl/lib/genl/
Dgenl.c190 void *genlmsg_data(const struct genlmsghdr *gnlh) in genlmsg_data() argument
192 return ((unsigned char *) gnlh + GENL_HDRLEN); in genlmsg_data()
199 int genlmsg_len(const struct genlmsghdr *gnlh) in genlmsg_len() argument
201 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len()
211 struct nlattr *genlmsg_attrdata(const struct genlmsghdr *gnlh, int hdrlen) in genlmsg_attrdata() argument
213 return genlmsg_data(gnlh) + NLMSG_ALIGN(hdrlen); in genlmsg_attrdata()
221 int genlmsg_attrlen(const struct genlmsghdr *gnlh, int hdrlen) in genlmsg_attrlen() argument
223 return genlmsg_len(gnlh) - NLMSG_ALIGN(hdrlen); in genlmsg_attrlen()
/external/iw/
Dlink.c27 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in link_bss_handler() local
43 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in link_bss_handler()
44 genlmsg_attrlen(gnlh, 0), NULL); in link_bss_handler()
116 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_link_sta() local
139 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_link_sta()
140 genlmsg_attrlen(gnlh, 0), NULL); in print_link_sta()
Dps.c48 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_power_save_handler() local
51 nla_parse(attrs, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_power_save_handler()
52 genlmsg_attrlen(gnlh, 0), NULL); in print_power_save_handler()
Dmpp.c19 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_mpp_handler() local
22 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_mpp_handler()
23 genlmsg_attrlen(gnlh, 0), NULL); in print_mpp_handler()
Dsurvey.c19 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_survey_handler() local
28 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_survey_handler()
29 genlmsg_attrlen(gnlh, 0), NULL); in print_survey_handler()
Devent.c296 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_event() local
323 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_event()
324 genlmsg_attrlen(gnlh, 0), NULL); in print_event()
342 switch (gnlh->cmd) { in print_event()
352 if (gnlh->cmd == NL80211_CMD_SCAN_ABORTED) in print_event()
613 gnlh->cmd, command_name(gnlh->cmd)); in print_event()
631 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in wait_event() local
635 if (gnlh->cmd == wait->cmds[i]) { in wait_event()
636 wait->cmd = gnlh->cmd; in wait_event()
Dgenl.c39 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in family_handler() local
43 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in family_handler()
44 genlmsg_attrlen(gnlh, 0), NULL); in family_handler()
Dhwsim.c39 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_hwsim_ps_handler() local
41 nla_parse(attrs, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_hwsim_ps_handler()
42 genlmsg_attrlen(gnlh, 0), NULL); in print_hwsim_ps_handler()
Dmpath.c30 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_mpath_handler() local
43 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_mpath_handler()
44 genlmsg_attrlen(gnlh, 0), NULL); in print_mpath_handler()
Dreg.c124 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_reg_handler() local
139 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_reg_handler()
140 genlmsg_attrlen(gnlh, 0), NULL); in print_reg_handler()
Dcoalesce.c201 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_coalesce_handler() local
207 nla_parse(attrs, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_coalesce_handler()
208 genlmsg_attrlen(gnlh, 0), NULL); in print_coalesce_handler()
Dinfo.c81 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_phy_handler() local
119 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_phy_handler()
120 genlmsg_attrlen(gnlh, 0), NULL); in print_phy_handler()
688 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_feature_handler() local
692 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_feature_handler()
693 genlmsg_attrlen(gnlh, 0), NULL); in print_feature_handler()
Dwowlan.c352 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_wowlan_handler() local
356 nla_parse(attrs, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_wowlan_handler()
357 genlmsg_attrlen(gnlh, 0), NULL); in print_wowlan_handler()
Dinterface.c308 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_iface_handler() local
313 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_iface_handler()
314 genlmsg_attrlen(gnlh, 0), NULL); in print_iface_handler()
Dmesh.c377 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_mesh_param_handler() local
380 nla_parse(attrs, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_mesh_param_handler()
381 genlmsg_attrlen(gnlh, 0), NULL); in print_mesh_param_handler()
Dstation.c124 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_sta_handler() local
153 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_sta_handler()
154 genlmsg_attrlen(gnlh, 0), NULL); in print_sta_handler()
Dscan.c1851 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in print_bss_handler() local
1871 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in print_bss_handler()
1872 genlmsg_attrlen(gnlh, 0), NULL); in print_bss_handler()
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_capa.c26 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in protocol_feature_handler() local
28 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in protocol_feature_handler()
29 genlmsg_attrlen(gnlh, 0), NULL); in protocol_feature_handler()
485 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in wiphy_info_handler() local
490 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in wiphy_info_handler()
491 genlmsg_attrlen(gnlh, 0), NULL); in wiphy_info_handler()
748 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in dfs_info_handler() local
751 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in dfs_info_handler()
752 genlmsg_attrlen(gnlh, 0), NULL); in dfs_info_handler()
807 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in features_info_handler() local
[all …]
Ddriver_nl80211_scan.c26 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in get_noise_for_scan_results() local
36 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in get_noise_for_scan_results()
37 genlmsg_attrlen(gnlh, 0), NULL); in get_noise_for_scan_results()
568 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in bss_info_handler() local
592 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in bss_info_handler()
593 genlmsg_attrlen(gnlh, 0), NULL); in bss_info_handler()
890 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in scan_cookie_handler() local
893 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in scan_cookie_handler()
894 genlmsg_attrlen(gnlh, 0), NULL); in scan_cookie_handler()
Ddriver_nl80211.c394 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in family_handler() local
398 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in family_handler()
399 genlmsg_attrlen(gnlh, 0), NULL); in family_handler()
522 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in netdev_info_handler() local
525 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in netdev_info_handler()
526 genlmsg_attrlen(gnlh, 0), NULL); in netdev_info_handler()
635 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_beacon_event() local
639 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_beacon_event()
640 genlmsg_attrlen(gnlh, 0), NULL); in process_beacon_event()
642 if (gnlh->cmd != NL80211_CMD_FRAME) { in process_beacon_event()
[all …]
Ddriver_nl80211_event.c2223 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_global_event() local
2231 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_global_event()
2232 genlmsg_attrlen(gnlh, 0), NULL); in process_global_event()
2248 do_process_drv_event(bss, gnlh->cmd, tb); in process_global_event()
2254 gnlh->cmd, ifidx, (long long unsigned int) wdev_id); in process_global_event()
2264 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_bss_event() local
2267 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_bss_event()
2268 genlmsg_attrlen(gnlh, 0), NULL); in process_bss_event()
2271 gnlh->cmd, nl80211_command_to_string(gnlh->cmd), in process_bss_event()
2274 switch (gnlh->cmd) { in process_bss_event()
[all …]
/external/autotest/client/deps/iwcap/src/
Diwcap.c274 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in check_phy_handler() local
301 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in check_phy_handler()
302 genlmsg_attrlen(gnlh, 0), NULL); in check_phy_handler()