summarylogtreecommitdiffstats
path: root/70-1-fix-channel-negative-1.patch
blob: ad5b815b87b9d2c9222855b3c3af3925b98e8b44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -3904,9 +3905,9 @@ static int ieee80211_cfg_get_channel
 	if (chanctx_conf) {
 		*chandef = chanctx_conf->def;
 		ret = 0;
-	} else if (local->open_count > 0 &&
+	} else /*if (local->open_count > 0 &&
 		   local->open_count == local->monitors &&
-		   sdata->vif.type == NL80211_IFTYPE_MONITOR) {
+		   sdata->vif.type == NL80211_IFTYPE_MONITOR)*/ {
 		if (local->use_chanctx)
 			*chandef = local->monitor_chandef;
 		else