pentoo-overlay/sys-kernel/pentoo-sources/files/4005_kali-wifi-injection-unsafe.patch
2025-05-23 09:33:11 -04:00

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);
}