]> git.baikalelectronics.ru Git - kernel.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)
commit5f4bb8872ad06a4f92679059d6cc523da35e1e04
tree1ea7fd3b731ebc910be1c064244a6ea3632b83c0
parent473f887e1a8eb0af41ab509d791864cf3de0279d
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