]> 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)
commitd973d91298d5d2065d6c2b6789cf114d5b093100
treea53ef8e4299db609cacd170b971a85ccaeb0529f
parenteb54dbeac261f2a1966b72618a1b352d4aa3a4c7
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