]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: use common code for monitor options in add/change
authorJohannes Berg <johannes.berg@intel.com>
Wed, 12 Apr 2017 10:36:31 +0000 (12:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Apr 2017 11:41:39 +0000 (13:41 +0200)
commit65f1d6007e999f3a3dda1ba5f264447529247697
treee8df53912f686e8b85cd11b8e04a47a42f9c1031
parent1db77596e4c6b653f3cd001073a14dd09b8deb4a
mac80211: use common code for monitor options in add/change

Refactor the code to have common code for changing monitor
options when adding and changing virtual interfaces. This
will make it easier to add BPF filters to both paths. Note
that this code carefully checks the error conditions first
and only then applies the changes, to guarantee atomicity.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c