Temporarily remove checks for missing cfg80211 handlers.
cfg80211 recently introduced additional WARN_ON checks for missing handlers.
mwifiex does not implement get_tx_power and get_antenna, which results
in two boot time warnings.
I notified Marvell and they will implement these, but for now disable the
checks. Once the handlers show up in the next backports update, this
patch should be removed.
Change-Id: I11e83eea79979df1ccfb391f530dfa037461bca0
diff --git a/net/wireless/core.c b/net/wireless/core.c
index ea3af29..5be4067 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -371,8 +371,11 @@
WARN_ON(ops->remain_on_channel && !ops->cancel_remain_on_channel);
WARN_ON(ops->tdls_channel_switch && !ops->tdls_cancel_channel_switch);
WARN_ON(ops->add_tx_ts && !ops->del_tx_ts);
+// Disable these warning until Marvell has a patch for these two handlers.
+#if 0
WARN_ON(ops->set_tx_power && !ops->get_tx_power);
WARN_ON(ops->set_antenna && !ops->get_antenna);
+#endif
alloc_size = sizeof(*rdev) + sizeof_priv;