Lines Matching refs:nlattr
68 struct net *netns, struct nlattr **attrs) in __cfg80211_wdev_from_attrs()
140 __cfg80211_rdev_from_attrs(struct net *netns, struct nlattr **attrs) in __cfg80211_rdev_from_attrs()
225 static int validate_beacon_head(const struct nlattr *attr, in validate_beacon_head()
270 static int validate_ie_attr(const struct nlattr *attr, in validate_ie_attr()
288 static int validate_he_capa(const struct nlattr *attr, in validate_he_capa()
988 struct nlattr **attrbuf) in nl80211_prepare_wdev_dump()
993 struct nlattr **attrbuf_free = NULL; in nl80211_prepare_wdev_dump()
1070 struct nlattr *nl_wmm_rules = in nl80211_msg_put_wmm_rules()
1077 struct nlattr *nl_wmm_rule = nla_nest_start_noflag(msg, j); in nl80211_msg_put_wmm_rules()
1227 struct nlattr *txqattr; in nl80211_put_txq_stats()
1269 static unsigned int nl80211_link_id(struct nlattr **attrs) in nl80211_link_id()
1271 struct nlattr *linkid = attrs[NL80211_ATTR_MLO_LINK_ID]; in nl80211_link_id()
1279 static int nl80211_link_id_or_invalid(struct nlattr **attrs) in nl80211_link_id_or_invalid()
1281 struct nlattr *linkid = attrs[NL80211_ATTR_MLO_LINK_ID]; in nl80211_link_id_or_invalid()
1297 static int nl80211_parse_key_new(struct genl_info *info, struct nlattr *key, in nl80211_parse_key_new()
1300 struct nlattr *tb[NL80211_KEY_MAX + 1]; in nl80211_parse_key_new()
1338 struct nlattr *kdt[NUM_NL80211_KEY_DEFAULT_TYPES]; in nl80211_parse_key_new()
1390 struct nlattr *kdt[NUM_NL80211_KEY_DEFAULT_TYPES]; in nl80211_parse_key_old()
1470 struct nlattr *keys = info->attrs[NL80211_ATTR_KEYS]; in nl80211_parse_connkeys()
1472 struct nlattr *key; in nl80211_parse_connkeys()
1598 struct nlattr *nl_modes = nla_nest_start_noflag(msg, attr); in nl80211_put_iftypes()
1623 struct nlattr *nl_combis; in nl80211_put_iface_combinations()
1633 struct nlattr *nl_combi, *nl_limits; in nl80211_put_iface_combinations()
1647 struct nlattr *nl_limit; in nl80211_put_iface_combinations()
1697 struct nlattr *nl_tcp; in nl80211_send_wowlan_tcp_caps()
1738 struct nlattr *nl_wowlan; in nl80211_send_wowlan()
1890 struct nlattr *nl_rates, *nl_rate; in nl80211_send_band_rateinfo()
1917 struct nlattr *nl_iftype_data = in nl80211_send_band_rateinfo()
1926 struct nlattr *iftdata; in nl80211_send_band_rateinfo()
1994 struct nlattr *nl_ftypes, *nl_ifs; in nl80211_send_mgmt_stypes()
2141 struct nlattr *ftm; in nl80211_send_pmsr_ftm_capa()
2190 struct nlattr *pmsr, *caps; in nl80211_send_pmsr_capa()
2233 struct nlattr *nested, *nested_akms; in nl80211_put_iftype_akm_suites()
2272 struct nlattr *supp; in nl80211_put_tid_config_support()
2314 struct nlattr *sar_capa, *specs, *sub_freq_range; in nl80211_put_sar_specs()
2362 struct nlattr *config; in nl80211_put_mbssid_support()
2402 struct nlattr *nl_bands, *nl_band; in nl80211_send_wiphy()
2403 struct nlattr *nl_freqs, *nl_freq; in nl80211_send_wiphy()
2404 struct nlattr *nl_cmds; in nl80211_send_wiphy()
2807 struct nlattr *nested; in nl80211_send_wiphy()
2824 struct nlattr *nested; in nl80211_send_wiphy()
2861 struct nlattr *nested; in nl80211_send_wiphy()
2885 struct nlattr *nested_ext_capab, *nested; in nl80211_send_wiphy()
3015 struct nlattr **tb = kcalloc(NUM_NL80211_ATTR, sizeof(*tb), GFP_KERNEL); in nl80211_dump_wiphy_parse()
3169 static int parse_txq_params(struct nlattr *tb[], in parse_txq_params()
3235 struct nlattr **attrs = info->attrs; in nl80211_parse_chandef()
3472 struct nlattr *nl_txq_params; in nl80211_set_wiphy()
3530 struct nlattr *tb[NL80211_TXQ_ATTR_MAX + 1]; in nl80211_set_wiphy()
3944 struct nlattr *links = nla_nest_start(msg, in nl80211_send_iface()
3951 struct nlattr *link = nla_nest_start(msg, link_id + 1); in nl80211_send_iface()
4088 static int parse_monitor_flags(struct nlattr *nla, u32 *mntrflags) in parse_monitor_flags()
4090 struct nlattr *flags[NL80211_MNTR_FLAG_MAX + 1]; in parse_monitor_flags()
4477 struct nlattr *key; in get_key_callback()
4869 static int validate_acl_mac_addrs(struct nlattr *nl_attr) in validate_acl_mac_addrs()
4871 struct nlattr *attr; in validate_acl_mac_addrs()
4893 struct nlattr *attr; in parse_acl_data()
5165 struct nlattr *attrs[], in nl80211_parse_tx_bitrate_mask()
5172 struct nlattr *tb[NL80211_TXRATE_MAX + 1]; in nl80211_parse_tx_bitrate_mask()
5176 struct nlattr *tx_rates; in nl80211_parse_tx_bitrate_mask()
5389 struct nlattr *attrs, in nl80211_parse_mbssid_config()
5393 struct nlattr *tb[NL80211_MBSSID_CONFIG_ATTR_MAX + 1]; in nl80211_parse_mbssid_config()
5451 nl80211_parse_mbssid_elems(struct wiphy *wiphy, struct nlattr *attrs) in nl80211_parse_mbssid_elems()
5453 struct nlattr *nl_elems; in nl80211_parse_mbssid_elems()
5481 nl80211_parse_rnr_elems(struct wiphy *wiphy, struct nlattr *attrs, in nl80211_parse_rnr_elems()
5484 struct nlattr *nl_elems; in nl80211_parse_rnr_elems()
5512 static int nl80211_parse_he_bss_color(struct nlattr *attrs, in nl80211_parse_he_bss_color()
5515 struct nlattr *tb[NL80211_HE_BSS_COLOR_ATTR_MAX + 1]; in nl80211_parse_he_bss_color()
5537 struct nlattr *attrs[], in nl80211_parse_beacon()
5590 struct nlattr *tb[NL80211_FTM_RESP_ATTR_MAX + 1]; in nl80211_parse_beacon()
5656 static int nl80211_parse_he_obss_pd(struct nlattr *attrs, in nl80211_parse_he_obss_pd()
5659 struct nlattr *tb[NL80211_HE_OBSS_PD_ATTR_MAX + 1]; in nl80211_parse_he_obss_pd()
5701 struct nlattr *attrs, in nl80211_parse_fils_discovery()
5704 struct nlattr *tb[NL80211_FILS_DISCOVERY_ATTR_MAX + 1]; in nl80211_parse_fils_discovery()
5732 struct nlattr *attrs, in nl80211_parse_unsol_bcast_probe_resp()
5735 struct nlattr *tb[NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX + 1]; in nl80211_parse_unsol_bcast_probe_resp()
6326 struct nlattr *flags[NL80211_STA_FLAG_MAX + 1]; in parse_station_flags()
6327 struct nlattr *nla; in parse_station_flags()
6401 struct nlattr *rate; in nl80211_put_sta_rate()
6559 struct nlattr *sinfoattr, *bss_param; in nl80211_send_station()
6704 struct nlattr *tidsattr; in nl80211_send_station()
6714 struct nlattr *tidattr; in nl80211_send_station()
7036 struct nlattr *vlanattr = info->attrs[NL80211_ATTR_STA_VLAN]; in get_vlan()
7073 struct nlattr *tb[NL80211_STA_WME_MAX + 1]; in nl80211_parse_sta_wme()
7074 struct nlattr *nla; in nl80211_parse_sta_wme()
7714 struct nlattr *pinfoattr; in nl80211_send_mpath()
8155 struct nlattr *pinfoattr; in nl80211_get_mesh_config()
8328 struct nlattr *tb[NL80211_MESHCONF_ATTR_MAX + 1]; in nl80211_parse_mesh_config()
8476 struct nlattr *tb[NL80211_MESH_SETUP_ATTR_MAX + 1]; in nl80211_parse_mesh_setup()
8502 struct nlattr *ieattr = in nl80211_parse_mesh_setup()
8561 struct nlattr *nl_reg_rules; in nl80211_put_regdom()
8574 struct nlattr *nl_reg_rule; in nl80211_put_regdom()
8784 static int parse_reg_rule(struct nlattr *tb[], in parse_reg_rule()
8826 struct nlattr *tb[NL80211_REG_RULE_ATTR_MAX + 1]; in nl80211_set_reg()
8827 struct nlattr *nl_reg_rule; in nl80211_set_reg()
8905 static int validate_scan_freqs(struct nlattr *freqs) in validate_scan_freqs()
8907 struct nlattr *attr1, *attr2; in validate_scan_freqs()
8939 static int parse_bss_select(struct nlattr *nla, struct wiphy *wiphy, in parse_bss_select()
8942 struct nlattr *attr[NL80211_BSS_SELECT_ATTR_MAX + 1]; in parse_bss_select()
8943 struct nlattr *nest; in parse_bss_select()
9002 int nl80211_parse_random_mac(struct nlattr **attrs, in nl80211_parse_random_mac()
9094 void *request, struct nlattr **attrs, in nl80211_check_scan_flags()
9175 struct nlattr *scan_freqs = NULL; in nl80211_trigger_scan()
9177 struct nlattr *attr; in nl80211_trigger_scan()
9436 struct nlattr **attrs) in nl80211_parse_sched_scan_plans()
9439 struct nlattr *attr; in nl80211_parse_sched_scan_plans()
9468 struct nlattr *plan[NL80211_SCHED_SCAN_PLAN_MAX + 1]; in nl80211_parse_sched_scan_plans()
9521 struct nlattr *tb_band_rssi, in nl80211_parse_sched_scan_per_band_rssi()
9524 struct nlattr *attr; in nl80211_parse_sched_scan_per_band_rssi()
9555 struct nlattr **attrs, int max_match_sets) in nl80211_parse_sched_scan()
9558 struct nlattr *attr; in nl80211_parse_sched_scan()
9562 struct nlattr *tb[NL80211_SCHED_SCAN_MATCH_ATTR_MAX + 1]; in nl80211_parse_sched_scan()
9595 struct nlattr *rssi; in nl80211_parse_sched_scan()
9786 struct nlattr *ssid, *bssid, *rssi; in nl80211_parse_sched_scan()
10136 struct nlattr **csa_attrs = NULL; in nl80211_channel_switch()
10352 struct nlattr *bss; in nl80211_send_bss()
10543 struct nlattr *infoattr; in nl80211_send_survey()
10618 struct nlattr **attrbuf; in nl80211_dump_survey()
10976 struct nlattr **attrs) in nl80211_assoc_bss()
11011 struct nlattr **attrs = NULL; in nl80211_associate()
11134 struct nlattr *link; in nl80211_associate()
11600 struct nlattr *data; in __cfg80211_alloc_vendor_skb()
11687 struct nlattr *data = ((void **)skb->cb)[2]; in __cfg80211_send_event_skb()
11749 struct nlattr **attrbuf = NULL; in nl80211_testmode_dump()
11809 struct nlattr *tmdata; in nl80211_testmode_dump()
13018 struct nlattr *attrs[NL80211_ATTR_CQM_MAX + 1]; in nl80211_set_cqm()
13019 struct nlattr *cqm; in nl80211_set_cqm()
13217 struct nlattr *nl_pats, *nl_pat; in nl80211_send_wowlan_patterns()
13249 struct nlattr *nl_tcp; in nl80211_send_wowlan_tcp()
13293 struct nlattr *nd, *freqs, *matches, *match, *scan_plans, *scan_plan; in nl80211_send_wowlan_nd()
13408 struct nlattr *nl_wowlan; in nl80211_get_wowlan()
13455 struct nlattr *attr, in nl80211_parse_wowlan_tcp()
13458 struct nlattr *tb[NUM_NL80211_WOWLAN_TCP]; in nl80211_parse_wowlan_tcp()
13602 struct nlattr *attr, in nl80211_parse_wowlan_nd()
13605 struct nlattr **tb; in nl80211_parse_wowlan_nd()
13636 struct nlattr *tb[NUM_NL80211_WOWLAN_TRIG]; in nl80211_set_wowlan()
13711 struct nlattr *pat; in nl80211_set_wowlan()
13714 struct nlattr *pat_tb[NUM_NL80211_PKTPAT]; in nl80211_set_wowlan()
13842 struct nlattr *nl_pats, *nl_pat, *nl_rule, *nl_rules; in nl80211_send_coalesce_rules()
13945 struct nlattr *rule, in nl80211_parse_coalesce_rule()
13950 struct nlattr *tb[NUM_NL80211_ATTR_COALESCE_RULE], *pat; in nl80211_parse_coalesce_rule()
13952 struct nlattr *pat_tb[NUM_NL80211_PKTPAT]; in nl80211_parse_coalesce_rule()
14042 struct nlattr *rule; in nl80211_set_coalesce()
14110 struct nlattr *tb[NUM_NL80211_REKEY_DATA]; in nl80211_set_rekey_data()
14368 static int validate_nan_filter(struct nlattr *filter_attr) in validate_nan_filter()
14370 struct nlattr *attr; in validate_nan_filter()
14384 static int handle_nan_filter(struct nlattr *attr_filter, in handle_nan_filter()
14388 struct nlattr *attr; in handle_nan_filter()
14436 struct nlattr *tb[NUM_NL80211_NAN_FUNC_ATTR], *func_attr; in nl80211_nan_add_func()
14547 struct nlattr *srf_tb[NUM_NL80211_NAN_SRF_ATTR]; in nl80211_nan_add_func()
14580 struct nlattr *attr, *mac_attr = in nl80211_nan_add_func()
14739 struct nlattr *match_attr, *local_func_attr, *peer_func_attr; in cfg80211_nan_match()
14822 struct nlattr *func_attr; in cfg80211_nan_func_terminated()
14978 struct nlattr *attr, in nl80211_vendor_check_policy()
15080 struct nlattr **attrbuf; in nl80211_prepare_vendor_dump()
15200 struct nlattr *vendor_data; in nl80211_vendor_cmd_dump()
15296 struct nlattr *data = ((void **)skb->cb)[2]; in cfg80211_vendor_cmd_reply()
15552 const struct nlattr *nla; in nl80211_set_multicast_to_unicast()
15770 struct nlattr *ftm_stats_attr; in nl80211_get_ftm_responder_stats()
15902 struct nlattr *attrs[], struct net_device *dev, in parse_tid_conf()
16006 struct nlattr *attrs[NL80211_TID_CONFIG_ATTR_MAX + 1]; in nl80211_set_tid_config()
16010 struct nlattr *tid; in nl80211_set_tid_config()
16068 struct nlattr **tb; in nl80211_color_change()
16552 struct nlattr *link_id = info->attrs[NL80211_ATTR_MLO_LINK_ID]; in nl80211_pre_doit()
16639 struct nlattr *spec[], int index) in nl80211_set_sar_sub_specs()
16673 struct nlattr *spec[NL80211_SAR_ATTR_SPECS_MAX + 1]; in nl80211_set_sar_specs()
16674 struct nlattr *tb[NL80211_SAR_ATTR_MAX + 1]; in nl80211_set_sar_specs()
16677 struct nlattr *spec_list; in nl80211_set_sar_specs()
17657 struct nlattr *nest; in nl80211_add_scan_req()
17948 struct nlattr *nla_wmm = in nl80211_send_mlme_event()
18159 struct nlattr *nested; in nl80211_send_connect_result()
18166 struct nlattr *nested_mlo_links; in nl80211_send_connect_result()
18265 struct nlattr *nested; in nl80211_send_roamed()
18272 struct nlattr *nested_mlo_links; in nl80211_send_roamed()
18384 struct nlattr *links; in cfg80211_links_removed()
18421 struct nlattr *link; in cfg80211_links_removed()
18567 struct nlattr *nl_freq; in nl80211_send_beacon_hint_event()
19046 struct nlattr *frame; in __nl80211_rx_control_port()
19295 struct nlattr *rekey_attr; in nl80211_gtk_rekey_notify()
19351 struct nlattr *attr; in nl80211_pmksa_candidate_notify()
19763 struct nlattr *nl_results, *nl_match, *nl_freqs; in cfg80211_net_detect_results()
19850 struct nlattr *reasons; in cfg80211_report_wowlan_wakeup()