Skip to content
Snippets Groups Projects
Commit 4f03c1ed authored by Michal Kazior's avatar Michal Kazior Committed by Johannes Berg
Browse files

cfg80211: refuse to .set_monitor_channel when non-monitors are present


Having .set_monitor_channel work with non-monitor
interfaces running would make interface
combinations accounting ambiguous.

Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 870d37fc
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,8 @@ int cfg80211_set_monitor_channel(struct cfg80211_registered_device *rdev,
if (!rdev->ops->set_monitor_channel)
return -EOPNOTSUPP;
if (!cfg80211_has_monitors_only(rdev))
return -EBUSY;
chan = rdev_freq_to_chan(rdev, freq, chantype);
if (!chan)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment