summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mac80211_hwsim.c
diff options
context:
space:
mode:
authorJames Prestwood <james.prestwood@linux.intel.com>2018-11-13 22:26:42 +0300
committerJohannes Berg <johannes.berg@intel.com>2018-12-05 17:30:50 +0300
commit082b12d4e541b260e5527aeac48b5ab2ce3a7f94 (patch)
tree161ae29c92b837aa9e733fda395a9dafd9ca46cb /drivers/net/wireless/mac80211_hwsim.c
parentecbc12ad6b682680ae26a429225d7c295f7f0e77 (diff)
downloadlinux-082b12d4e541b260e5527aeac48b5ab2ce3a7f94.tar.xz
mac80211_hwsim: fixes kernel crash during mac80211_hwsim init
Creating radios during startup follows a different code path than HWSIM_CMD_NEW_RADIO. The problem was that param.iftypes was not being set to the deafult before calling mac80211_hwsim_new_radio Signed-off-by: James Prestwood <james.prestwood@linux.intel.com> 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 4033a800b209..2a5a133f23cf 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -3884,6 +3884,7 @@ static int __init init_mac80211_hwsim(void)
param.p2p_device = support_p2p_device;
param.use_chanctx = channels > 1;
+ param.iftypes = HWSIM_IFTYPE_SUPPORT_MASK;
err = mac80211_hwsim_new_radio(NULL, &param);
if (err < 0)