diff options
-rw-r--r-- | net/mac80211/ethtool.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/ethtool.c b/net/mac80211/ethtool.c index 069aa05139cd..42f7ee142ce3 100644 --- a/net/mac80211/ethtool.c +++ b/net/mac80211/ethtool.c @@ -157,6 +157,10 @@ do_survey: chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); if (chanctx_conf) channel = chanctx_conf->def.chan; + else if (local->open_count > 0 && + local->open_count == local->monitors && + sdata->vif.type == NL80211_IFTYPE_MONITOR) + channel = local->monitor_chanreq.oper.chan; else channel = NULL; rcu_read_unlock(); |