mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
wifi: cfg80211: remove IEEE80211_CHAN_{1,2,4,8,16}MHZ flags
These were used by S1G for older chandef representation, but are no longer needed. Clean them up, even if we can't drop them from the userspace API entirely. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -1280,21 +1280,6 @@ static int nl80211_msg_put_channel(struct sk_buff *msg, struct wiphy *wiphy,
|
||||
if ((chan->flags & IEEE80211_CHAN_NO_HE) &&
|
||||
nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_HE))
|
||||
goto nla_put_failure;
|
||||
if ((chan->flags & IEEE80211_CHAN_1MHZ) &&
|
||||
nla_put_flag(msg, NL80211_FREQUENCY_ATTR_1MHZ))
|
||||
goto nla_put_failure;
|
||||
if ((chan->flags & IEEE80211_CHAN_2MHZ) &&
|
||||
nla_put_flag(msg, NL80211_FREQUENCY_ATTR_2MHZ))
|
||||
goto nla_put_failure;
|
||||
if ((chan->flags & IEEE80211_CHAN_4MHZ) &&
|
||||
nla_put_flag(msg, NL80211_FREQUENCY_ATTR_4MHZ))
|
||||
goto nla_put_failure;
|
||||
if ((chan->flags & IEEE80211_CHAN_8MHZ) &&
|
||||
nla_put_flag(msg, NL80211_FREQUENCY_ATTR_8MHZ))
|
||||
goto nla_put_failure;
|
||||
if ((chan->flags & IEEE80211_CHAN_16MHZ) &&
|
||||
nla_put_flag(msg, NL80211_FREQUENCY_ATTR_16MHZ))
|
||||
goto nla_put_failure;
|
||||
if ((chan->flags & IEEE80211_CHAN_NO_320MHZ) &&
|
||||
nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_320MHZ))
|
||||
goto nla_put_failure;
|
||||
|
||||
Reference in New Issue
Block a user