Lines Matching refs:sdata

26 	struct ieee80211_sub_if_data *sdata,  in ieee80211_if_read()  argument
35 if (sdata->dev->reg_state == NETREG_REGISTERED) in ieee80211_if_read()
36 ret = (*format)(sdata, buf, sizeof(buf)); in ieee80211_if_read()
46 struct ieee80211_sub_if_data *sdata, in ieee80211_if_write() argument
64 if (sdata->dev->reg_state == NETREG_REGISTERED) in ieee80211_if_write()
65 ret = (*write)(sdata, buf, count); in ieee80211_if_write()
75 const struct ieee80211_sub_if_data *sdata, char *buf, \
78 return scnprintf(buf, buflen, format_string, sdata->field); \
91 const struct ieee80211_sub_if_data *sdata, \
94 return scnprintf(buf, buflen, "%d\n", atomic_read(&sdata->field));\
99 const struct ieee80211_sub_if_data *sdata, char *buf, \
102 return scnprintf(buf, buflen, "%pM\n", sdata->field); \
107 const struct ieee80211_sub_if_data *sdata, \
110 return scnprintf(buf, buflen, "%d\n", sdata->field / 16); \
160 static int ieee80211_set_smps(struct ieee80211_sub_if_data *sdata, in ieee80211_set_smps() argument
163 struct ieee80211_local *local = sdata->local; in ieee80211_set_smps()
177 if (sdata->vif.type != NL80211_IFTYPE_STATION) in ieee80211_set_smps()
180 mutex_lock(&sdata->u.mgd.mtx); in ieee80211_set_smps()
181 err = __ieee80211_request_smps(sdata, smps_mode); in ieee80211_set_smps()
182 mutex_unlock(&sdata->u.mgd.mtx); in ieee80211_set_smps()
194 static ssize_t ieee80211_if_fmt_smps(const struct ieee80211_sub_if_data *sdata, in ieee80211_if_fmt_smps() argument
197 if (sdata->vif.type != NL80211_IFTYPE_STATION) in ieee80211_if_fmt_smps()
201 smps_modes[sdata->u.mgd.req_smps], in ieee80211_if_fmt_smps()
202 smps_modes[sdata->u.mgd.ap_smps]); in ieee80211_if_fmt_smps()
205 static ssize_t ieee80211_if_parse_smps(struct ieee80211_sub_if_data *sdata, in ieee80211_if_parse_smps() argument
212 int err = ieee80211_set_smps(sdata, mode); in ieee80211_if_parse_smps()
225 const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) in ieee80211_if_fmt_tkip_mic_test() argument
252 struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) in ieee80211_if_parse_tkip_mic_test() argument
254 struct ieee80211_local *local = sdata->local; in ieee80211_if_parse_tkip_mic_test()
269 if (!ieee80211_sdata_running(sdata)) in ieee80211_if_parse_tkip_mic_test()
281 switch (sdata->vif.type) { in ieee80211_if_parse_tkip_mic_test()
286 memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_if_parse_tkip_mic_test()
287 memcpy(hdr->addr3, sdata->vif.addr, ETH_ALEN); in ieee80211_if_parse_tkip_mic_test()
292 if (sdata->vif.bss_conf.bssid == NULL) { in ieee80211_if_parse_tkip_mic_test()
296 memcpy(hdr->addr1, sdata->vif.bss_conf.bssid, ETH_ALEN); in ieee80211_if_parse_tkip_mic_test()
297 memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_if_parse_tkip_mic_test()
315 ieee80211_tx_skb(sdata, skb); in ieee80211_if_parse_tkip_mic_test()
327 const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) in ieee80211_if_fmt_num_buffered_multicast() argument
330 skb_queue_len(&sdata->u.ap.ps_bc_buf)); in ieee80211_if_fmt_num_buffered_multicast()
379 debugfs_create_file(#name, 0400, sdata->debugfs.dir, \
380 sdata, &name##_ops);
383 debugfs_create_file(#name, mode, sdata->debugfs.dir, \
384 sdata, &name##_ops);
386 static void add_sta_files(struct ieee80211_sub_if_data *sdata) in add_sta_files() argument
403 static void add_ap_files(struct ieee80211_sub_if_data *sdata) in add_ap_files() argument
418 static void add_wds_files(struct ieee80211_sub_if_data *sdata) in add_wds_files() argument
430 static void add_vlan_files(struct ieee80211_sub_if_data *sdata) in add_vlan_files() argument
440 static void add_monitor_files(struct ieee80211_sub_if_data *sdata) in add_monitor_files() argument
449 static void add_mesh_stats(struct ieee80211_sub_if_data *sdata) in add_mesh_stats() argument
452 sdata->debugfs.dir); in add_mesh_stats()
455 debugfs_create_file(#name, 0400, dir, sdata, &name##_ops); in add_mesh_stats()
466 static void add_mesh_config(struct ieee80211_sub_if_data *sdata) in add_mesh_config() argument
469 sdata->debugfs.dir); in add_mesh_config()
472 debugfs_create_file(#name, 0600, dir, sdata, &name##_ops); in add_mesh_config()
493 static void add_files(struct ieee80211_sub_if_data *sdata) in add_files() argument
495 if (!sdata->debugfs.dir) in add_files()
498 switch (sdata->vif.type) { in add_files()
501 add_mesh_stats(sdata); in add_files()
502 add_mesh_config(sdata); in add_files()
506 add_sta_files(sdata); in add_files()
512 add_ap_files(sdata); in add_files()
515 add_wds_files(sdata); in add_files()
518 add_monitor_files(sdata); in add_files()
521 add_vlan_files(sdata); in add_files()
528 void ieee80211_debugfs_add_netdev(struct ieee80211_sub_if_data *sdata) in ieee80211_debugfs_add_netdev() argument
532 sprintf(buf, "netdev:%s", sdata->name); in ieee80211_debugfs_add_netdev()
533 sdata->debugfs.dir = debugfs_create_dir(buf, in ieee80211_debugfs_add_netdev()
534 sdata->local->hw.wiphy->debugfsdir); in ieee80211_debugfs_add_netdev()
535 if (sdata->debugfs.dir) in ieee80211_debugfs_add_netdev()
536 sdata->debugfs.subdir_stations = debugfs_create_dir("stations", in ieee80211_debugfs_add_netdev()
537 sdata->debugfs.dir); in ieee80211_debugfs_add_netdev()
538 add_files(sdata); in ieee80211_debugfs_add_netdev()
541 void ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data *sdata) in ieee80211_debugfs_remove_netdev() argument
543 if (!sdata->debugfs.dir) in ieee80211_debugfs_remove_netdev()
546 debugfs_remove_recursive(sdata->debugfs.dir); in ieee80211_debugfs_remove_netdev()
547 sdata->debugfs.dir = NULL; in ieee80211_debugfs_remove_netdev()
550 void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata) in ieee80211_debugfs_rename_netdev() argument
555 dir = sdata->debugfs.dir; in ieee80211_debugfs_rename_netdev()
560 sprintf(buf, "netdev:%s", sdata->name); in ieee80211_debugfs_rename_netdev()