mac80211_hwsim: require at least one channel
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Aug 2018 16:17:03 +0000 (18:17 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 15 Aug 2018 16:17:03 +0000 (18:17 +0200)
commit484004339d4514fde425f6e8a9f6a6cc979bb0c3
tree6deb3b1e8572645c50e95c925f70d57eaeeabf76
parent77cfaf52eca5cac30ed029507e0cab065f888995
mac80211_hwsim: require at least one channel

Syzbot continues to try to create mac80211_hwsim radios, and
manages to pass parameters that are later checked with WARN_ON
in cfg80211 - catch another one in hwsim directly.

Reported-by: syzbot+2a12f11c306afe871c1f@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c