Files
erofs-linux/net/wireless
Kartik Nair dc14686f27 wifi: cfg80211: wext: validate chandef in monitor mode
cfg80211_wext_siwfreq() constructs a channel definition for monitor
mode but passes it to cfg80211_set_monitor_channel() without first
validating it with cfg80211_chandef_valid(). This causes a WARN_ON
in cfg80211_chandef_dfs_required() when it receives an invalid chandef.

Add the missing cfg80211_chandef_valid() check before calling
cfg80211_set_monitor_channel() to return -EINVAL early on invalid
channel definitions, consistent with how other callers handle this.

Reported-by: [email protected]
Signed-off-by: Kartik Nair <[email protected]>
Link: https://patch.msgid.link/[email protected]
[clarify subject]
Signed-off-by: Johannes Berg <[email protected]>
2026-05-20 11:44:19 +02:00
..
…
…
…
…
…
…