summaryrefslogtreecommitdiff
path: root/net/wireless/core.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-04-26 08:43:41 +0300
committerJohannes Berg <johannes.berg@intel.com>2017-04-27 00:17:35 +0300
commitab81007a7b519d72f3c26d753a9fe1ffd27edc20 (patch)
tree1ea7fd3b731ebc910be1c064244a6ea3632b83c0 /net/wireless/core.h
parent127f60bfa98f30f7f47ae362b9807f0d223cbcc2 (diff)
downloadlinux-ab81007a7b519d72f3c26d753a9fe1ffd27edc20.tar.xz
cfg80211: simplify netlink socket owner interface deletion
There's no need to allocate a portid structure and then, for each of those, walk the interfaces - we can just add a flag to each interface and walk those directly. Due to padding in the struct, we can even do it without any memory cost, and it even simplifies the code. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/core.h')
-rw-r--r--net/wireless/core.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h
index 5d27eca57d3b..f9b748e3425a 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -91,10 +91,7 @@ struct cfg80211_registered_device {
struct cfg80211_coalesce *coalesce;
- spinlock_t destroy_list_lock;
- struct list_head destroy_list;
struct work_struct destroy_work;
-
struct work_struct sched_scan_stop_wk;
struct cfg80211_chan_def radar_chandef;
@@ -264,11 +261,6 @@ struct cfg80211_beacon_registration {
u32 nlportid;
};
-struct cfg80211_iface_destroy {
- struct list_head list;
- u32 nlportid;
-};
-
struct cfg80211_cqm_config {
u32 rssi_hyst;
s32 last_rssi_event_value;