aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/wireless/core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index eb60410ae588..e42a97b5b971 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -774,8 +774,9 @@ void cfg80211_update_iface_num(struct cfg80211_registered_device *rdev,
774 774
775 has_monitors_only_new = cfg80211_has_monitors_only(rdev); 775 has_monitors_only_new = cfg80211_has_monitors_only(rdev);
776 if (has_monitors_only_new != has_monitors_only_old) { 776 if (has_monitors_only_new != has_monitors_only_old) {
777 rdev->ops->set_monitor_enabled(&rdev->wiphy, 777 if (rdev->ops->set_monitor_enabled)
778 has_monitors_only_new); 778 rdev->ops->set_monitor_enabled(&rdev->wiphy,
779 has_monitors_only_new);
779 780
780 if (!has_monitors_only_new) { 781 if (!has_monitors_only_new) {
781 rdev->monitor_channel = NULL; 782 rdev->monitor_channel = NULL;