mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-24 01:09:38 +01:00
15 lines
472 B
Diff
15 lines
472 B
Diff
--- a/net/wireless/chan.c
|
|
+++ b/net/wireless/chan.c
|
|
@@ -1582,8 +1582,10 @@ int cfg80211_set_monitor_channel(struct
|
|
{
|
|
if (!rdev->ops->set_monitor_channel)
|
|
return -EOPNOTSUPP;
|
|
- if (!cfg80211_has_monitors_only(rdev))
|
|
- return -EBUSY;
|
|
+ // Always allow user to change channel, even if there is another normal
|
|
+ // virtual interface using the device.
|
|
+ //if (!cfg80211_has_monitors_only(rdev))
|
|
+ // return -EBUSY;
|
|
|
|
return rdev_set_monitor_channel(rdev, chandef);
|
|
}
|