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>
This commit is contained in:
committed by
Johannes Berg
parent
f5903ca220
commit
be22179cfb
@@ -2265,7 +2265,7 @@ static inline int cfg80211_get_station(struct net_device *dev,
|
|||||||
* @MONITOR_FLAG_PLCPFAIL: pass frames with bad PLCP
|
* @MONITOR_FLAG_PLCPFAIL: pass frames with bad PLCP
|
||||||
* @MONITOR_FLAG_CONTROL: pass control frames
|
* @MONITOR_FLAG_CONTROL: pass control frames
|
||||||
* @MONITOR_FLAG_OTHER_BSS: disable BSSID filtering
|
* @MONITOR_FLAG_OTHER_BSS: disable BSSID filtering
|
||||||
* @MONITOR_FLAG_COOK_FRAMES: report frames after processing
|
* @MONITOR_FLAG_COOK_FRAMES: deprecated, will unconditionally be refused
|
||||||
* @MONITOR_FLAG_ACTIVE: active monitor, ACKs frames on its MAC address
|
* @MONITOR_FLAG_ACTIVE: active monitor, ACKs frames on its MAC address
|
||||||
* @MONITOR_FLAG_SKIP_TX: do not pass locally transmitted frames
|
* @MONITOR_FLAG_SKIP_TX: do not pass locally transmitted frames
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -4727,8 +4727,8 @@ enum nl80211_survey_info {
|
|||||||
* @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP
|
* @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP
|
||||||
* @NL80211_MNTR_FLAG_CONTROL: pass control frames
|
* @NL80211_MNTR_FLAG_CONTROL: pass control frames
|
||||||
* @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering
|
* @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering
|
||||||
* @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing.
|
* @NL80211_MNTR_FLAG_COOK_FRAMES: deprecated
|
||||||
* overrides all other flags.
|
* will unconditionally be refused
|
||||||
* @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address
|
* @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address
|
||||||
* and ACK incoming unicast packets.
|
* and ACK incoming unicast packets.
|
||||||
* @NL80211_MNTR_FLAG_SKIP_TX: do not pass local tx packets
|
* @NL80211_MNTR_FLAG_SKIP_TX: do not pass local tx packets
|
||||||
|
|||||||
@@ -4245,6 +4245,10 @@ static int nl80211_parse_mon_options(struct cfg80211_registered_device *rdev,
|
|||||||
change = true;
|
change = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* MONITOR_FLAG_COOK_FRAMES is deprecated, refuse cooperation */
|
||||||
|
if (params->flags & MONITOR_FLAG_COOK_FRAMES)
|
||||||
|
return -EOPNOTSUPP;
|
||||||
|
|
||||||
if (params->flags & MONITOR_FLAG_ACTIVE &&
|
if (params->flags & MONITOR_FLAG_ACTIVE &&
|
||||||
!(rdev->wiphy.features & NL80211_FEATURE_ACTIVE_MONITOR))
|
!(rdev->wiphy.features & NL80211_FEATURE_ACTIVE_MONITOR))
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
|
|||||||
Reference in New Issue
Block a user