• Home
  • Raw
  • Download

Lines Matching refs:sdata

28 	struct ieee80211_sub_if_data *sdata,  in ieee80211_if_read()  argument
37 if (sdata->dev->reg_state == NETREG_REGISTERED) in ieee80211_if_read()
38 ret = (*format)(sdata, buf, sizeof(buf)); in ieee80211_if_read()
48 struct ieee80211_sub_if_data *sdata, in ieee80211_if_write() argument
65 if (sdata->dev->reg_state == NETREG_REGISTERED) in ieee80211_if_write()
66 ret = (*write)(sdata, buf, count); in ieee80211_if_write()
74 const struct ieee80211_sub_if_data *sdata, char *buf, \
77 return scnprintf(buf, buflen, format_string, sdata->field); \
90 const struct ieee80211_sub_if_data *sdata, \
95 for (i = 0; i < sizeof(sdata->field); i++) { \
97 sdata->field[i]); \
105 const struct ieee80211_sub_if_data *sdata, \
108 return scnprintf(buf, buflen, "%d\n", atomic_read(&sdata->field));\
113 const struct ieee80211_sub_if_data *sdata, char *buf, \
116 return scnprintf(buf, buflen, "%pM\n", sdata->field); \
121 const struct ieee80211_sub_if_data *sdata, \
124 return scnprintf(buf, buflen, "%d\n", sdata->field / 16); \
129 const struct ieee80211_sub_if_data *sdata, \
133 jiffies_to_msecs(sdata->field)); \
185 ieee80211_if_fmt_hw_queues(const struct ieee80211_sub_if_data *sdata, in ieee80211_if_fmt_hw_queues() argument
191 sdata->vif.hw_queue[IEEE80211_AC_VO], in ieee80211_if_fmt_hw_queues()
192 sdata->vif.hw_queue[IEEE80211_AC_VI], in ieee80211_if_fmt_hw_queues()
193 sdata->vif.hw_queue[IEEE80211_AC_BE], in ieee80211_if_fmt_hw_queues()
194 sdata->vif.hw_queue[IEEE80211_AC_BK]); in ieee80211_if_fmt_hw_queues()
196 if (sdata->vif.type == NL80211_IFTYPE_AP) in ieee80211_if_fmt_hw_queues()
198 sdata->vif.cab_queue); in ieee80211_if_fmt_hw_queues()
211 static int ieee80211_set_smps(struct ieee80211_sub_if_data *sdata, in ieee80211_set_smps() argument
214 struct ieee80211_local *local = sdata->local; in ieee80211_set_smps()
228 if (sdata->vif.type != NL80211_IFTYPE_STATION) in ieee80211_set_smps()
231 mutex_lock(&sdata->u.mgd.mtx); in ieee80211_set_smps()
232 err = __ieee80211_request_smps(sdata, smps_mode); in ieee80211_set_smps()
233 mutex_unlock(&sdata->u.mgd.mtx); in ieee80211_set_smps()
245 static ssize_t ieee80211_if_fmt_smps(const struct ieee80211_sub_if_data *sdata, in ieee80211_if_fmt_smps() argument
248 if (sdata->vif.type != NL80211_IFTYPE_STATION) in ieee80211_if_fmt_smps()
252 smps_modes[sdata->u.mgd.req_smps], in ieee80211_if_fmt_smps()
253 smps_modes[sdata->smps_mode]); in ieee80211_if_fmt_smps()
256 static ssize_t ieee80211_if_parse_smps(struct ieee80211_sub_if_data *sdata, in ieee80211_if_parse_smps() argument
263 int err = ieee80211_set_smps(sdata, mode); in ieee80211_if_parse_smps()
276 const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) in ieee80211_if_fmt_tkip_mic_test() argument
282 struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) in ieee80211_if_parse_tkip_mic_test() argument
284 struct ieee80211_local *local = sdata->local; in ieee80211_if_parse_tkip_mic_test()
293 if (!ieee80211_sdata_running(sdata)) in ieee80211_if_parse_tkip_mic_test()
305 switch (sdata->vif.type) { in ieee80211_if_parse_tkip_mic_test()
310 memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_if_parse_tkip_mic_test()
311 memcpy(hdr->addr3, sdata->vif.addr, ETH_ALEN); in ieee80211_if_parse_tkip_mic_test()
316 mutex_lock(&sdata->u.mgd.mtx); in ieee80211_if_parse_tkip_mic_test()
317 if (!sdata->u.mgd.associated) { in ieee80211_if_parse_tkip_mic_test()
318 mutex_unlock(&sdata->u.mgd.mtx); in ieee80211_if_parse_tkip_mic_test()
322 memcpy(hdr->addr1, sdata->u.mgd.associated->bssid, ETH_ALEN); in ieee80211_if_parse_tkip_mic_test()
323 memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_if_parse_tkip_mic_test()
325 mutex_unlock(&sdata->u.mgd.mtx); in ieee80211_if_parse_tkip_mic_test()
342 ieee80211_tx_skb(sdata, skb); in ieee80211_if_parse_tkip_mic_test()
350 const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) in ieee80211_if_fmt_uapsd_queues() argument
352 const struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_if_fmt_uapsd_queues()
358 struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) in ieee80211_if_parse_uapsd_queues() argument
360 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_if_parse_uapsd_queues()
378 const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) in ieee80211_if_fmt_uapsd_max_sp_len() argument
380 const struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_if_fmt_uapsd_max_sp_len()
386 struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) in ieee80211_if_parse_uapsd_max_sp_len() argument
388 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_if_parse_uapsd_max_sp_len()
411 const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) in ieee80211_if_fmt_num_buffered_multicast() argument
414 skb_queue_len(&sdata->u.ap.ps.bc_buf)); in ieee80211_if_fmt_num_buffered_multicast()
420 const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) in ieee80211_if_fmt_tsf() argument
422 struct ieee80211_local *local = sdata->local; in ieee80211_if_fmt_tsf()
425 tsf = drv_get_tsf(local, (struct ieee80211_sub_if_data *)sdata); in ieee80211_if_fmt_tsf()
431 struct ieee80211_sub_if_data *sdata, const char *buf, int buflen) in ieee80211_if_parse_tsf() argument
433 struct ieee80211_local *local = sdata->local; in ieee80211_if_parse_tsf()
440 drv_reset_tsf(local, sdata); in ieee80211_if_parse_tsf()
457 tsf = drv_get_tsf(local, sdata) + tsf_is_delta * tsf; in ieee80211_if_parse_tsf()
459 drv_set_tsf(local, sdata, tsf); in ieee80211_if_parse_tsf()
534 debugfs_create_file(#name, mode, sdata->vif.debugfs_dir, \
535 sdata, &name##_ops);
539 static void add_common_files(struct ieee80211_sub_if_data *sdata) in add_common_files() argument
549 static void add_sta_files(struct ieee80211_sub_if_data *sdata) in add_sta_files() argument
562 static void add_ap_files(struct ieee80211_sub_if_data *sdata) in add_ap_files() argument
571 static void add_ibss_files(struct ieee80211_sub_if_data *sdata) in add_ibss_files() argument
576 static void add_wds_files(struct ieee80211_sub_if_data *sdata) in add_wds_files() argument
583 static void add_mesh_files(struct ieee80211_sub_if_data *sdata) in add_mesh_files() argument
588 static void add_mesh_stats(struct ieee80211_sub_if_data *sdata) in add_mesh_stats() argument
591 sdata->vif.debugfs_dir); in add_mesh_stats()
593 debugfs_create_file(#name, 0400, dir, sdata, &name##_ops); in add_mesh_stats()
605 static void add_mesh_config(struct ieee80211_sub_if_data *sdata) in add_mesh_config() argument
608 sdata->vif.debugfs_dir); in add_mesh_config()
611 debugfs_create_file(#name, 0600, dir, sdata, &name##_ops); in add_mesh_config()
643 static void add_files(struct ieee80211_sub_if_data *sdata) in add_files() argument
645 if (!sdata->vif.debugfs_dir) in add_files()
654 if (sdata->vif.type != NL80211_IFTYPE_MONITOR) in add_files()
655 add_common_files(sdata); in add_files()
657 switch (sdata->vif.type) { in add_files()
660 add_mesh_files(sdata); in add_files()
661 add_mesh_stats(sdata); in add_files()
662 add_mesh_config(sdata); in add_files()
666 add_sta_files(sdata); in add_files()
669 add_ibss_files(sdata); in add_files()
672 add_ap_files(sdata); in add_files()
675 add_wds_files(sdata); in add_files()
682 void ieee80211_debugfs_add_netdev(struct ieee80211_sub_if_data *sdata) in ieee80211_debugfs_add_netdev() argument
686 sprintf(buf, "netdev:%s", sdata->name); in ieee80211_debugfs_add_netdev()
687 sdata->vif.debugfs_dir = debugfs_create_dir(buf, in ieee80211_debugfs_add_netdev()
688 sdata->local->hw.wiphy->debugfsdir); in ieee80211_debugfs_add_netdev()
689 if (sdata->vif.debugfs_dir) in ieee80211_debugfs_add_netdev()
690 sdata->debugfs.subdir_stations = debugfs_create_dir("stations", in ieee80211_debugfs_add_netdev()
691 sdata->vif.debugfs_dir); in ieee80211_debugfs_add_netdev()
692 add_files(sdata); in ieee80211_debugfs_add_netdev()
695 void ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data *sdata) in ieee80211_debugfs_remove_netdev() argument
697 if (!sdata->vif.debugfs_dir) in ieee80211_debugfs_remove_netdev()
700 debugfs_remove_recursive(sdata->vif.debugfs_dir); in ieee80211_debugfs_remove_netdev()
701 sdata->vif.debugfs_dir = NULL; in ieee80211_debugfs_remove_netdev()
704 void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata) in ieee80211_debugfs_rename_netdev() argument
709 dir = sdata->vif.debugfs_dir; in ieee80211_debugfs_rename_netdev()
714 sprintf(buf, "netdev:%s", sdata->name); in ieee80211_debugfs_rename_netdev()
716 sdata_err(sdata, in ieee80211_debugfs_rename_netdev()