summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-04-26 07:43:41 +0200
committerJohannes Berg <johannes.berg@intel.com>2017-04-26 23:17:35 +0200
commitab81007a7b519d72f3c26d753a9fe1ffd27edc20 (patch)
tree1ea7fd3b731ebc910be1c064244a6ea3632b83c0 /include/net
parent127f60bfa98f30f7f47ae362b9807f0d223cbcc2 (diff)
downloadop-kernel-dev-ab81007a7b519d72f3c26d753a9fe1ffd27edc20.zip
op-kernel-dev-ab81007a7b519d72f3c26d753a9fe1ffd27edc20.tar.gz
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 'include/net')
-rw-r--r--include/net/cfg80211.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 2a200b9..af95893 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -3988,6 +3988,7 @@ struct cfg80211_cqm_config;
* @event_list: (private) list for internal event processing
* @event_lock: (private) lock for event list
* @owner_nlportid: (private) owner socket port ID
+ * @nl_owner_dead: (private) owner socket went away
* @cqm_config: (private) nl80211 RSSI monitor state
*/
struct wireless_dev {
@@ -4037,12 +4038,13 @@ struct wireless_dev {
u32 ap_unexpected_nlportid;
+ u32 owner_nlportid;
+ bool nl_owner_dead;
+
bool cac_started;
unsigned long cac_start_time;
unsigned int cac_time_ms;
- u32 owner_nlportid;
-
#ifdef CONFIG_CFG80211_WEXT
/* wext data */
struct {
OpenPOWER on IntegriCloud