diff options
author | Johannes Berg <johannes.berg@intel.com> | 2021-05-06 22:12:00 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2021-06-23 10:58:56 +0200 |
commit | 21b7805434f6598eaf70329f78cf3da0bd4aa3e9 (patch) | |
tree | b23152c377863657d515244f6b78f339e99af908 /drivers/net/wireless/mac80211_hwsim.c | |
parent | 5eae2705004895a9aa917f5df6c1a2da8eeb4fd5 (diff) | |
download | linux-21b7805434f6598eaf70329f78cf3da0bd4aa3e9.tar.gz linux-21b7805434f6598eaf70329f78cf3da0bd4aa3e9.tar.bz2 linux-21b7805434f6598eaf70329f78cf3da0bd4aa3e9.zip |
cfg80211: remove CFG80211_MAX_NUM_DIFFERENT_CHANNELS
We no longer need to put any limits here, hardware will and
mac80211-hwsim can do whatever it likes. The reason we had
this was some accounting code (still mentioned in the comment)
but that code was deleted in commit c781944b71f8 ("cfg80211:
Remove unused cfg80211_can_use_iftype_chan()").
Link: https://lore.kernel.org/r/20210506221159.d1d61db1d31c.Iac4da68d54b9f1fdc18a03586bbe06aeb9515425@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 7a6fd46d0c6e..9574afc0cdbf 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -3796,11 +3796,6 @@ static int hwsim_new_radio_nl(struct sk_buff *msg, struct genl_info *info) return -EINVAL; } - if (param.channels > CFG80211_MAX_NUM_DIFFERENT_CHANNELS) { - GENL_SET_ERR_MSG(info, "too many channels specified"); - return -EINVAL; - } - if (info->attrs[HWSIM_ATTR_NO_VIF]) param.no_vif = true; |