Skip to content
Commit 51a1aaa6 authored by Johannes Berg's avatar Johannes Berg
Browse files

mac80211_hwsim: validate number of different channels



When creating a new radio on the fly, hwsim allows this
to be done with an arbitrary number of channels, but
cfg80211 only supports a limited number of simultaneous
channels, leading to a warning.

Fix this by validating the number - this requires moving
the define for the maximum out to a visible header file.

Reported-by: default avatar <syzbot+8dd9051ff19940290931@syzkaller.appspotmail.com>
Fixes: b59ec8dd

 ("mac80211_hwsim: fix number of channels in interface combinations")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent b71d856a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment