]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: make multi-channel ops const
authorJohannes Berg <johannes.berg@intel.com>
Mon, 10 Oct 2016 10:09:52 +0000 (12:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Oct 2016 08:50:44 +0000 (10:50 +0200)
commit580fb031912d526bd9cd3b43180deb4d3f1a8ea7
treea53ef8e4299db609cacd170b971a85ccaeb0529f
parent43b60a77fc3fd8ae56a81b9a1531e1e212de857b
mac80211_hwsim: make multi-channel ops const

Instead of building the multi-channel ops at runtime, declare
the common ops with a macro and build both that way, so that
the multi-channel ops can also be const.

As a side effect, due to the removed code, this decreases the
size of the module (while shifting data from .bss to .text
due to the newly added const).

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c