]> git.baikalelectronics.ru Git - kernel.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)
commit80d28652a0bfe80502b4cdd19fafc5641ce4baad
treee8df53912f686e8b85cd11b8e04a47a42f9c1031
parent61eedbbd7c1da3cabaca7a343d25940784665ca6
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