]> asedeno.scripts.mit.edu Git - linux.git/commit
cfg80211: simplify netlink socket owner interface deletion
authorJohannes Berg <johannes.berg@intel.com>
Wed, 26 Apr 2017 05:43:41 +0000 (07:43 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Apr 2017 21:17:35 +0000 (23:17 +0200)
commitab81007a7b519d72f3c26d753a9fe1ffd27edc20
tree1ea7fd3b731ebc910be1c064244a6ea3632b83c0
parent127f60bfa98f30f7f47ae362b9807f0d223cbcc2
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>
include/net/cfg80211.h
net/wireless/core.c
net/wireless/core.h
net/wireless/nl80211.c