Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: nl80211/cfg80211: Stop supporting cooked monitor

Unconditionally start to refuse creating cooked monitor interfaces to
phase them out.

There is no feature flag for drivers to opt-in for cooked monitor and
all known users are using/preferring the modern API since the hostapd
release 1.0 in May 2012.

Signed-off-by: Alexander Wetzel <Alexander@wetzel-home.de>
Link: https://patch.msgid.link/20250204111352.7004-1-Alexander@wetzel-home.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Alexander Wetzel and committed by
Johannes Berg
be22179c f5903ca2

+7 -3
+1 -1
include/net/cfg80211.h
··· 2265 2265 * @MONITOR_FLAG_PLCPFAIL: pass frames with bad PLCP 2266 2266 * @MONITOR_FLAG_CONTROL: pass control frames 2267 2267 * @MONITOR_FLAG_OTHER_BSS: disable BSSID filtering 2268 - * @MONITOR_FLAG_COOK_FRAMES: report frames after processing 2268 + * @MONITOR_FLAG_COOK_FRAMES: deprecated, will unconditionally be refused 2269 2269 * @MONITOR_FLAG_ACTIVE: active monitor, ACKs frames on its MAC address 2270 2270 * @MONITOR_FLAG_SKIP_TX: do not pass locally transmitted frames 2271 2271 */
+2 -2
include/uapi/linux/nl80211.h
··· 4727 4727 * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP 4728 4728 * @NL80211_MNTR_FLAG_CONTROL: pass control frames 4729 4729 * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering 4730 - * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing. 4731 - * overrides all other flags. 4730 + * @NL80211_MNTR_FLAG_COOK_FRAMES: deprecated 4731 + * will unconditionally be refused 4732 4732 * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address 4733 4733 * and ACK incoming unicast packets. 4734 4734 * @NL80211_MNTR_FLAG_SKIP_TX: do not pass local tx packets
+4
net/wireless/nl80211.c
··· 4245 4245 change = true; 4246 4246 } 4247 4247 4248 + /* MONITOR_FLAG_COOK_FRAMES is deprecated, refuse cooperation */ 4249 + if (params->flags & MONITOR_FLAG_COOK_FRAMES) 4250 + return -EOPNOTSUPP; 4251 + 4248 4252 if (params->flags & MONITOR_FLAG_ACTIVE && 4249 4253 !(rdev->wiphy.features & NL80211_FEATURE_ACTIVE_MONITOR)) 4250 4254 return -EOPNOTSUPP;